Skip to content

Commit 572fb4b

Browse files
Adapt new Solidus default branch
Ref. solidusio/solidus#5042
1 parent 5ec5b6a commit 572fb4b

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

.circleci/config.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ commands:
2020
bundle --version
2121
2222
jobs:
23-
solidus-master:
23+
solidus-main:
2424
executor:
2525
name: solidusio_extensions/sqlite
2626
ruby_version: '3.1'
27-
steps: ['setup', 'solidusio_extensions/run-tests-solidus-master']
27+
steps: ['setup', 'solidusio_extensions/run-tests-solidus-main']
2828
solidus-current:
2929
executor:
3030
name: solidusio_extensions/sqlite
@@ -42,20 +42,20 @@ jobs:
4242
workflows:
4343
"Run specs on supported Solidus versions":
4444
jobs:
45-
- solidus-master
45+
- solidus-main
4646
- solidus-current
4747
- solidus-older
4848
- lint-code
4949

50-
"Weekly run specs against master":
50+
"Weekly run specs against main":
5151
triggers:
5252
- schedule:
5353
cron: "0 0 * * 4" # every Thursday
5454
filters:
5555
branches:
5656
only:
57-
- master
57+
- main
5858
jobs:
59-
- solidus-master
59+
- solidus-main
6060
- solidus-current
6161
- solidus-older

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
77
# Specify your gem's dependencies in solidus_dev_support.gemspec
88
gemspec
99

10-
branch = ENV.fetch('SOLIDUS_BRANCH', 'master')
10+
branch = ENV.fetch('SOLIDUS_BRANCH', 'main')
1111
gem 'solidus', github: 'solidusio/solidus', branch: branch
1212

1313
# A workaround for https://github.com/bundler/bundler/issues/6677

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ the `DB` and `SOLIDUS_BRANCH` env variables.
7878
DB=[postgres|mysql|sqlite] SOLIDUS_BRANCH=<BRANCH-NAME> bin/sandbox
7979
```
8080

81-
By default we use sqlite3 and the master branch.
81+
By default we use sqlite3 and the main branch.
8282

8383
### Rails generators
8484

lib/solidus_dev_support/templates/extension/.circleci/config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ workflows:
3939
- run-specs-with-mysql
4040
- lint-code
4141

42-
"Weekly run specs against master":
42+
"Weekly run specs against main":
4343
triggers:
4444
- schedule:
4545
cron: "0 0 * * 4" # every Thursday
4646
filters:
4747
branches:
4848
only:
49-
- master
49+
- main
5050
jobs:
5151
- run-specs-with-sqlite
5252
- run-specs-with-postgres

lib/solidus_dev_support/templates/extension/Gemfile.tt

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
source 'https://rubygems.org'
44
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
55

6-
branch = ENV.fetch('SOLIDUS_BRANCH', 'master')
6+
branch = ENV.fetch('SOLIDUS_BRANCH', 'main')
77
gem 'solidus', github: 'solidusio/solidus', branch: branch
88

99
# The solidus_frontend gem has been pulled out since v3.2
10-
gem 'solidus_frontend', github: 'solidusio/solidus_frontend' if branch == 'master'
10+
gem 'solidus_frontend', github: 'solidusio/solidus_frontend' if branch == 'main'
1111
gem 'solidus_frontend' if branch >= 'v3.2' # rubocop:disable Bundler/DuplicatedGem
1212

1313
# Needed to help Bundler figure out how to resolve dependencies,

lib/solidus_dev_support/templates/extension/bin/sandbox.tt

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ test "$DB" = "sqlite" && export DB="sqlite3"
77

88
if [ -z "$SOLIDUS_BRANCH" ]
99
then
10-
echo "~~> Use 'export SOLIDUS_BRANCH=[master|v3.2|...]' to control the Solidus branch"
11-
SOLIDUS_BRANCH="master"
10+
echo "~~> Use 'export SOLIDUS_BRANCH=[main|v3.2|...]' to control the Solidus branch"
11+
SOLIDUS_BRANCH="main"
1212
fi
1313
echo "~~> Using branch $SOLIDUS_BRANCH of solidus"
1414

0 commit comments

Comments
 (0)