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 +4 -4
- data/.circleci/config.yml +6 -6
- data/Gemfile +1 -1
- data/README.md +3 -9
- data/lib/solidus_dev_support/templates/extension/.circleci/config.yml +2 -2
- data/lib/solidus_dev_support/templates/extension/CHANGELOG.md.tt +3 -0
- data/lib/solidus_dev_support/templates/extension/Gemfile.tt +8 -3
- data/lib/solidus_dev_support/templates/extension/Rakefile +1 -0
- data/lib/solidus_dev_support/templates/extension/bin/sandbox.tt +2 -2
- data/lib/solidus_dev_support/templates/extension/extension.gemspec.tt +1 -1
- data/lib/solidus_dev_support/testing_support/factories.rb +1 -1
- data/lib/solidus_dev_support/version.rb +1 -1
- metadata +4 -4
- data/lib/solidus_dev_support/templates/extension/CHANGELOG.md +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f80ea57092c02d02d5389048080460774c6a8c1c89c06cda85975ef95c0343b8
|
4
|
+
data.tar.gz: a87e6b793da358b1cf4fbf6ff943418dddac1e23ff630dee85ad106b52f25615
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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-
|
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-
|
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-
|
47
|
+
- solidus-main
|
48
48
|
- solidus-current
|
49
49
|
- solidus-older
|
50
50
|
- lint-code
|
51
51
|
|
52
|
-
"Weekly run specs against
|
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
|
-
-
|
59
|
+
- main
|
60
60
|
jobs:
|
61
|
-
- solidus-
|
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', '
|
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
|
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
|
-
|
237
|
+
### Releasing new versions
|
238
238
|
|
239
|
-
|
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
|
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
|
-
-
|
49
|
+
- main
|
50
50
|
jobs:
|
51
51
|
- run-specs-with-sqlite
|
52
52
|
- run-specs-with-postgres
|
@@ -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', '
|
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
|
-
|
11
|
-
gem 'solidus_frontend'
|
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.
|
@@ -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=[
|
11
|
-
SOLIDUS_BRANCH="
|
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', '<
|
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
|
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 = [
|
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.
|
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-
|
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.
|
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
|