solidus_dev_support 1.2.0 → 1.3.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: 57982502f6b6cda3d014e241f319db1a59e5fb7c5b108d5c41e60e2458ce7fe3
4
- data.tar.gz: 4a738944d3d5fa4789ea68c372f861a0665c0ad9347cb9bda11195b4dcf3c451
3
+ metadata.gz: e564494d205d3ad1b785d19a2755125c0b22ddae03f485ae2ff136ed6a84fbcf
4
+ data.tar.gz: 9f6d4d0d80bcc84c14e0c49ae6d8aff768a41318a08b22281923b670ac2c8e60
5
5
  SHA512:
6
- metadata.gz: 65cf8c5ebb47608aaeb7aab52823d7ad8ccec81697ad922144880a971ffea891442cc1fa584b1311df120fc85e762ae06f90a1849083f0058f05c5026336f3b9
7
- data.tar.gz: f013f6ee048e65a40be05b330e7472fb934c1a14a345efd7319466e976681daba40425b0723356f5f95b3ce0f1ebb65183a8397c7e3afa544b96c5741f830b7e
6
+ metadata.gz: eeac780a3f6da8740951d1798c1543b6bc4a7def6b9ec5841ccd7600163f5c08c52d26bc5606d006f723666c68f74c78eac71eb6f63830354f736445f4418e9d
7
+ data.tar.gz: aa0b8514fac3724ab7272af5fe2675ef9eb1aa1d859b8b2ebaf20616efbfad948b3b3a069ed7f553b34310691c2739b675759311167b971f644f894cacab47db
@@ -0,0 +1,7 @@
1
+ pull_request_rules:
2
+ - name: automatic merge when GitHub branch protection passes on master
3
+ conditions:
4
+ - base=master
5
+ actions:
6
+ merge:
7
+ method: merge
@@ -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
- - Updated the extension template with the latest modifications
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.1...HEAD
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
@@ -180,7 +180,7 @@ require:
180
180
  - rubocop-performance
181
181
 
182
182
  AllCops:
183
- TargetRubyVersion: 2.4
183
+ TargetRubyVersion: 2.5
184
184
  Exclude:
185
185
  - spec/dummy/**/*
186
186
  - vendor/**/*
@@ -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.4')
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.4.0'
33
+ spec.add_dependency 'solidus_support', '~> 0.5'
34
34
 
35
35
  spec.add_development_dependency 'solidus_dev_support'
36
36
  end
@@ -15,3 +15,6 @@ pkg
15
15
  spec/dummy
16
16
  spec/examples.txt
17
17
  /sandbox
18
+ .rvmrc
19
+ .ruby-version
20
+ .ruby-gemset
@@ -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'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusDevSupport
4
- VERSION = "1.2.0"
4
+ VERSION = "1.3.0"
5
5
  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: 1.2.0
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-04-24 00:00:00.000000000 Z
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"
@@ -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