solidus_dev_support 2.5.6 → 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: a256697ae6d1f388aeabf3bb92518d06656d898ffa5b843dd0c75f9b4998615e
4
- data.tar.gz: eee6cf88c1bdf7dbe42ff1aa0354503250537d30ad00983e3b442a4eae4252f3
3
+ metadata.gz: f80ea57092c02d02d5389048080460774c6a8c1c89c06cda85975ef95c0343b8
4
+ data.tar.gz: a87e6b793da358b1cf4fbf6ff943418dddac1e23ff630dee85ad106b52f25615
5
5
  SHA512:
6
- metadata.gz: 62cf34cab1efaa87e55bc217602fb5b511efb2b2ad9b164e3844c5503a5359fbbd29e4cf861f4035ed092f7cab8354bfdc39d0849af3bccfde975c30e675b37d
7
- data.tar.gz: f708bf5e2de29af086d0890629e12cf9d233790cf86792762cdc6cb3b2060c068114c41570a43c27a5c24d7490ea8cd2d591b7a3b29c0a28801d71c5a589d230
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
@@ -36,26 +36,28 @@ jobs:
36
36
  ruby_version: '2.7'
37
37
  steps: ['setup', 'solidusio_extensions/run-tests-solidus-older']
38
38
  lint-code:
39
- executor: solidusio_extensions/sqlite
39
+ executor:
40
+ name: solidusio_extensions/sqlite
41
+ ruby_version: '3.0'
40
42
  steps: ['setup', 'solidusio_extensions/lint-code']
41
43
 
42
44
  workflows:
43
45
  "Run specs on supported Solidus versions":
44
46
  jobs:
45
- - solidus-master
47
+ - solidus-main
46
48
  - solidus-current
47
49
  - solidus-older
48
50
  - lint-code
49
51
 
50
- "Weekly run specs against master":
52
+ "Weekly run specs against main":
51
53
  triggers:
52
54
  - schedule:
53
55
  cron: "0 0 * * 4" # every Thursday
54
56
  filters:
55
57
  branches:
56
58
  only:
57
- - master
59
+ - main
58
60
  jobs:
59
- - solidus-master
61
+ - solidus-main
60
62
  - solidus-current
61
63
  - solidus-older
data/.rubocop.yml CHANGED
@@ -1,6 +1,8 @@
1
1
  inherit_from:
2
2
  - https://relaxed.ruby.style/rubocop.yml
3
3
 
4
+ Gemspec/RequiredRubyVersion:
5
+ Enabled: false
4
6
  Layout/EmptyLinesAroundAttributeAccessor:
5
7
  Enabled: true
6
8
  Layout/SpaceAroundMethodCallOperator:
@@ -42,7 +44,7 @@ Gemspec/DeprecatedAttributeAssignment:
42
44
  Enabled: false
43
45
 
44
46
  AllCops:
45
- TargetRubyVersion: 2.5
47
+ TargetRubyVersion: 3.0
46
48
  Exclude:
47
49
  - tmp/**/*
48
50
  - "vendor/**/*"
@@ -55,4 +57,3 @@ Style/FrozenStringLiteralComment:
55
57
  - "**/bin/*"
56
58
  - "**/exe/*"
57
59
  - "spec/**/*"
58
-
data/CHANGELOG.md CHANGED
@@ -1,410 +1,3 @@
1
1
  # Changelog
2
2
 
