solidus_dev_support 2.6.0 → 2.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ecf66be08fc8080f6c64bfd58e1f81ebe5c66aa72d6473146a7fa0ff1ad68e9b
4
- data.tar.gz: 6f1fe3ec075e8ec5935a336eeedc78974262945cca8eb38e831518e062104d60
3
+ metadata.gz: f80ea57092c02d02d5389048080460774c6a8c1c89c06cda85975ef95c0343b8
4
+ data.tar.gz: a87e6b793da358b1cf4fbf6ff943418dddac1e23ff630dee85ad106b52f25615
5
5
  SHA512:
6
- metadata.gz: 15433d4424d7fb44d65be238ddc4240ffb82201b32ed4c94d46ce418ef3fbeda26d84f328750996e57afc12e5a24f515f6fd98aaaa5cb4191f62d199bbd266f4
7
- data.tar.gz: 3c0fed4e30d243ad9a99ad4e17abe9db1e2978c1c1d90190e636a07355b2eca5a49b938b9998dec1a0126c72101f6360b84e96c814db9ef9a04fd07337fab968
6
+ metadata.gz: 7725a445646dae155cba54179d741f4b59bf78a41215464990b859746c0ec33e7a59973720a642285fa7c376968d2cf06bb5da6e41cf69b0353d9779c8ac9bf5
7
+ data.tar.gz: 1a5cd9fc2e4d67a16555a189a82879b101e34792dfa956bef357654d446d1e6e48c13a39e4e825abe2146e1647e9d7e8726daf953e148be394db6cdcc28f6660
data/.circleci/config.yml CHANGED
@@ -20,11 +20,11 @@ commands:
20
20
  bundle --version
21
21
 
22
22
  jobs:
23
- solidus-master:
23
+ solidus-main:
24
24
  executor:
25
25
  name: solidusio_extensions/sqlite
26
26
  ruby_version: '3.1'
27
- steps: ['setup', 'solidusio_extensions/run-tests-solidus-master']
27
+ steps: ['setup', 'solidusio_extensions/run-tests-solidus-main']
28
28
  solidus-current:
29
29
  executor:
30
30
  name: solidusio_extensions/sqlite
@@ -44,20 +44,20 @@ jobs:
44
44
  workflows:
45
45
  "Run specs on supported Solidus versions":
46
46
  jobs:
47
- - solidus-master
47
+ - solidus-main
48
48
  - solidus-current
49
49
  - solidus-older
50
50
  - lint-code
51
51
 
52
- "Weekly run specs against master":
52
+ "Weekly run specs against main":
53
53
  triggers:
54
54
  - schedule:
55
55
  cron: "0 0 * * 4" # every Thursday
56
56
  filters:
57
57
  branches:
58
58
  only:
59
- - master
59
+ - main
60
60
  jobs:
61
- - solidus-master
61
+ - solidus-main
62
62
  - solidus-current
63
63
  - solidus-older
data/Gemfile CHANGED
@@ -7,7 +7,7 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
7
7
  # Specify your gem's dependencies in solidus_dev_support.gemspec
8
8
  gemspec
9
9
 
10
- branch = ENV.fetch('SOLIDUS_BRANCH', 'master')
10
+ branch = ENV.fetch('SOLIDUS_BRANCH', 'main')
11
11
  gem 'solidus', github: 'solidusio/solidus', branch: branch
12
12
 
13
13
  # A workaround for https://github.com/bundler/bundler/issues/6677
data/README.md CHANGED
@@ -78,7 +78,7 @@ the `DB` and `SOLIDUS_BRANCH` env variables.
78
78
  DB=[postgres|mysql|sqlite] SOLIDUS_BRANCH=<BRANCH-NAME> bin/sandbox
