solidus_dev_support 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.mergify.yml +7 -0
- data/CHANGELOG.md +30 -3
- data/lib/solidus_dev_support/rspec/rails_helper.rb +25 -0
- data/lib/solidus_dev_support/rubocop/config.yml +1 -1
- data/lib/solidus_dev_support/templates/extension/extension.gemspec.tt +2 -2
- data/lib/solidus_dev_support/templates/extension/gitignore +3 -0
- data/lib/solidus_dev_support/templates/extension/spec/spec_helper.rb.tt +4 -1
- data/lib/solidus_dev_support/version.rb +1 -1
- metadata +3 -3
- data/.github/stale.yml +0 -17
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e564494d205d3ad1b785d19a2755125c0b22ddae03f485ae2ff136ed6a84fbcf
|
|
4
|
+
data.tar.gz: 9f6d4d0d80bcc84c14e0c49ae6d8aff768a41318a08b22281923b670ac2c8e60
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eeac780a3f6da8740951d1798c1543b6bc4a7def6b9ec5841ccd7600163f5c08c52d26bc5606d006f723666c68f74c78eac71eb6f63830354f736445f4418e9d
|
|
7
|
+
data.tar.gz: aa0b8514fac3724ab7272af5fe2675ef9eb1aa1d859b8b2ebaf20616efbfad948b3b3a069ed7f553b34310691c2739b675759311167b971f644f894cacab47db
|
data/.mergify.yml
ADDED
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,30 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.3.0]
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Ignored `.rvmrc`, `.ruby-version` and `.ruby-gemset` by default in extensions
|
|
15
|
+
- Added deprecation warning when extensions don't support Zeitwerk
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- Updated the extension template to use latest (0.5.X) solidus_support
|
|
20
|
+
- Set Ruby 2.5+ as the minimum Ruby version in generated extensions
|
|
21
|
+
|
|
22
|
+
### Removed
|
|
23
|
+
|
|
24
|
+
- Removed Stale from the default extension configuration
|
|
25
|
+
|
|
26
|
+
## [1.2.0]
|
|
27
|
+
|
|
28
|
+
### Changed
|
|
29
|
+
|
|
30
|
+
- Updated the extension template with the latest modifications
|
|
31
|
+
|
|
32
|
+
## [1.1.0]
|
|
33
|
+
|
|
10
34
|
### Added
|
|
11
35
|
|
|
12
36
|
- Made Git ignore `sandbox` in generated extensions
|
|
@@ -15,8 +39,8 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
15
39
|
### Changed
|
|
16
40
|
|
|
17
41
|
- Split `bin/rails` into `bin/r` and `bin/sandbox_rails`
|
|
18
|
-
|
|
19
|
-
|
|
42
|
+
|
|
43
|
+
|
|
20
44
|
### Fixed
|
|
21
45
|
|
|
22
46
|
- Fixed the sandbox Gemfile not including Solidus
|
|
@@ -152,7 +176,10 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
152
176
|
|
|
153
177
|
Initial release.
|
|
154
178
|
|
|
155
|
-
[Unreleased]: https://github.com/solidusio/solidus_dev_support/compare/v1.0
|
|
179
|
+
[Unreleased]: https://github.com/solidusio/solidus_dev_support/compare/v1.3.0...HEAD
|
|
180
|
+
[1.3.0]: https://github.com/solidusio/solidus_dev_support/compare/v1.2.0...v1.3.0
|
|
181
|
+
[1.2.0]: https://github.com/solidusio/solidus_dev_support/compare/v1.1.0...v1.2.0
|
|
182
|
+
[1.1.0]: https://github.com/solidusio/solidus_dev_support/compare/v1.0.1...v1.1.0
|
|
156
183
|
[1.0.1]: https://github.com/solidusio/solidus_dev_support/compare/v1.0.0...v1.0.1
|
|
157
184
|
[1.0.0]: https://github.com/solidusio/solidus_dev_support/compare/v0.6.0...v1.0.0
|
|
158
185
|
[0.6.0]: https://github.com/solidusio/solidus_dev_support/compare/v0.5.0...v0.6.0
|
|
@@ -59,4 +59,29 @@ RSpec.configure do |config|
|
|
|
59
59
|
end
|
|
60
60
|
|
|
61
61
|
config.include ActiveJob::TestHelper
|
|
62
|
+
|
|
63
|
+
config.after(:suite) do
|
|
64
|
+
if Rails.respond_to?(:autoloaders) && Rails.autoloaders.zeitwerk_enabled?
|
|
65
|
+
Rails.autoloaders.main.class.eager_load_all
|
|
66
|
+
end
|
|
67
|
+
rescue NameError => e
|
|
68
|
+
class ZeitwerkNameError < NameError; end
|
|
69
|
+
|
|
70
|
+
message = <<~WARN
|
|
71
|
+
Zeitwerk raised the following error when trying to eager load your extension:
|
|
72
|
+
|
|
73
|
+
#{if e.message =~ /expected file .*? to define constant [\w:]+/
|
|
74
|
+
e.message.sub(/expected file #{Regexp.escape(File.expand_path('../..', Rails.root))}./, "expected file ")
|
|
75
|
+
else
|
|
76
|
+
e.message
|
|
77
|
+
end}
|
|
78
|
+
|
|
79
|
+
This most likely means that your extension's file structure is not
|
|
80
|
+
compatible with the Zeitwerk autoloader.
|
|
81
|
+
Refer to https://github.com/solidusio/solidus_support#engine-extensions in
|
|
82
|
+
order to update the file structure to match Zeitwerk's expectations.
|
|
83
|
+
WARN
|
|
84
|
+
|
|
85
|
+
raise ZeitwerkNameError, message
|
|
86
|
+
end
|
|
62
87
|
end
|
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
|
17
17
|
spec.metadata['source_code_uri'] = '<%= gemspec.homepage %>'
|
|
18
18
|
spec.metadata['changelog_uri'] = '<%= gemspec.metadata["changelog_uri"] %>'
|
|
19
19
|
|
|
20
|
-
spec.required_ruby_version = Gem::Requirement.new('~> 2.
|
|
20
|
+
spec.required_ruby_version = Gem::Requirement.new('~> 2.5')
|
|
21
21
|
|
|
22
22
|
# Specify which files should be added to the gem when it is released.
|
|
23
23
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
|
|
|
30
30
|
spec.require_paths = ["lib"]
|
|
31
31
|
|
|
32
32
|
spec.add_dependency 'solidus_core', ['>= 2.0.0', '< 3']
|
|
33
|
-
spec.add_dependency 'solidus_support', '~> 0.
|
|
33
|
+
spec.add_dependency 'solidus_support', '~> 0.5'
|
|
34
34
|
|
|
35
35
|
spec.add_development_dependency 'solidus_dev_support'
|
|
36
36
|
end
|
|
@@ -6,7 +6,10 @@ ENV['RAILS_ENV'] = 'test'
|
|
|
6
6
|
# Run Coverage report
|
|
7
7
|
require 'solidus_dev_support/rspec/coverage'
|
|
8
8
|
|
|
9
|
-
require File.expand_path('dummy/config/environment.rb', __dir__)
|
|
9
|
+
require File.expand_path('dummy/config/environment.rb', __dir__).tap { |file|
|
|
10
|
+
# Create the dummy app if it's still missing.
|
|
11
|
+
system 'bin/rake extension:test_app' unless File.exist? file
|
|
12
|
+
}
|
|
10
13
|
|
|
11
14
|
# Requires factories and other useful helpers defined in spree_core.
|
|
12
15
|
require 'solidus_dev_support/rspec/feature_helper'
|
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: 1.
|
|
4
|
+
version: 1.3.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: 2020-
|
|
11
|
+
date: 2020-05-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: apparition
|
|
@@ -293,8 +293,8 @@ files:
|
|
|
293
293
|
- ".circleci/config.yml"
|
|
294
294
|
- ".gem_release.yml"
|
|
295
295
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
|
296
|
-
- ".github/stale.yml"
|
|
297
296
|
- ".gitignore"
|
|
297
|
+
- ".mergify.yml"
|
|
298
298
|
- ".rspec"
|
|
299
299
|
- ".rubocop-https---relaxed-ruby-style-rubocop-yml"
|
|
300
300
|
- ".rubocop.yml"
|
data/.github/stale.yml
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# Number of days of inactivity before an issue becomes stale
|
|
2
|
-
daysUntilStale: 60
|
|
3
|
-
# Number of days of inactivity before a stale issue is closed
|
|
4
|
-
daysUntilClose: 7
|
|
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: wontfix
|
|
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 will 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
|