3
- ## [2.5.6](https://github.com/solidusio/solidus_dev_support/tree/2.5.6) (2023-04-24)
4
-
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)
23
-
24
- **Implemented enhancements:**
25
-
26
- - Configure solidus\_chrome\_headless as capybara-screenshot driver [\#190](https://github.com/solidusio/solidus_dev_support/pull/190) ([tvdeyen](https://github.com/tvdeyen))
27
- - Misc: auth-devise, extracted frontend gem, sqlite [\#188](https://github.com/solidusio/solidus_dev_support/pull/188) ([elia](https://github.com/elia))
28
-
29
- **Fixed bugs:**
30
-
31
- - Revert temporary fix for Octokit [\#186](https://github.com/solidusio/solidus_dev_support/pull/186) ([waiting-for-dev](https://github.com/waiting-for-dev))
32
-
33
- ## [v2.5.4](https://github.com/solidusio/solidus_dev_support/tree/v2.5.4) (2022-05-31)
34
-
35
- [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.5.2...v2.5.4)
36
-
37
- **Fixed bugs:**
38
-
39
- - Add a missing require for octokit/repository [\#185](https://github.com/solidusio/solidus_dev_support/pull/185) ([elia](https://github.com/elia))
40
- - Fix window resizing of `solidus_chrome_headless` driver [\#184](https://github.com/solidusio/solidus_dev_support/pull/184) ([gsmendoza](https://github.com/gsmendoza))
41
-
42
- ## [v2.5.2](https://github.com/solidusio/solidus_dev_support/tree/v2.5.2) (2021-11-23)
43
-
44
- [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.5.1...v2.5.2)
45
-
46
- **Merged pull requests:**
47
-
48
- - Loosen webdrivers constraint in solidus\_dev\_support [\#180](https://github.com/solidusio/solidus_dev_support/pull/180) ([gsmendoza](https://github.com/gsmendoza))
49
-
50
- ## [v2.5.1](https://github.com/solidusio/solidus_dev_support/tree/v2.5.1) (2021-08-31)
51
-
52
- [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.5.0...v2.5.1)
53
-
54
- ## [v2.5.0](https://github.com/solidusio/solidus_dev_support/tree/v2.5.0) (2021-04-20)
55
-
56
- [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.4.3...v2.5.0)
57
-
58
- **Implemented enhancements:**
59
-
60
- - Allow Solidus 3 [\#176](https://github.com/solidusio/solidus_dev_support/pull/176) ([kennyadsl](https://github.com/kennyadsl))
61
- - Relax Ruby version requirement [\#174](https://github.com/solidusio/solidus_dev_support/pull/174) ([gauravtiwari](https://github.com/gauravtiwari))
62
-
63
- ## [v2.4.3](https://github.com/solidusio/solidus_dev_support/tree/v2.4.3) (2021-02-23)
64
-
65
- [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.4.2...v2.4.3)
66
-
67
- **Implemented enhancements:**
68
-
69
- - Add instruction on how to use the new factories in apps [\#172](https://github.com/solidusio/solidus_dev_support/pull/172) ([kennyadsl](https://github.com/kennyadsl))
70
-
71
- **Fixed bugs:**
72
-
73
- - Explode directories into individual files [\#171](https://github.com/solidusio/solidus_dev_support/pull/171) ([kennyadsl](https://github.com/kennyadsl))
74
- - Fix factories loading, part 2 [\#170](https://github.com/solidusio/solidus_dev_support/pull/170) ([kennyadsl](https://github.com/kennyadsl))
75
-
76
- ## [v2.4.2](https://github.com/solidusio/solidus_dev_support/tree/v2.4.2) (2021-02-19)
77
-
78
- [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.4.1...v2.4.2)
79
-
80
- ## [v2.4.1](https://github.com/solidusio/solidus_dev_support/tree/v2.4.1) (2021-02-19)
81
-
82
- [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.4.0...v2.4.1)
83
-
84
- **Fixed bugs:**
85
-
86
- - Fix loading factories in extensions after the last changes in Solidus [\#169](https://github.com/solidusio/solidus_dev_support/pull/169) ([kennyadsl](https://github.com/kennyadsl))
87
-
88
- ## [v2.4.0](https://github.com/solidusio/solidus_dev_support/tree/v2.4.0) (2021-02-05)
89
-
90
- [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.3.0...v2.4.0)
91
-
92
- **Implemented enhancements:**
93
-
94
- - Improve engine's requires to remove double inclusions [\#165](https://github.com/solidusio/solidus_dev_support/pull/165) ([kennyadsl](https://github.com/kennyadsl))
95
- - Remove double require of core factories from rails\_helper [\#164](https://github.com/solidusio/solidus_dev_support/pull/164) ([kennyadsl](https://github.com/kennyadsl))
96
-
97
- **Fixed bugs:**
98
-
99
- - Fix typo in configuration.rb.tt [\#166](https://github.com/solidusio/solidus_dev_support/pull/166) ([brchristian](https://github.com/brchristian))
100
-
101
- **Merged pull requests:**
102
-
103
- - Rename spree:install to solidus:install in the sandbox template [\#167](https://github.com/solidusio/solidus_dev_support/pull/167) ([blocknotes](https://github.com/blocknotes))
104
-
105
- ## [v2.3.0](https://github.com/solidusio/solidus_dev_support/tree/v2.3.0) (2021-01-14)
106
-
107
- [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.2.0...v2.3.0)
108
-
109
- **Implemented enhancements:**
110
-
111
- - Do not raise if source\_code\_uri is missing in the gemspec [\#163](https://github.com/solidusio/solidus_dev_support/pull/163) ([kennyadsl](https://github.com/kennyadsl))
112
- - Factory bot fixes for latest Solidus 2.11 release [\#162](https://github.com/solidusio/solidus_dev_support/pull/162) ([elia](https://github.com/elia))
113
-
114
- **Fixed bugs:**
115
-
116
- - use rubocop-rspec 2.x [\#161](https://github.com/solidusio/solidus_dev_support/pull/161) ([ccarruitero](https://github.com/ccarruitero))
117
-
118
- ## [v2.2.0](https://github.com/solidusio/solidus_dev_support/tree/v2.2.0) (2020-11-27)
119
-
120
- [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.1.0...v2.2.0)
121
-
122
- **Implemented enhancements:**
123
-
124
- - Improve the URL generation for the gemspec and Readme \(defaulting to the solidusio-contrib organization\), consistently use a file-based Changelog [\#159](https://github.com/solidusio/solidus_dev_support/pull/159) ([elia](https://github.com/elia))
125
- - Configuration Cleanup [\#158](https://github.com/solidusio/solidus_dev_support/pull/158) ([elia](https://github.com/elia))
126
- - Refer to Solidus wiki page for gem release info [\#157](https://github.com/solidusio/solidus_dev_support/pull/157) ([spaghetticode](https://github.com/spaghetticode))
127
- - Upgrade to RuboCop 1.0 [\#156](https://github.com/solidusio/solidus_dev_support/pull/156) ([aldesantis](https://github.com/aldesantis))
128
- - Add a command to display gem's version [\#154](https://github.com/solidusio/solidus_dev_support/pull/154) ([igorbp](https://github.com/igorbp))
129
-
130
- **Fixed bugs:**
131
-
132
- - Require "webdrivers" before using it as the default javascript driver [\#152](https://github.com/solidusio/solidus_dev_support/pull/152) ([ccarruitero](https://github.com/ccarruitero))
133
-
134
- **Merged pull requests:**
135
-
136
- - Don't let mergify mark a PR as red because it's missing a review [\#153](https://github.com/solidusio/solidus_dev_support/pull/153) ([elia](https://github.com/elia))
137
-
138
- ## [v2.1.0](https://github.com/solidusio/solidus_dev_support/tree/v2.1.0) (2020-10-02)
139
-
140
- [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.0.1...v2.1.0)
141
-
142
- **Implemented enhancements:**
143
-
144
- - Add standard github\_changelog\_generator configuration [\#151](https://github.com/solidusio/solidus_dev_support/pull/151) ([aldesantis](https://github.com/aldesantis))
145
- - Move generated factories to `testing_support/` [\#150](https://github.com/solidusio/solidus_dev_support/pull/150) ([aldesantis](https://github.com/aldesantis))
146
- - Add extension configuration boilerplate [\#149](https://github.com/solidusio/solidus_dev_support/pull/149) ([aldesantis](https://github.com/aldesantis))
147
-
148
- **Fixed bugs:**
149
-
150
- - Fix `NewCops: Enable` option for RuboCop [\#148](https://github.com/solidusio/solidus_dev_support/pull/148) ([aldesantis](https://github.com/aldesantis))
151
-
152
- ## [v2.0.1](https://github.com/solidusio/solidus_dev_support/tree/v2.0.1) (2020-09-22)
153
-
154
- [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.0.0...v2.0.1)
155
-
156
- **Fixed bugs:**
157
-
158
- - Fix gem\_version not being found during extension generation [\#144](https://github.com/solidusio/solidus_dev_support/pull/144) ([aldesantis](https://github.com/aldesantis))
159
-
160
- ## [v2.0.0](https://github.com/solidusio/solidus_dev_support/tree/v2.0.0) (2020-09-22)
161
-
162
- [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v1.6.0...v2.0.0)
163
-
164
- **Breaking changes:**
165
-
166
- - Switch the JS driver to WebDriver/Selenium [\#136](https://github.com/solidusio/solidus_dev_support/pull/136) ([elia](https://github.com/elia))
167
-
168
- **Implemented enhancements:**
169
-
170
- - Enable new RuboCop cops automatically [\#143](https://github.com/solidusio/solidus_dev_support/pull/143) ([aldesantis](https://github.com/aldesantis))
171
- - Don't forcefully close issues via stale-bot [\#139](https://github.com/solidusio/solidus_dev_support/pull/139) ([elia](https://github.com/elia))
172
- - Add the approximate recommendation for dev-support to the gemspec [\#137](https://github.com/solidusio/solidus_dev_support/pull/137) ([elia](https://github.com/elia))
173
-
174
- **Fixed bugs:**
175
-
176
- - fix capybara driver declaration [\#141](https://github.com/solidusio/solidus_dev_support/pull/141) ([ccarruitero](https://github.com/ccarruitero))
177
- - Bump RuboCop to latest 0.90.0 version [\#138](https://github.com/solidusio/solidus_dev_support/pull/138) ([peterberkenbosch](https://github.com/peterberkenbosch))
178
- - Fix missing backslash in solidus install command [\#135](https://github.com/solidusio/solidus_dev_support/pull/135) ([nirebu](https://github.com/nirebu))
179
-
180
- ## [v1.6.0](https://github.com/solidusio/solidus_dev_support/tree/v1.6.0) (2020-08-26)
181
-
182
- [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v1.5.0...v1.6.0)
183
-
184
- **Implemented enhancements:**
185
-
186
- - Let the extension name include spaces [\#133](https://github.com/solidusio/solidus_dev_support/pull/133) ([elia](https://github.com/elia))
187
- - Add precompiled badges fro CI and coverage [\#132](https://github.com/solidusio/solidus_dev_support/pull/132) ([elia](https://github.com/elia))
188
- - Add Changelog Rake task [\#128](https://github.com/solidusio/solidus_dev_support/pull/128) ([tvdeyen](https://github.com/tvdeyen))
189
- - Readme fixes [\#122](https://github.com/solidusio/solidus_dev_support/pull/122) ([elia](https://github.com/elia))
190
-
191
- **Fixed bugs:**
192
-
193
- - Don't install a payment-method in the sandbox [\#131](https://github.com/solidusio/solidus_dev_support/pull/131) ([elia](https://github.com/elia))
194
- - Run extension generator in sandbox [\#127](https://github.com/solidusio/solidus_dev_support/pull/127) ([elia](https://github.com/elia))
195
-
196
- ## [v1.5.0](https://github.com/solidusio/solidus_dev_support/tree/v1.5.0) (2020-06-13)
197
-
198
- [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v1.4.0...v1.5.0)
199
-
200
- **Fixed bugs:**
201
-
202
- - Fix formatting typo in readme [\#117](https://github.com/solidusio/solidus_dev_support/pull/117) ([aldesantis](https://github.com/aldesantis))
203
-
204
- **Removed:**
205
-
206
- - Remove deprecated bin/r and bin/sandbox\_rails binaries [\#118](https://github.com/solidusio/solidus_dev_support/pull/118) ([aldesantis](https://github.com/aldesantis))
207
-
208
- ## [1.4.0] - 2020-06-05
209
-
210
- ### Added
211
-
212
- - Added a "Usage" section to the default readme
213
-
214
- ### Changed
215
-
216
- - Restored `bin/rails` and renamed the context specific bins to `bin/rails-engine` and `bin/rails-sandbox`
217
- - Adjusted the readme structure with better formatting and grammar
218
- - Moved the RuboCop `AllCops/Exclude` statement back to the internal configuration
219
-
220
- ### Deprecated
221
-
222
- - Deprecated `bin/r` in favor of `bin/rails-engine` and `bin/sandbox_rails` in favor of `bin/rails-sandbox`
223
-
224
- ## [1.3.0] - 2020-05-22
225
-
226
- ### Added
227
-
228
- - Ignored `.rvmrc`, `.ruby-version` and `.ruby-gemset` by default in extensions
229
- - Added deprecation warning when extensions don't support Zeitwerk
230
-
231
- ### Changed
232
-
233
- - Updated the extension template to use latest (0.5.X) solidus_support
234
- - Set Ruby 2.5+ as the minimum Ruby version in generated extensions
235
-
236
- ### Removed
237
-
238
- - Removed Stale from the default extension configuration
239
-
240
- ## [1.2.0] - 2020-04-24
241
-
242
- ### Changed
243
-
244
- - Updated the extension template with the latest modifications
245
-
246
- ## [1.1.0] - 2020-03-06
247
-
248
- ### Added
249
-
250
- - Made Git ignore `sandbox` in generated extensions
251
- - Added support for specifying `SOLIDUS_BRANCH` in the sandbox
252
-
253
- ### Changed
254
-
255
- - Split `bin/rails` into `bin/r` and `bin/sandbox_rails`
256
-
257
-
258
- ### Fixed
259
-
260
- - Fixed the sandbox Gemfile not including Solidus
261
-
262
- ## [1.0.1] - 2020-02-17
263
-
264
- ### Fixed
265
-
266
- - Fixed missing factory definitions when using `modify` on Solidus factories
267
-
268
- ## [1.0.0] - 2020-02-07
269
-
270
- ### Added
271
-
272
- - Added a binstub for `rake` to the extension generator
273
- - Added the ability for the generator to reuse existing data for the gemspec
274
-
275
- ### Fixed
276
-
277
- - Fixed Dependabot throwing an error because of `eval_gemfile` in the Gemfile
278
-
279
- ## [0.6.0] - 2020-01-20
280
-
281
- ### Added
282
-
283
- - Added support for a local Gemfile for local development dependencies (e.g. 'pry-debug')
284
- - Added a `bin/sandbox` script to all extension for local development with `bin/rails` support.
285
-
286
- ### Changed
287
-
288
- - The default rake task no longer re-generates the `test_app` each time it runs.
289
- In order to get that behavior back simply call clobber before launching it:
290
- `bin/rake clobber default`
291
-
292
- ### Fixed
293
-
294
- - Fixed generated extensions isolating the wrong namespace
295
-
296
- ## [0.5.0] - 2020-01-16
297
-
298
- ### Added
299
-
300
- - Added `--require spec_helper` to the generated `.rspec`
301
-
302
- ### Fixed
303
-
304
- - Replaced "Spree" with "Solidus" in the license of generated extensions
305
-
306
- ### Changed
307
-
308
- - Updated gem-release to use tags instead of branches for new releases
309
-
310
- ## [0.4.1] - 2020-01-15
311
-
312
- ### Fixed
313
-
314
- - Fixed the generated RuboCop config inheriting from this gem's dev-only config
315
- - Fixed the generated extension not requiring the `version` file
316
- - Fixed the generator not properly marking `bin/` files as executable
317
-
318
- ## [0.4.0] - 2020-01-10
319
-
320
- ### Added
321
-
322
- - Enforced Rails version depending on the Solidus version in generated Gemfile
323
- - Made Git ignore `spec/examples.txt` in generated extensions
324
- - Added the ability to run `solidus extension .` to update an extension
325
-
326
- ### Changed
327
-
328
- - The `solidus` executable is now solely managed by Thor and is open to extension by other gems
329
-
330
- ### Fixed
331
-
332
- - Fixed generated extensions using an old Rakefile
333
- - Fixed some RuboCop offenses in the generated files
334
- - Fixed the `bin/setup` script calling a non-existing Rake binary
335
-
336
- ### Removed
337
-
338
- - Removed RuboCop from the default Rake task
339
- - Removed the `-v` option from the `solidus` executable
340
- - Removed the factory_bot gem from the Gemfile
341
-
342
- ## [0.3.0] - 2020-01-10
343
-
344
- ### Added
345
-
346
- - Adopted Ruby 2.4+ as the minimum Ruby version in generated extensions
347
- - Added `bin/console`, `bin/rails` and `bin/setup` to generated extensions
348
- - Added some Bundler gemspec defaults to generated extensions
349
- - Configured the default Rake task to run generate the test app before running RSpec
350
-
351
- ### Changed
352
-
353
- - Updated solidus_support to 0.4.0 for Zeitwerk and Rails 6 compatibility
354
- - Updated the `solidus` executable to only rely on Thor and be open to extension by other gems
355
-
356
- ### Removed
357
-
358
- - Removed solidus_support as a dependency
359
-
360
- ### Fixed
361
-
362
- - Fixed `extension:test_app` not going back to the root after execution
363
-
364
- ## [0.2.0] - 2019-12-16
365
-
366
- ### Added
367
-
368
- - Adopted [Apparition](https://github.com/twalpole/apparition) as the deafult JS driver for Capybara
369
- - Fixed window size to 1920x1080px in feature specs
370
- - Added [Stale](https://github.com/apps/stale) to automatically mark GitHub issues as stale
371
-
372
- ### Changed
373
-
374
- - Disabled all `Metrics` cops except for `LineLength`
375
- - Set `Layout/AlignArguments` cop to `with_fixed_indentation`
376
- - Disabled `Layout/MultilineOperationIndentation` cop
377
- - Renamed the project to SolidusDevSupport (was SolidusExtensionDevTools)
378
-
379
- ### Fixed
380
-
381
- - Fixed Chrome not starting in headless mode
382
-
383
- ## [0.1.1] - 2019-11-11
384
-
385
- ### Fixed
386
-
387
- - Fixed `rails_helper` not working due to `SolidusDevSupport` not being available
388
-
389
- ## [0.1.0] - 2019-11-11
390
-
391
- Initial release.
392
-
393
- [Unreleased]: https://github.com/solidusio/solidus_dev_support/compare/v1.4.0...HEAD
394
- [1.4.0]: https://github.com/solidusio/solidus_dev_support/compare/v1.3.0...v1.4.0
395
- [1.3.0]: https://github.com/solidusio/solidus_dev_support/compare/v1.2.0...v1.3.0
396
- [1.2.0]: https://github.com/solidusio/solidus_dev_support/compare/v1.1.0...v1.2.0
397
- [1.1.0]: https://github.com/solidusio/solidus_dev_support/compare/v1.0.1...v1.1.0
398
- [1.0.1]: https://github.com/solidusio/solidus_dev_support/compare/v1.0.0...v1.0.1
399
- [1.0.0]: https://github.com/solidusio/solidus_dev_support/compare/v0.6.0...v1.0.0
400
- [0.6.0]: https://github.com/solidusio/solidus_dev_support/compare/v0.5.0...v0.6.0
401
- [0.5.0]: https://github.com/solidusio/solidus_dev_support/compare/v0.4.1...v0.5.0
402
- [0.4.1]: https://github.com/solidusio/solidus_dev_support/compare/v0.4.0...v0.4.1
403
- [0.4.0]: https://github.com/solidusio/solidus_dev_support/compare/v0.3.0...v0.4.0
404
- [0.3.0]: https://github.com/solidusio/solidus_dev_support/compare/v0.2.0...v0.3.0
405
- [0.2.0]: https://github.com/solidusio/solidus_dev_support/compare/v0.1.1...v0.2.0
406
- [0.1.1]: https://github.com/solidusio/solidus_dev_support/compare/v0.1.0...v0.1.1
407
- [0.1.0]: https://github.com/solidusio/solidus_dev_support/releases/tag/v0.1.0
408
-
409
-
410
- \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
3
+ See https://github.com/solidusio/solidus_dev_support/releases or OLD_CHANGELOG.md for older versions.
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/OLD_CHANGELOG.md CHANGED
@@ -1,3 +1,210 @@
1
+ # Changelog
2
+
3
+ ## [2.5.6](https://github.com/solidusio/solidus_dev_support/tree/2.5.6) (2023-04-24)
4
+
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)
23
+
24
+ **Implemented enhancements:**
25
+
26
+ - Configure solidus\_chrome\_headless as capybara-screenshot driver [\#190](https://github.com/solidusio/solidus_dev_support/pull/190) ([tvdeyen](https://github.com/tvdeyen))
27
+ - Misc: auth-devise, extracted frontend gem, sqlite [\#188](https://github.com/solidusio/solidus_dev_support/pull/188) ([elia](https://github.com/elia))
28
+
29
+ **Fixed bugs:**
30
+
31
+ - Revert temporary fix for Octokit [\#186](https://github.com/solidusio/solidus_dev_support/pull/186) ([waiting-for-dev](https://github.com/waiting-for-dev))
32
+
33
+ ## [v2.5.4](https://github.com/solidusio/solidus_dev_support/tree/v2.5.4) (2022-05-31)
34
+
35
+ [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.5.2...v2.5.4)
36
+
37
+ **Fixed bugs:**
38
+
39
+ - Add a missing require for octokit/repository [\#185](https://github.com/solidusio/solidus_dev_support/pull/185) ([elia](https://github.com/elia))
40
+ - Fix window resizing of `solidus_chrome_headless` driver [\#184](https://github.com/solidusio/solidus_dev_support/pull/184) ([gsmendoza](https://github.com/gsmendoza))
41
+
42
+ ## [v2.5.2](https://github.com/solidusio/solidus_dev_support/tree/v2.5.2) (2021-11-23)
43
+
44
+ [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.5.1...v2.5.2)
45
+
46
+ **Merged pull requests:**
47
+
48
+ - Loosen webdrivers constraint in solidus\_dev\_support [\#180](https://github.com/solidusio/solidus_dev_support/pull/180) ([gsmendoza](https://github.com/gsmendoza))
49
+
50
+ ## [v2.5.1](https://github.com/solidusio/solidus_dev_support/tree/v2.5.1) (2021-08-31)
51
+
52
+ [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.5.0...v2.5.1)
53
+
54
+ ## [v2.5.0](https://github.com/solidusio/solidus_dev_support/tree/v2.5.0) (2021-04-20)
55
+
56
+ [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.4.3...v2.5.0)
57
+
58
+ **Implemented enhancements:**
59
+
60
+ - Allow Solidus 3 [\#176](https://github.com/solidusio/solidus_dev_support/pull/176) ([kennyadsl](https://github.com/kennyadsl))
61
+ - Relax Ruby version requirement [\#174](https://github.com/solidusio/solidus_dev_support/pull/174) ([gauravtiwari](https://github.com/gauravtiwari))
62
+
63
+ ## [v2.4.3](https://github.com/solidusio/solidus_dev_support/tree/v2.4.3) (2021-02-23)
64
+
65
+ [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.4.2...v2.4.3)
66
+
67
+ **Implemented enhancements:**
68
+
69
+ - Add instruction on how to use the new factories in apps [\#172](https://github.com/solidusio/solidus_dev_support/pull/172) ([kennyadsl](https://github.com/kennyadsl))
70
+
71
+ **Fixed bugs:**
72
+
73
+ - Explode directories into individual files [\#171](https://github.com/solidusio/solidus_dev_support/pull/171) ([kennyadsl](https://github.com/kennyadsl))
74
+ - Fix factories loading, part 2 [\#170](https://github.com/solidusio/solidus_dev_support/pull/170) ([kennyadsl](https://github.com/kennyadsl))
75
+
76
+ ## [v2.4.2](https://github.com/solidusio/solidus_dev_support/tree/v2.4.2) (2021-02-19)
77
+
78
+ [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.4.1...v2.4.2)
79
+
80
+ ## [v2.4.1](https://github.com/solidusio/solidus_dev_support/tree/v2.4.1) (2021-02-19)
81
+
82
+ [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.4.0...v2.4.1)
83
+
84
+ **Fixed bugs:**
85
+
86
+ - Fix loading factories in extensions after the last changes in Solidus [\#169](https://github.com/solidusio/solidus_dev_support/pull/169) ([kennyadsl](https://github.com/kennyadsl))
87
+
88
+ ## [v2.4.0](https://github.com/solidusio/solidus_dev_support/tree/v2.4.0) (2021-02-05)
89
+
90
+ [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.3.0...v2.4.0)
91
+
92
+ **Implemented enhancements:**
93
+
94
+ - Improve engine's requires to remove double inclusions [\#165](https://github.com/solidusio/solidus_dev_support/pull/165) ([kennyadsl](https://github.com/kennyadsl))
95
+ - Remove double require of core factories from rails\_helper [\#164](https://github.com/solidusio/solidus_dev_support/pull/164) ([kennyadsl](https://github.com/kennyadsl))
96
+
97
+ **Fixed bugs:**
98
+
99
+ - Fix typo in configuration.rb.tt [\#166](https://github.com/solidusio/solidus_dev_support/pull/166) ([brchristian](https://github.com/brchristian))
100
+
101
+ **Merged pull requests:**
102
+
103
+ - Rename spree:install to solidus:install in the sandbox template [\#167](https://github.com/solidusio/solidus_dev_support/pull/167) ([blocknotes](https://github.com/blocknotes))
104
+
105
+ ## [v2.3.0](https://github.com/solidusio/solidus_dev_support/tree/v2.3.0) (2021-01-14)
106
+
107
+ [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.2.0...v2.3.0)
108
+
109
+ **Implemented enhancements:**
110
+
111
+ - Do not raise if source\_code\_uri is missing in the gemspec [\#163](https://github.com/solidusio/solidus_dev_support/pull/163) ([kennyadsl](https://github.com/kennyadsl))
112
+ - Factory bot fixes for latest Solidus 2.11 release [\#162](https://github.com/solidusio/solidus_dev_support/pull/162) ([elia](https://github.com/elia))
113
+
114
+ **Fixed bugs:**
115
+
116
+ - use rubocop-rspec 2.x [\#161](https://github.com/solidusio/solidus_dev_support/pull/161) ([ccarruitero](https://github.com/ccarruitero))
117
+
118
+ ## [v2.2.0](https://github.com/solidusio/solidus_dev_support/tree/v2.2.0) (2020-11-27)
119
+
120
+ [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.1.0...v2.2.0)
121
+
122
+ **Implemented enhancements:**
123
+
124
+ - Improve the URL generation for the gemspec and Readme \(defaulting to the solidusio-contrib organization\), consistently use a file-based Changelog [\#159](https://github.com/solidusio/solidus_dev_support/pull/159) ([elia](https://github.com/elia))
125
+ - Configuration Cleanup [\#158](https://github.com/solidusio/solidus_dev_support/pull/158) ([elia](https://github.com/elia))
126
+ - Refer to Solidus wiki page for gem release info [\#157](https://github.com/solidusio/solidus_dev_support/pull/157) ([spaghetticode](https://github.com/spaghetticode))
127
+ - Upgrade to RuboCop 1.0 [\#156](https://github.com/solidusio/solidus_dev_support/pull/156) ([aldesantis](https://github.com/aldesantis))
128
+ - Add a command to display gem's version [\#154](https://github.com/solidusio/solidus_dev_support/pull/154) ([igorbp](https://github.com/igorbp))
129
+
130
+ **Fixed bugs:**
131
+
132
+ - Require "webdrivers" before using it as the default javascript driver [\#152](https://github.com/solidusio/solidus_dev_support/pull/152) ([ccarruitero](https://github.com/ccarruitero))
133
+
134
+ **Merged pull requests:**
135
+
136
+ - Don't let mergify mark a PR as red because it's missing a review [\#153](https://github.com/solidusio/solidus_dev_support/pull/153) ([elia](https://github.com/elia))
137
+
138
+ ## [v2.1.0](https://github.com/solidusio/solidus_dev_support/tree/v2.1.0) (2020-10-02)
139
+
140
+ [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.0.1...v2.1.0)
141
+
142
+ **Implemented enhancements:**
143
+
144
+ - Add standard github\_changelog\_generator configuration [\#151](https://github.com/solidusio/solidus_dev_support/pull/151) ([aldesantis](https://github.com/aldesantis))
145
+ - Move generated factories to `testing_support/` [\#150](https://github.com/solidusio/solidus_dev_support/pull/150) ([aldesantis](https://github.com/aldesantis))
146
+ - Add extension configuration boilerplate [\#149](https://github.com/solidusio/solidus_dev_support/pull/149) ([aldesantis](https://github.com/aldesantis))
147
+
148
+ **Fixed bugs:**
149
+
150
+ - Fix `NewCops: Enable` option for RuboCop [\#148](https://github.com/solidusio/solidus_dev_support/pull/148) ([aldesantis](https://github.com/aldesantis))
151
+
152
+ ## [v2.0.1](https://github.com/solidusio/solidus_dev_support/tree/v2.0.1) (2020-09-22)
153
+
154
+ [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.0.0...v2.0.1)
155
+
156
+ **Fixed bugs:**
157
+
158
+ - Fix gem\_version not being found during extension generation [\#144](https://github.com/solidusio/solidus_dev_support/pull/144) ([aldesantis](https://github.com/aldesantis))
159
+
160
+ ## [v2.0.0](https://github.com/solidusio/solidus_dev_support/tree/v2.0.0) (2020-09-22)
161
+
162
+ [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v1.6.0...v2.0.0)
163
+
164
+ **Breaking changes:**
165
+
166
+ - Switch the JS driver to WebDriver/Selenium [\#136](https://github.com/solidusio/solidus_dev_support/pull/136) ([elia](https://github.com/elia))
167
+
168
+ **Implemented enhancements:**
169
+
170
+ - Enable new RuboCop cops automatically [\#143](https://github.com/solidusio/solidus_dev_support/pull/143) ([aldesantis](https://github.com/aldesantis))
171
+ - Don't forcefully close issues via stale-bot [\#139](https://github.com/solidusio/solidus_dev_support/pull/139) ([elia](https://github.com/elia))
172
+ - Add the approximate recommendation for dev-support to the gemspec [\#137](https://github.com/solidusio/solidus_dev_support/pull/137) ([elia](https://github.com/elia))
173
+
174
+ **Fixed bugs:**
175
+
176
+ - fix capybara driver declaration [\#141](https://github.com/solidusio/solidus_dev_support/pull/141) ([ccarruitero](https://github.com/ccarruitero))
177
+ - Bump RuboCop to latest 0.90.0 version [\#138](https://github.com/solidusio/solidus_dev_support/pull/138) ([peterberkenbosch](https://github.com/peterberkenbosch))
178
+ - Fix missing backslash in solidus install command [\#135](https://github.com/solidusio/solidus_dev_support/pull/135) ([nirebu](https://github.com/nirebu))
179
+
180
+ ## [v1.6.0](https://github.com/solidusio/solidus_dev_support/tree/v1.6.0) (2020-08-26)
181
+
182
+ [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v1.5.0...v1.6.0)
183
+
184
+ **Implemented enhancements:**
185
+
186
+ - Let the extension name include spaces [\#133](https://github.com/solidusio/solidus_dev_support/pull/133) ([elia](https://github.com/elia))
187
+ - Add precompiled badges fro CI and coverage [\#132](https://github.com/solidusio/solidus_dev_support/pull/132) ([elia](https://github.com/elia))
188
+ - Add Changelog Rake task [\#128](https://github.com/solidusio/solidus_dev_support/pull/128) ([tvdeyen](https://github.com/tvdeyen))
189
+ - Readme fixes [\#122](https://github.com/solidusio/solidus_dev_support/pull/122) ([elia](https://github.com/elia))
190
+
191
+ **Fixed bugs:**
192
+
193
+ - Don't install a payment-method in the sandbox [\#131](https://github.com/solidusio/solidus_dev_support/pull/131) ([elia](https://github.com/elia))
194
+ - Run extension generator in sandbox [\#127](https://github.com/solidusio/solidus_dev_support/pull/127) ([elia](https://github.com/elia))
195
+
196
+ ## [v1.5.0](https://github.com/solidusio/solidus_dev_support/tree/v1.5.0) (2020-06-13)
197
+
198
+ [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v1.4.0...v1.5.0)
199
+
200
+ **Fixed bugs:**
201
+
202
+ - Fix formatting typo in readme [\#117](https://github.com/solidusio/solidus_dev_support/pull/117) ([aldesantis](https://github.com/aldesantis))
203
+
204
+ **Removed:**
205
+
206
+ - Remove deprecated bin/r and bin/sandbox\_rails binaries [\#118](https://github.com/solidusio/solidus_dev_support/pull/118) ([aldesantis](https://github.com/aldesantis))
207
+
1
208
  ## [1.4.0] - 2020-06-05
2
209
 
3
210
  ### Added
@@ -8,7 +215,7 @@
8
215
 
9
216
  - Restored `bin/rails` and renamed the context specific bins to `bin/rails-engine` and `bin/rails-sandbox`
10
217
  - Adjusted the readme structure with better formatting and grammar
11
- - Moved the RuboCop `AllCops/Exclude` statement back to the internal configuration
218
+ - Moved the RuboCop `AllCops/Exclude` statement back to the internal configuration
12
219
 
13
220
  ### Deprecated
14
221
 
@@ -198,3 +405,6 @@ Initial release.
198
405
  [0.2.0]: https://github.com/solidusio/solidus_dev_support/compare/v0.1.1...v0.2.0
199
406
  [0.1.1]: https://github.com/solidusio/solidus_dev_support/compare/v0.1.0...v0.1.1
200
407
  [0.1.0]: https://github.com/solidusio/solidus_dev_support/releases/tag/v0.1.0
408
+
409
+
410
+ \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
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
 
data/Rakefile CHANGED
@@ -1,19 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "bundler/gem_tasks"
4
-
5
- desc "Update the changelog, specify the version for the unreleased changes appending VERSION=1.2.3 to the command"
6
- task :changelog do
7
- require_relative "lib/solidus_dev_support/version"
8
-
9
- future_release = ENV.fetch("VERSION") {
10
- warn "Using current version (#{SolidusDevSupport::VERSION}) for unreleased changes, use VERSION=1.2.3 to select a different one."
11
- SolidusDevSupport::VERSION
12
- }
13
-
14
- sh "bundle exec github_changelog_generator --project solidus_dev_support --user solidusio --future-release #{future_release}"
15
- end
16
-
17
4
  require "rspec/core/rake_task"
18
5
  RSpec::Core::RakeTask.new(:spec)
19
6
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  module SolidusDevSupport
4
4
  module RuboCop
5
- CONFIG_PATH = "#{__dir__}/rubocop/config.yml"
5
+ CONFIG_PATH = "#{__dir__}/rubocop/config.yml".freeze
6
6
 
7
7
  def self.inject_defaults!
8
8
  config = ::RuboCop::ConfigLoader.load_file(CONFIG_PATH)
@@ -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.
@@ -42,14 +42,7 @@ bundle exec rubocop
42
42
  ```
43
43
 
44
44
  When testing your application's integration with this extension you may use its factories.
45
- Simply add this require statement to your `spec/spec_helper.rb`:
46
-
47
- ```ruby
48
- require '<%= file_name %>/testing_support/factories'
49
- ```
50
-
51
- Or, if you are using `FactoryBot.definition_file_paths`, you can load Solidus core
52
- factories along with this extension's factories using this statement:
45
+ You can load Solidus core factories along with this extension's factories using this statement:
53
46
 
54
47
  ```ruby
55
48
  SolidusDevSupport::TestingSupport::Factories.load_for(<%= class_name %>::Engine)
@@ -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 %>'
@@ -18,7 +18,8 @@ require 'solidus_dev_support/rspec/feature_helper'
18
18
  # in spec/support/ and its subdirectories.
19
19
  Dir["#{__dir__}/support/**/*.rb"].sort.each { |f| require f }
20
20
 
21
- # Requires factories defined in lib/<%= file_name %>/testing_support/factories.rb
21
+ # Requires factories defined in Solidus core and this extension.
22
+ # See: lib/<%= file_name %>/testing_support/factories.rb
22
23
  SolidusDevSupport::TestingSupport::Factories.load_for(<%= class_name %>::Engine)
23
24
 
24
25
  RSpec.configure do |config|
@@ -1,86 +1,22 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'factory_bot'
4
-
5
- Spree::Deprecation.silence do
6
- require 'spree/testing_support/factories'
7
- puts <<~MSG
8
- We are transitioning to a new way of loading factories for extensions.
9
- Be sure this extension does not load factories using require but uses
10
- the load_for() method in its spec_helper.rb, eg:
11
-
12
- SolidusDevSupport::TestingSupport::Factories.load_for(ExtensionName1::Engine, ExtensionName2::Engine)
13
-
14
- This will load Solidus Core factories right before the ones defined in
15
- lib/extension_name/testing_support/factories/*_factory.rb or
16
- lib/extension_name/testing_support/factories.rb
17
-
18
- This message will be removed when all extensions are updated.
19
- MSG
20
- end
21
-
22
- begin
23
- require 'spree/testing_support/factory_bot'
24
- rescue LoadError
25
- # Do nothing, we are testing the extension against an old version of Solidus
26
- end
4
+ require 'spree/testing_support/factory_bot'
27
5
 
28
6
  module SolidusDevSupport
29
7
  module TestingSupport
30
8
  module Factories
31
9
  def self.load_for(*engines)
32
10
  paths = engines.flat_map do |engine|
33
- # Check if the extension has a lib/*/factories.rb. If it does, we emit a
34
- # deprecation warning and just use it.
35
- obsolete_factories_file = engine.root.glob('lib/*/factories.rb').first # 'lib/*/factories/*_factory.rb'
36
- if obsolete_factories_file.present?
37
- ActiveSupport::Deprecation.warn <<-WARN.squish, caller(4)
38
- SolidusDevSupport::TestingSupport::Factories.load_for() is automatically loading
39
- all factories present in #{obsolete_factories_file.dirname.to_s.gsub(engine.root.to_s, '')}/testing_support/factories/.
40
- Please move the content of #{obsolete_factories_file.to_s.gsub(engine.root.to_s, '')} to that directory.
41
- WARN
42
-
43
- [obsolete_factories_file]
44
- else
45
- # If there are both a lib/*/testing_support/factories.rb and a lib/*/testing_support/factories/,
46
- # we assume that the factories.rb file is only used to load all factories prensent in the directory.
47
- # That file can be removed from the extension, in fact, we ignore it and emit a message asking to
48
- # remove it.
49
- factories_file_or_folder = engine.root.glob('lib/*/testing_support/factories{,.rb}')
50
- if factories_file_or_folder.size == 2
51
- folder, file = factories_file_or_folder.partition(&:directory?).map(&:first).map { |path| path.to_s.gsub(engine.root.to_s, '') }
52
- ActiveSupport::Deprecation.warn <<-WARN.squish, caller(4)
53
- SolidusDevSupport::TestingSupport::Factories.load_for() is automatically loading
54
- all factories present into #{folder}. You should now safely remove #{file} if it
55
- is only used to load ./factories content.
56
- WARN
57
-
58
- engine.root.glob('lib/*/testing_support/factories/**/*_factory.rb')
59
- elsif factories_file_or_folder.first.directory?
60
- engine.root.glob('lib/*/testing_support/factories/**/*_factory.rb')
61
- else
62
- factories_file_or_folder
63
- end
64
- end
11
+ engine.root.glob('lib/**/testing_support/factories{,.rb}')
65
12
  end.map { |path| path.sub(/.rb\z/, '').to_s }
66
13
 
67
- if using_factory_bot_definition_file_paths?
68
- FactoryBot.definition_file_paths = [
69
- Spree::TestingSupport::FactoryBot.definition_file_paths,
70
- paths,
71
- ].flatten
72
-
73
- FactoryBot.reload
74
- else
75
- FactoryBot.find_definitions
76
-
77
- paths.each { |path| require path }
78
- end
79
- end
14
+ FactoryBot.definition_file_paths = [
15
+ Spree::TestingSupport::FactoryBot.definition_file_paths,
16
+ paths,
17
+ ].flatten
80
18
 
81
- def self.using_factory_bot_definition_file_paths?
82
- defined?(Spree::TestingSupport::FactoryBot) &&
83
- Spree::TestingSupport::FactoryBot.respond_to?(:definition_file_paths)
19
+ FactoryBot.reload
84
20
  end
85
21
  end
86
22
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusDevSupport
4
- VERSION = "2.5.6"
4
+ VERSION = "2.7.0"
5
5
 
6
6
  def self.gem_version
7
7
  Gem::Version.new(VERSION)
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
14
14
 
15
15
  spec.metadata['homepage_uri'] = spec.homepage
16
16
  spec.metadata['source_code_uri'] = 'https://github.com/solidusio/solidus_dev_support'
17
- spec.metadata['changelog_uri'] = 'https://github.com/solidusio/solidus_dev_support/blob/master/CHANGELOG.md'
17
+ spec.metadata['changelog_uri'] = 'https://github.com/solidusio/solidus_dev_support/releases'
18
18
  spec.metadata['rubygems_mfa_required'] = 'true'
19
19
 
20
20
  spec.required_ruby_version = '>= 2.5.0'
@@ -162,7 +162,7 @@ RSpec.describe 'Create extension' do
162
162
  if $DEBUG || ENV['DEBUG']
163
163
  warn '~' * 80
164
164
  warn "$ #{command}"
165
- warn output.to_s
165
+ warn output
166
166
  warn "$ #{command} ~~~~> EXIT STATUS: #{status.exitstatus}"
167
167
  end
168
168
 
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.6
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-04-24 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
@@ -367,7 +367,7 @@ licenses:
367
367
  metadata:
368
368
  homepage_uri: https://github.com/solidusio/solidus_dev_support
369
369
  source_code_uri: https://github.com/solidusio/solidus_dev_support
370
- changelog_uri: https://github.com/solidusio/solidus_dev_support/blob/master/CHANGELOG.md
370
+ changelog_uri: https://github.com/solidusio/solidus_dev_support/releases
371
371
  rubygems_mfa_required: 'true'
372
372
  post_install_message:
373
373
  rdoc_options: []
@@ -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.4.12
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