solidus_dev_support 2.5.5 → 2.5.6
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 +9 -3
- data/.github/stale.yml +1 -0
- data/CHANGELOG.md +19 -2
- data/Gemfile +3 -0
- data/README.md +4 -4
- data/lib/solidus_dev_support/templates/extension/.circleci/config.yml +9 -3
- data/lib/solidus_dev_support/templates/extension/.github/stale.yml +1 -17
- data/lib/solidus_dev_support/templates/extension/{Gemfile → Gemfile.tt} +2 -1
- data/lib/solidus_dev_support/templates/extension/LICENSE +1 -1
- data/lib/solidus_dev_support/templates/extension/README.md +2 -13
- data/lib/solidus_dev_support/templates/extension/bin/sandbox.tt +9 -33
- data/lib/solidus_dev_support/templates/extension/gitignore +1 -0
- data/lib/solidus_dev_support/templates/extension/lib/generators/%file_name%/install/install_generator.rb.tt +4 -0
- data/lib/solidus_dev_support/version.rb +1 -1
- data/solidus_dev_support.gemspec +1 -4
- metadata +7 -35
- data/.github/PULL_REQUEST_TEMPLATE.md +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a256697ae6d1f388aeabf3bb92518d06656d898ffa5b843dd0c75f9b4998615e
|
4
|
+
data.tar.gz: eee6cf88c1bdf7dbe42ff1aa0354503250537d30ad00983e3b442a4eae4252f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62cf34cab1efaa87e55bc217602fb5b511efb2b2ad9b164e3844c5503a5359fbbd29e4cf861f4035ed092f7cab8354bfdc39d0849af3bccfde975c30e675b37d
|
7
|
+
data.tar.gz: f708bf5e2de29af086d0890629e12cf9d233790cf86792762cdc6cb3b2060c068114c41570a43c27a5c24d7490ea8cd2d591b7a3b29c0a28801d71c5a589d230
|
data/.circleci/config.yml
CHANGED
@@ -21,13 +21,19 @@ commands:
|
|
21
21
|
|
22
22
|
jobs:
|
23
23
|
solidus-master:
|
24
|
-
executor:
|
24
|
+
executor:
|
25
|
+
name: solidusio_extensions/sqlite
|
26
|
+
ruby_version: '3.1'
|
25
27
|
steps: ['setup', 'solidusio_extensions/run-tests-solidus-master']
|
26
28
|
solidus-current:
|
27
|
-
executor:
|
29
|
+
executor:
|
30
|
+
name: solidusio_extensions/sqlite
|
31
|
+
ruby_version: '3.0'
|
28
32
|
steps: ['setup', 'solidusio_extensions/run-tests-solidus-current']
|
29
33
|
solidus-older:
|
30
|
-
executor:
|
34
|
+
executor:
|
35
|
+
name: solidusio_extensions/sqlite
|
36
|
+
ruby_version: '2.7'
|
31
37
|
steps: ['setup', 'solidusio_extensions/run-tests-solidus-older']
|
32
38
|
lint-code:
|
33
39
|
executor: solidusio_extensions/sqlite
|
data/.github/stale.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
_extends: .github
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,25 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
## [2.5.
|
3
|
+
## [2.5.6](https://github.com/solidusio/solidus_dev_support/tree/2.5.6) (2023-04-24)
|
4
4
|
|
5
|
-
[Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.5.
|
5
|
+
[Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.5.5...2.5.6)
|
6
|
+
|
7
|
+
**Implemented enhancements:**
|
8
|
+
|
9
|
+
- Allow Solidus 4 [\#203](https://github.com/solidusio/solidus_dev_support/pull/203) ([elia](https://github.com/elia))
|
10
|
+
- Update proposed defaults [\#191](https://github.com/solidusio/solidus_dev_support/pull/191) ([elia](https://github.com/elia))
|
11
|
+
|
12
|
+
**Fixed bugs:**
|
13
|
+
|
14
|
+
- Fix sandbox default solidus branch [\#192](https://github.com/solidusio/solidus_dev_support/pull/192) ([RyanofWoods](https://github.com/RyanofWoods))
|
15
|
+
|
16
|
+
**Merged pull requests:**
|
17
|
+
|
18
|
+
- Remove Slack notifications for CI failures [\#199](https://github.com/solidusio/solidus_dev_support/pull/199) ([waiting-for-dev](https://github.com/waiting-for-dev))
|
19
|
+
|
20
|
+
## [v2.5.5](https://github.com/solidusio/solidus_dev_support/tree/v2.5.5) (2022-09-08)
|
21
|
+
|
22
|
+
[Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.5.4...v2.5.5)
|
6
23
|
|
7
24
|
**Implemented enhancements:**
|
8
25
|
|
data/Gemfile
CHANGED
@@ -13,6 +13,9 @@ gem 'solidus', github: 'solidusio/solidus', branch: branch
|
|
13
13
|
# A workaround for https://github.com/bundler/bundler/issues/6677
|
14
14
|
gem 'rails', '>0.a'
|
15
15
|
|
16
|
+
gem 'bundler'
|
17
|
+
gem 'rake'
|
18
|
+
|
16
19
|
# These gems will be used by the temporary extensions generated by tests
|
17
20
|
group :test do
|
18
21
|
gem 'mysql2'
|
data/README.md
CHANGED
@@ -38,11 +38,11 @@ in solidus_dev_support.
|
|
38
38
|
|
39
39
|
#### Updating existing extensions
|
40
40
|
|
41
|
-
If you have an existing extension and want to update it to use
|
42
|
-
you can run the following in the extension's directory:
|
41
|
+
If you have an existing extension generated with `solidus_dev_support` and want to update it to use
|
42
|
+
the latest standards from this gem, you can run the following in the extension's directory:
|
43
43
|
|
44
44
|
```console
|
45
|
-
$ solidus extension .
|
45
|
+
$ bundle exec solidus extension .
|
46
46
|
```
|
47
47
|
|
48
48
|
In case of conflicting files, you will be prompted for an action. You can overwrite the files with
|
@@ -238,7 +238,7 @@ To release a new version:
|
|
238
238
|
|
239
239
|
1. update the version number in `version.rb`
|
240
240
|
2. update the changelog with `bin/rake changelog`
|
241
|
-
3. commit the changes using `
|
241
|
+
3. commit the changes using `Release SolidusDevSupport v1.2.3` as the message
|
242
242
|
3. run `bin/rake release`
|
243
243
|
|
244
244
|
The last command will create a git tag for the version, push git commits and tags, and push the `.gem` file to
|
@@ -11,25 +11,30 @@ orbs:
|
|
11
11
|
solidusio_extensions: solidusio/extensions@volatile
|
12
12
|
|
13
13
|
jobs:
|
14
|
+
run-specs-with-sqlite:
|
15
|
+
executor: solidusio_extensions/sqlite
|
16
|
+
steps:
|
17
|
+
- browser-tools/install-chrome
|
18
|
+
- solidusio_extensions/run-tests
|
14
19
|
run-specs-with-postgres:
|
15
20
|
executor: solidusio_extensions/postgres
|
16
21
|
steps:
|
17
|
-
- browser-tools/install-
|
22
|
+
- browser-tools/install-chrome
|
18
23
|
- solidusio_extensions/run-tests
|
19
24
|
run-specs-with-mysql:
|
20
25
|
executor: solidusio_extensions/mysql
|
21
26
|
steps:
|
22
|
-
- browser-tools/install-
|
27
|
+
- browser-tools/install-chrome
|
23
28
|
- solidusio_extensions/run-tests
|
24
29
|
lint-code:
|
25
30
|
executor: solidusio_extensions/sqlite-memory
|
26
31
|
steps:
|
27
|
-
- browser-tools/install-browser-tools
|
28
32
|
- solidusio_extensions/lint-code
|
29
33
|
|
30
34
|
workflows:
|
31
35
|
"Run specs on supported Solidus versions":
|
32
36
|
jobs:
|
37
|
+
- run-specs-with-sqlite
|
33
38
|
- run-specs-with-postgres
|
34
39
|
- run-specs-with-mysql
|
35
40
|
- lint-code
|
@@ -43,5 +48,6 @@ workflows:
|
|
43
48
|
only:
|
44
49
|
- master
|
45
50
|
jobs:
|
51
|
+
- run-specs-with-sqlite
|
46
52
|
- run-specs-with-postgres
|
47
53
|
- run-specs-with-mysql
|
@@ -1,17 +1 @@
|
|
1
|
-
|
2
|
-
daysUntilStale: 60
|
3
|
-
# Number of days of inactivity before a stale issue is closed
|
4
|
-
daysUntilClose: false
|
5
|
-
# Issues with these labels will never be considered stale
|
6
|
-
exemptLabels:
|
7
|
-
- pinned
|
8
|
-
- security
|
9
|
-
# Label to use when marking an issue as stale
|
10
|
-
staleLabel: stale
|
11
|
-
# Comment to post when marking an issue as stale. Set to `false` to disable
|
12
|
-
markComment: >
|
13
|
-
This issue has been automatically marked as stale because it has not had
|
14
|
-
recent activity. It might be closed if no further activity occurs. Thank you
|
15
|
-
for your contributions.
|
16
|
-
# Comment to post when closing a stale issue. Set to `false` to disable
|
17
|
-
closeComment: false
|
1
|
+
_extends: .github
|
@@ -15,9 +15,10 @@ gem 'solidus_frontend' if branch >= 'v3.2' # rubocop:disable Bundler/DuplicatedG
|
|
15
15
|
# See https://github.com/bundler/bundler/issues/6677
|
16
16
|
gem 'rails', '>0.a'
|
17
17
|
|
18
|
+
<% if file_name != 'solidus_auth_devise' %>
|
18
19
|
# Provides basic authentication functionality for testing parts of your engine
|
19
20
|
gem 'solidus_auth_devise'
|
20
|
-
|
21
|
+
<% end %>
|
21
22
|
case ENV.fetch('DB', nil)
|
22
23
|
when 'mysql'
|
23
24
|
gem 'mysql2'
|
@@ -71,21 +71,10 @@ $ bin/rails server
|
|
71
71
|
Use Ctrl-C to stop
|
72
72
|
```
|
73
73
|
|
74
|
-
### Updating the changelog
|
75
|
-
|
76
|
-
Before and after releases the changelog should be updated to reflect the up-to-date status of
|
77
|
-
the project:
|
78
|
-
|
79
|
-
```shell
|
80
|
-
bin/rake changelog
|
81
|
-
git add CHANGELOG.md
|
82
|
-
git commit -m "Update the changelog"
|
83
|
-
```
|
84
|
-
|
85
74
|
### Releasing new versions
|
86
75
|
|
87
|
-
Please refer to the dedicated
|
76
|
+
Please refer to the [dedicated page](https://github.com/solidusio/solidus/wiki/How-to-release-extensions) in the Solidus wiki.
|
88
77
|
|
89
78
|
## License
|
90
79
|
|
91
|
-
Copyright (c) <%= Time.now.year %>
|
80
|
+
Copyright (c) <%= Time.now.year %> <%= gemspec.authors.join ', ' %>, released under the New BSD License.
|
@@ -1,43 +1,18 @@
|
|
1
1
|
#!/usr/bin/env bash
|
2
2
|
|
3
3
|
set -e
|
4
|
-
|
5
|
-
then
|
6
|
-
set -x
|
7
|
-
fi
|
4
|
+
test -z "${DEBUG+empty_string}" || set -x
|
8
5
|
|
9
|
-
|
10
|
-
postgres|postgresql)
|
11
|
-
RAILSDB="postgresql"
|
12
|
-
;;
|
13
|
-
mysql)
|
14
|
-
RAILSDB="mysql"
|
15
|
-
;;
|
16
|
-
sqlite3|sqlite)
|
17
|
-
RAILSDB="sqlite3"
|
18
|
-
;;
|
19
|
-
'')
|
20
|
-
echo "~~> Use 'export DB=[postgres|mysql|sqlite]' to control the DB adapter"
|
21
|
-
RAILSDB="sqlite3"
|
22
|
-
;;
|
23
|
-
*)
|
24
|
-
echo "Invalid value specified for the Solidus sandbox: DB=\"$DB\"."
|
25
|
-
echo "Please use 'postgres', 'mysql', or 'sqlite' instead."
|
26
|
-
exit 1
|
27
|
-
;;
|
28
|
-
esac
|
29
|
-
echo "~~> Using $RAILSDB as the database engine"
|
6
|
+
test "$DB" = "sqlite" && export DB="sqlite3"
|
30
7
|
|
31
|
-
if [ -
|
8
|
+
if [ -z "$SOLIDUS_BRANCH" ]
|
32
9
|
then
|
33
|
-
BRANCH=$SOLIDUS_BRANCH
|
34
|
-
else
|
35
10
|
echo "~~> Use 'export SOLIDUS_BRANCH=[master|v3.2|...]' to control the Solidus branch"
|
36
|
-
|
11
|
+
SOLIDUS_BRANCH="master"
|
37
12
|
fi
|
38
|
-
echo "~~> Using branch $
|
13
|
+
echo "~~> Using branch $SOLIDUS_BRANCH of solidus"
|
39
14
|
|
40
|
-
if [ -z $SOLIDUS_FRONTEND ]
|
15
|
+
if [ -z "$SOLIDUS_FRONTEND" ]
|
41
16
|
then
|
42
17
|
echo "~~> Use 'export SOLIDUS_FRONTEND=[solidus_frontend|solidus_starter_frontend]' to control the Solidus frontend"
|
43
18
|
SOLIDUS_FRONTEND="solidus_frontend"
|
@@ -52,7 +27,8 @@ function unbundled {
|
|
52
27
|
}
|
53
28
|
|
54
29
|
rm -rf ./sandbox
|
55
|
-
unbundled bundle exec rails new sandbox
|
30
|
+
unbundled bundle exec rails new sandbox \
|
31
|
+
--database="${DB:-sqlite3}" \
|
56
32
|
--skip-bundle \
|
57
33
|
--skip-git \
|
58
34
|
--skip-keeps \
|
@@ -68,7 +44,7 @@ fi
|
|
68
44
|
|
69
45
|
cd ./sandbox
|
70
46
|
cat <<RUBY >> Gemfile
|
71
|
-
gem 'solidus', github: 'solidusio/solidus', branch: '$
|
47
|
+
gem 'solidus', github: 'solidusio/solidus', branch: '$SOLIDUS_BRANCH'
|
72
48
|
gem 'rails-i18n'
|
73
49
|
gem 'solidus_i18n'
|
74
50
|
|
@@ -6,6 +6,10 @@ module <%= class_name %>
|
|
6
6
|
class_option :auto_run_migrations, type: :boolean, default: false
|
7
7
|
source_root File.expand_path('templates', __dir__)
|
8
8
|
|
9
|
+
def self.exit_on_failure?
|
10
|
+
true
|
11
|
+
end
|
12
|
+
|
9
13
|
def copy_initializer
|
10
14
|
template 'initializer.rb', 'config/initializers/<%= file_name %>.rb'
|
11
15
|
end
|
data/solidus_dev_support.gemspec
CHANGED
@@ -45,9 +45,6 @@ Gem::Specification.new do |spec|
|
|
45
45
|
spec.add_dependency 'rubocop-performance', '~> 1.5'
|
46
46
|
spec.add_dependency 'rubocop-rails', '~> 2.3'
|
47
47
|
spec.add_dependency 'rubocop-rspec', '~> 2.0'
|
48
|
-
spec.add_dependency 'solidus_core', ['>= 2.0', '<
|
48
|
+
spec.add_dependency 'solidus_core', ['>= 2.0', '< 5']
|
49
49
|
spec.add_dependency 'webdrivers', '>= 4.4'
|
50
|
-
|
51
|
-
spec.add_development_dependency 'bundler'
|
52
|
-
spec.add_development_dependency 'rake'
|
53
50
|
end
|
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.5.
|
4
|
+
version: 2.5.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alessandro Desantis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|
@@ -255,7 +255,7 @@ dependencies:
|
|
255
255
|
version: '2.0'
|
256
256
|
- - "<"
|
257
257
|
- !ruby/object:Gem::Version
|
258
|
-
version: '
|
258
|
+
version: '5'
|
259
259
|
type: :runtime
|
260
260
|
prerelease: false
|
261
261
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -265,7 +265,7 @@ dependencies:
|
|
265
265
|
version: '2.0'
|
266
266
|
- - "<"
|
267
267
|
- !ruby/object:Gem::Version
|
268
|
-
version: '
|
268
|
+
version: '5'
|
269
269
|
- !ruby/object:Gem::Dependency
|
270
270
|
name: webdrivers
|
271
271
|
requirement: !ruby/object:Gem::Requirement
|
@@ -280,34 +280,6 @@ dependencies:
|
|
280
280
|
- - ">="
|
281
281
|
- !ruby/object:Gem::Version
|
282
282
|
version: '4.4'
|
283
|
-
- !ruby/object:Gem::Dependency
|
284
|
-
name: bundler
|
285
|
-
requirement: !ruby/object:Gem::Requirement
|
286
|
-
requirements:
|
287
|
-
- - ">="
|
288
|
-
- !ruby/object:Gem::Version
|
289
|
-
version: '0'
|
290
|
-
type: :development
|
291
|
-
prerelease: false
|
292
|
-
version_requirements: !ruby/object:Gem::Requirement
|
293
|
-
requirements:
|
294
|
-
- - ">="
|
295
|
-
- !ruby/object:Gem::Version
|
296
|
-
version: '0'
|
297
|
-
- !ruby/object:Gem::Dependency
|
298
|
-
name: rake
|
299
|
-
requirement: !ruby/object:Gem::Requirement
|
300
|
-
requirements:
|
301
|
-
- - ">="
|
302
|
-
- !ruby/object:Gem::Version
|
303
|
-
version: '0'
|
304
|
-
type: :development
|
305
|
-
prerelease: false
|
306
|
-
version_requirements: !ruby/object:Gem::Requirement
|
307
|
-
requirements:
|
308
|
-
- - ">="
|
309
|
-
- !ruby/object:Gem::Version
|
310
|
-
version: '0'
|
311
283
|
description:
|
312
284
|
email:
|
313
285
|
- alessandrodesantis@nebulab.it
|
@@ -318,7 +290,7 @@ extra_rdoc_files: []
|
|
318
290
|
files:
|
319
291
|
- ".circleci/config.yml"
|
320
292
|
- ".gem_release.yml"
|
321
|
-
- ".github/
|
293
|
+
- ".github/stale.yml"
|
322
294
|
- ".github_changelog_generator"
|
323
295
|
- ".gitignore"
|
324
296
|
- ".mergify.yml"
|
@@ -351,7 +323,7 @@ files:
|
|
351
323
|
- lib/solidus_dev_support/templates/extension/.github/stale.yml
|
352
324
|
- lib/solidus_dev_support/templates/extension/CHANGELOG.md
|
353
325
|
- lib/solidus_dev_support/templates/extension/CONTRIBUTING.md
|
354
|
-
- lib/solidus_dev_support/templates/extension/Gemfile
|
326
|
+
- lib/solidus_dev_support/templates/extension/Gemfile.tt
|
355
327
|
- lib/solidus_dev_support/templates/extension/LICENSE
|
356
328
|
- lib/solidus_dev_support/templates/extension/README.md
|
357
329
|
- lib/solidus_dev_support/templates/extension/Rakefile
|
@@ -412,7 +384,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
412
384
|
- !ruby/object:Gem::Version
|
413
385
|
version: '0'
|
414
386
|
requirements: []
|
415
|
-
rubygems_version: 3.
|
387
|
+
rubygems_version: 3.4.12
|
416
388
|
signing_key:
|
417
389
|
specification_version: 4
|
418
390
|
summary: Development tools for Solidus extensions.
|