79
79
  ```
80
80
 
81
- By default we use sqlite3 and the master branch.
81
+ By default we use sqlite3 and the main branch.
82
82
 
83
83
  ### Rails generators
84
84
 
@@ -234,15 +234,9 @@ experiment.
234
234
 
235
235
  To install this gem onto your local machine, run `bin/rake install`.
236
236
 
237
- To release a new version:
237
+ ### Releasing new versions
238
238
 
239
- 1. update the version number in `version.rb`
240
- 2. update the changelog with `bin/rake changelog`
241
- 3. commit the changes using `Release SolidusDevSupport v1.2.3` as the message
242
- 3. run `bin/rake release`
243
-
244
- The last command will create a git tag for the version, push git commits and tags, and push the `.gem` file to
245
- [rubygems.org](https://rubygems.org).
239
+ Please use the same process suggested for extensions in the [dedicated page](https://github.com/solidusio/solidus/wiki/How-to-release-extensions) in the Solidus wiki.
246
240
 
247
241
  ## Contributing
248
242
 
@@ -39,14 +39,14 @@ workflows:
39
39
  - run-specs-with-mysql
40
40
  - lint-code
41
41
 
42
- "Weekly run specs against master":
42
+ "Weekly run specs against main":
43
43
  triggers:
44
44
  - schedule:
45
45
  cron: "0 0 * * 4" # every Thursday
46
46
  filters:
47
47
  branches:
48
48
  only:
49
- - master
49
+ - main
50
50
  jobs:
51
51
  - run-specs-with-sqlite
52
52
  - run-specs-with-postgres
@@ -0,0 +1,3 @@
1
+ # Changelog
2
+
3
+ See https://github.com/<%=default_repo%>/releases or OLD_CHANGELOG.md for older versions.
@@ -3,12 +3,17 @@
3
3
  source 'https://rubygems.org'
4
4
  git_source(:github) { |repo| "https://github.com/#{repo}.git" }
5
5
 
6
- branch = ENV.fetch('SOLIDUS_BRANCH', 'master')
6
+ branch = ENV.fetch('SOLIDUS_BRANCH', 'main')
7
7
  gem 'solidus', github: 'solidusio/solidus', branch: branch
8
8
 
9
9
  # The solidus_frontend gem has been pulled out since v3.2
10
- gem 'solidus_frontend', github: 'solidusio/solidus_frontend' if branch == 'master'
11
- gem 'solidus_frontend' if branch >= 'v3.2' # rubocop:disable Bundler/DuplicatedGem
10
+ if branch >= 'v3.2'
11
+ gem 'solidus_frontend'
12
+ elsif branch == 'main'
13
+ gem 'solidus_frontend', github: 'solidusio/solidus_frontend'
14
+ else
15
+ gem 'solidus_frontend', github: 'solidusio/solidus', branch: branch
16
+ end
12
17
 
13
18
  # Needed to help Bundler figure out how to resolve dependencies,
14
19
  # otherwise it takes forever to resolve them.
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "bundler/gem_tasks"
3
4
  require 'solidus_dev_support/rake_tasks'
4
5
  SolidusDevSupport::RakeTasks.install
5
6
 
@@ -7,8 +7,8 @@ test "$DB" = "sqlite" && export DB="sqlite3"
7
7
 
8
8
  if [ -z "$SOLIDUS_BRANCH" ]
9
9
  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"
12
12
  fi
13
13
  echo "~~> Using branch $SOLIDUS_BRANCH of solidus"
14
14
 
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.executables = files.grep(%r{^exe/}) { |f| File.basename(f) }
30
30
  spec.require_paths = ["lib"]
31
31
 
32
- spec.add_dependency 'solidus_core', ['>= 2.0.0', '< 4']
32
+ spec.add_dependency 'solidus_core', ['>= 2.0.0', '< 5']
33
33
  spec.add_dependency 'solidus_support', '~> 0.5'
34
34
 
35
35
  spec.add_development_dependency 'solidus_dev_support', '<%= SolidusDevSupport.gem_version.approximate_recommendation %>'
@@ -8,7 +8,7 @@ module SolidusDevSupport
8
8
  module Factories
9
9
  def self.load_for(*engines)
10
10
  paths = engines.flat_map do |engine|
11
- engine.root.glob('lib/*/testing_support/factories{,.rb}')
11
+ engine.root.glob('lib/**/testing_support/factories{,.rb}')
12
12
  end.map { |path| path.sub(/.rb\z/, '').to_s }
13
13
 
14
14
  FactoryBot.definition_file_paths = [
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusDevSupport
4
- VERSION = "2.6.0"
4
+ VERSION = "2.7.0"
5
5
 
6
6
  def self.gem_version
7
7
  Gem::Version.new(VERSION)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_dev_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0
4
+ version: 2.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Desantis
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-05-03 00:00:00.000000000 Z
11
+ date: 2023-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -321,7 +321,7 @@ files:
321
321
  - lib/solidus_dev_support/solidus_command.rb
322
322
  - lib/solidus_dev_support/templates/extension/.circleci/config.yml
323
323
  - lib/solidus_dev_support/templates/extension/.github/stale.yml
324
- - lib/solidus_dev_support/templates/extension/CHANGELOG.md
324
+ - lib/solidus_dev_support/templates/extension/CHANGELOG.md.tt
325
325
  - lib/solidus_dev_support/templates/extension/CONTRIBUTING.md
326
326
  - lib/solidus_dev_support/templates/extension/Gemfile.tt
327
327
  - lib/solidus_dev_support/templates/extension/LICENSE
@@ -384,7 +384,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
384
384
  - !ruby/object:Gem::Version
385
385
  version: '0'
386
386
  requirements: []
387
- rubygems_version: 3.3.7
387
+ rubygems_version: 3.4.10
388
388
  signing_key:
389
389
  specification_version: 4
390
390
  summary: Development tools for Solidus extensions.
@@ -1 +0,0 @@
1
- # Changelog