solidus_dev_support 2.5.5 → 2.6.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: fe379e7fb130ab58c9441d18cae3d9c0eb6041c112db22497d93d170f4670267
4
- data.tar.gz: 0a2bbcd253dd04a0b76723aa46279c68a0d2596c57fb7dc197c89bc4b8d50e16
3
+ metadata.gz: ecf66be08fc8080f6c64bfd58e1f81ebe5c66aa72d6473146a7fa0ff1ad68e9b
4
+ data.tar.gz: 6f1fe3ec075e8ec5935a336eeedc78974262945cca8eb38e831518e062104d60
5
5
  SHA512:
6
- metadata.gz: 16934e61453c2437bf129eaaa4ffb91927ccb811d5325490da187ede88a8d14c956e3e9d44bfb2b358f745036b4fdeced91a20884467e6bf2e3899222f72fae5
7
- data.tar.gz: 31090179be805e26f804ee26e7fb3ac70865d73105087777e2485961ddfed1a41c6ce48d32c7e4b1cceb45796cb5a2e189099756665228301196b73c13212a9d
6
+ metadata.gz: 15433d4424d7fb44d65be238ddc4240ffb82201b32ed4c94d46ce418ef3fbeda26d84f328750996e57afc12e5a24f515f6fd98aaaa5cb4191f62d199bbd266f4
7
+ data.tar.gz: 3c0fed4e30d243ad9a99ad4e17abe9db1e2978c1c1d90190e636a07355b2eca5a49b938b9998dec1a0126c72101f6360b84e96c814db9ef9a04fd07337fab968
data/.circleci/config.yml CHANGED
@@ -21,16 +21,24 @@ commands:
21
21
 
22
22
  jobs:
23
23
  solidus-master:
24
- executor: solidusio_extensions/sqlite
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: solidusio_extensions/sqlite
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: solidusio_extensions/sqlite
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
- executor: solidusio_extensions/sqlite
39
+ executor:
40
+ name: solidusio_extensions/sqlite
41
+ ruby_version: '3.0'
34
42
  steps: ['setup', 'solidusio_extensions/lint-code']
35
43
 
36
44
  workflows:
data/.github/stale.yml ADDED
@@ -0,0 +1 @@
1
+ _extends: .github
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,393 +1,3 @@
1
1
  # Changelog
2
2
 
3
- ## [2.5.5](https://github.com/solidusio/solidus_dev_support/tree/2.5.5) (2022-09-08)
4
-
5
- [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.5.4...2.5.5)
6
-
7
- **Implemented enhancements:**
8
-
9
- - Configure solidus\_chrome\_headless as capybara-screenshot driver [\#190](https://github.com/solidusio/solidus_dev_support/pull/190) ([tvdeyen](https://github.com/tvdeyen))
10
- - Misc: auth-devise, extracted frontend gem, sqlite [\#188](https://github.com/solidusio/solidus_dev_support/pull/188) ([elia](https://github.com/elia))
11
-
12
- **Fixed bugs:**
13
-
14
- - Revert temporary fix for Octokit [\#186](https://github.com/solidusio/solidus_dev_support/pull/186) ([waiting-for-dev](https://github.com/waiting-for-dev))
15
-
16
- ## [v2.5.4](https://github.com/solidusio/solidus_dev_support/tree/v2.5.4) (2022-05-31)
17
-
18
- [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.5.2...v2.5.4)
19
-
20
- **Fixed bugs:**
21
-
22
- - Add a missing require for octokit/repository [\#185](https://github.com/solidusio/solidus_dev_support/pull/185) ([elia](https://github.com/elia))
23
- - Fix window resizing of `solidus_chrome_headless` driver [\#184](https://github.com/solidusio/solidus_dev_support/pull/184) ([gsmendoza](https://github.com/gsmendoza))
24
-
25
- ## [v2.5.2](https://github.com/solidusio/solidus_dev_support/tree/v2.5.2) (2021-11-23)
26
-
27
- [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.5.1...v2.5.2)
28
-
29
- **Merged pull requests:**
30
-
31
- - Loosen webdrivers constraint in solidus\_dev\_support [\#180](https://github.com/solidusio/solidus_dev_support/pull/180) ([gsmendoza](https://github.com/gsmendoza))
32
-
33
- ## [v2.5.1](https://github.com/solidusio/solidus_dev_support/tree/v2.5.1) (2021-08-31)
34
-
35
- [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.5.0...v2.5.1)
36
-
37
- ## [v2.5.0](https://github.com/solidusio/solidus_dev_support/tree/v2.5.0) (2021-04-20)
38
-
39
- [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.4.3...v2.5.0)
40
-
41
- **Implemented enhancements:**
42
-
43
- - Allow Solidus 3 [\#176](https://github.com/solidusio/solidus_dev_support/pull/176) ([kennyadsl](https://github.com/kennyadsl))
44
- - Relax Ruby version requirement [\#174](https://github.com/solidusio/solidus_dev_support/pull/174) ([gauravtiwari](https://github.com/gauravtiwari))
45
-
46
- ## [v2.4.3](https://github.com/solidusio/solidus_dev_support/tree/v2.4.3) (2021-02-23)
47
-
48
- [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.4.2...v2.4.3)
49
-
50
- **Implemented enhancements:**
51
-
52
- - 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))
53
-
54
- **Fixed bugs:**
55
-
56
- - Explode directories into individual files [\#171](https://github.com/solidusio/solidus_dev_support/pull/171) ([kennyadsl](https://github.com/kennyadsl))
57
- - Fix factories loading, part 2 [\#170](https://github.com/solidusio/solidus_dev_support/pull/170) ([kennyadsl](https://github.com/kennyadsl))
58
-
59
- ## [v2.4.2](https://github.com/solidusio/solidus_dev_support/tree/v2.4.2) (2021-02-19)
60
-
61
- [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.4.1...v2.4.2)
62
-
63
- ## [v2.4.1](https://github.com/solidusio/solidus_dev_support/tree/v2.4.1) (2021-02-19)
64
-
65
- [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.4.0...v2.4.1)
66
-
67
- **Fixed bugs:**
68
-
69
- - 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))
70
-
71
- ## [v2.4.0](https://github.com/solidusio/solidus_dev_support/tree/v2.4.0) (2021-02-05)
72
-
73
- [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.3.0...v2.4.0)
74
-
75
- **Implemented enhancements:**
76
-
77
- - Improve engine's requires to remove double inclusions [\#165](https://github.com/solidusio/solidus_dev_support/pull/165) ([kennyadsl](https://github.com/kennyadsl))
78
- - Remove double require of core factories from rails\_helper [\#164](https://github.com/solidusio/solidus_dev_support/pull/164) ([kennyadsl](https://github.com/kennyadsl))
79
-
80
- **Fixed bugs:**
81
-
82
- - Fix typo in configuration.rb.tt [\#166](https://github.com/solidusio/solidus_dev_support/pull/166) ([brchristian](https://github.com/brchristian))
83
-
84
- **Merged pull requests:**
85
-
86
- - 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))
87
-
88
- ## [v2.3.0](https://github.com/solidusio/solidus_dev_support/tree/v2.3.0) (2021-01-14)
89
-
90
- [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.2.0...v2.3.0)
91
-
92
- **Implemented enhancements:**
93
-
94
- - 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))
95
- - Factory bot fixes for latest Solidus 2.11 release [\#162](https://github.com/solidusio/solidus_dev_support/pull/162) ([elia](https://github.com/elia))
96
-
97
- **Fixed bugs:**
98
-
99
- - use rubocop-rspec 2.x [\#161](https://github.com/solidusio/solidus_dev_support/pull/161) ([ccarruitero](https://github.com/ccarruitero))
100
-
101
- ## [v2.2.0](https://github.com/solidusio/solidus_dev_support/tree/v2.2.0) (2020-11-27)
102
-
103
- [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.1.0...v2.2.0)
104
-
105
- **Implemented enhancements:**
106
-
107
- - 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))
108
- - Configuration Cleanup [\#158](https://github.com/solidusio/solidus_dev_support/pull/158) ([elia](https://github.com/elia))
109
- - Refer to Solidus wiki page for gem release info [\#157](https://github.com/solidusio/solidus_dev_support/pull/157) ([spaghetticode](https://github.com/spaghetticode))
110
- - Upgrade to RuboCop 1.0 [\#156](https://github.com/solidusio/solidus_dev_support/pull/156) ([aldesantis](https://github.com/aldesantis))
111
- - Add a command to display gem's version [\#154](https://github.com/solidusio/solidus_dev_support/pull/154) ([igorbp](https://github.com/igorbp))
112
-
113
- **Fixed bugs:**
114
-
115
- - 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))
116
-
117
- **Merged pull requests:**
118
-
119
- - 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))
120
-
121
- ## [v2.1.0](https://github.com/solidusio/solidus_dev_support/tree/v2.1.0) (2020-10-02)
122
-
123
- [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.0.1...v2.1.0)
124
-
125
- **Implemented enhancements:**
126
-
127
- - Add standard github\_changelog\_generator configuration [\#151](https://github.com/solidusio/solidus_dev_support/pull/151) ([aldesantis](https://github.com/aldesantis))
128
- - Move generated factories to `testing_support/` [\#150](https://github.com/solidusio/solidus_dev_support/pull/150) ([aldesantis](https://github.com/aldesantis))
129
- - Add extension configuration boilerplate [\#149](https://github.com/solidusio/solidus_dev_support/pull/149) ([aldesantis](https://github.com/aldesantis))
130
-
131
- **Fixed bugs:**
132
-
133
- - Fix `NewCops: Enable` option for RuboCop [\#148](https://github.com/solidusio/solidus_dev_support/pull/148) ([aldesantis](https://github.com/aldesantis))
134
-
135
- ## [v2.0.1](https://github.com/solidusio/solidus_dev_support/tree/v2.0.1) (2020-09-22)
136
-
137
- [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.0.0...v2.0.1)
138
-
139
- **Fixed bugs:**
140
-
141
- - Fix gem\_version not being found during extension generation [\#144](https://github.com/solidusio/solidus_dev_support/pull/144) ([aldesantis](https://github.com/aldesantis))
142
-
143
- ## [v2.0.0](https://github.com/solidusio/solidus_dev_support/tree/v2.0.0) (2020-09-22)
144
-
145
- [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v1.6.0...v2.0.0)
146
-
147
- **Breaking changes:**
148
-
149
- - Switch the JS driver to WebDriver/Selenium [\#136](https://github.com/solidusio/solidus_dev_support/pull/136) ([elia](https://github.com/elia))
150
-
151
- **Implemented enhancements:**
152
-
153
- - Enable new RuboCop cops automatically [\#143](https://github.com/solidusio/solidus_dev_support/pull/143) ([aldesantis](https://github.com/aldesantis))
154
- - Don't forcefully close issues via stale-bot [\#139](https://github.com/solidusio/solidus_dev_support/pull/139) ([elia](https://github.com/elia))
155
- - 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))
156
-
157
- **Fixed bugs:**
158
-
159
- - fix capybara driver declaration [\#141](https://github.com/solidusio/solidus_dev_support/pull/141) ([ccarruitero](https://github.com/ccarruitero))
160
- - Bump RuboCop to latest 0.90.0 version [\#138](https://github.com/solidusio/solidus_dev_support/pull/138) ([peterberkenbosch](https://github.com/peterberkenbosch))
161
- - Fix missing backslash in solidus install command [\#135](https://github.com/solidusio/solidus_dev_support/pull/135) ([nirebu](https://github.com/nirebu))
162
-
163
- ## [v1.6.0](https://github.com/solidusio/solidus_dev_support/tree/v1.6.0) (2020-08-26)
164
-
165
- [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v1.5.0...v1.6.0)
166
-
167
- **Implemented enhancements:**
168
-
169
- - Let the extension name include spaces [\#133](https://github.com/solidusio/solidus_dev_support/pull/133) ([elia](https://github.com/elia))
170
- - Add precompiled badges fro CI and coverage [\#132](https://github.com/solidusio/solidus_dev_support/pull/132) ([elia](https://github.com/elia))
171
- - Add Changelog Rake task [\#128](https://github.com/solidusio/solidus_dev_support/pull/128) ([tvdeyen](https://github.com/tvdeyen))
172
- - Readme fixes [\#122](https://github.com/solidusio/solidus_dev_support/pull/122) ([elia](https://github.com/elia))
173
-
174
- **Fixed bugs:**
175
-
176
- - Don't install a payment-method in the sandbox [\#131](https://github.com/solidusio/solidus_dev_support/pull/131) ([elia](https://github.com/elia))
177
- - Run extension generator in sandbox [\#127](https://github.com/solidusio/solidus_dev_support/pull/127) ([elia](https://github.com/elia))
178
-
179
- ## [v1.5.0](https://github.com/solidusio/solidus_dev_support/tree/v1.5.0) (2020-06-13)
180
-
181
- [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v1.4.0...v1.5.0)
182
-
183
- **Fixed bugs:**
184
-
185
- - Fix formatting typo in readme [\#117](https://github.com/solidusio/solidus_dev_support/pull/117) ([aldesantis](https://github.com/aldesantis))
186
-
187
- **Removed:**
188
-
189
- - Remove deprecated bin/r and bin/sandbox\_rails binaries [\#118](https://github.com/solidusio/solidus_dev_support/pull/118) ([aldesantis](https://github.com/aldesantis))
190
-
191
- ## [1.4.0] - 2020-06-05
192
-
193
- ### Added
194
-
195
- - Added a "Usage" section to the default readme
196
-
197
- ### Changed
198
-
199
- - Restored `bin/rails` and renamed the context specific bins to `bin/rails-engine` and `bin/rails-sandbox`
200
- - Adjusted the readme structure with better formatting and grammar
201
- - Moved the RuboCop `AllCops/Exclude` statement back to the internal configuration
202
-
203
- ### Deprecated
204
-
205
- - Deprecated `bin/r` in favor of `bin/rails-engine` and `bin/sandbox_rails` in favor of `bin/rails-sandbox`
206
-
207
- ## [1.3.0] - 2020-05-22
208
-
209
- ### Added
210
-
211
- - Ignored `.rvmrc`, `.ruby-version` and `.ruby-gemset` by default in extensions
212
- - Added deprecation warning when extensions don't support Zeitwerk
213
-
214
- ### Changed
215
-
216
- - Updated the extension template to use latest (0.5.X) solidus_support
217
- - Set Ruby 2.5+ as the minimum Ruby version in generated extensions
218
-
219
- ### Removed
220
-
221
- - Removed Stale from the default extension configuration
222
-
223
- ## [1.2.0] - 2020-04-24
224
-
225
- ### Changed
226
-
227
- - Updated the extension template with the latest modifications
228
-
229
- ## [1.1.0] - 2020-03-06
230
-
231
- ### Added
232
-
233
- - Made Git ignore `sandbox` in generated extensions
234
- - Added support for specifying `SOLIDUS_BRANCH` in the sandbox
235
-
236
- ### Changed
237
-
238
- - Split `bin/rails` into `bin/r` and `bin/sandbox_rails`
239
-
240
-
241
- ### Fixed
242
-
243
- - Fixed the sandbox Gemfile not including Solidus
244
-
245
- ## [1.0.1] - 2020-02-17
246
-
247
- ### Fixed
248
-
249
- - Fixed missing factory definitions when using `modify` on Solidus factories
250
-
251
- ## [1.0.0] - 2020-02-07
252
-
253
- ### Added
254
-
255
- - Added a binstub for `rake` to the extension generator
256
- - Added the ability for the generator to reuse existing data for the gemspec
257
-
258
- ### Fixed
259
-
260
- - Fixed Dependabot throwing an error because of `eval_gemfile` in the Gemfile
261
-
262
- ## [0.6.0] - 2020-01-20
263
-
264
- ### Added
265
-
266
- - Added support for a local Gemfile for local development dependencies (e.g. 'pry-debug')
267
- - Added a `bin/sandbox` script to all extension for local development with `bin/rails` support.
268
-
269
- ### Changed
270
-
271
- - The default rake task no longer re-generates the `test_app` each time it runs.
272
- In order to get that behavior back simply call clobber before launching it:
273
- `bin/rake clobber default`
274
-
275
- ### Fixed
276
-
277
- - Fixed generated extensions isolating the wrong namespace
278
-
279
- ## [0.5.0] - 2020-01-16
280
-
281
- ### Added
282
-
283
- - Added `--require spec_helper` to the generated `.rspec`
284
-
285
- ### Fixed
286
-
287
- - Replaced "Spree" with "Solidus" in the license of generated extensions
288
-
289
- ### Changed
290
-
291
- - Updated gem-release to use tags instead of branches for new releases
292
-
293
- ## [0.4.1] - 2020-01-15
294
-
295
- ### Fixed
296
-
297
- - Fixed the generated RuboCop config inheriting from this gem's dev-only config
298
- - Fixed the generated extension not requiring the `version` file
299
- - Fixed the generator not properly marking `bin/` files as executable
300
-
301
- ## [0.4.0] - 2020-01-10
302
-
303
- ### Added
304
-
305
- - Enforced Rails version depending on the Solidus version in generated Gemfile
306
- - Made Git ignore `spec/examples.txt` in generated extensions
307
- - Added the ability to run `solidus extension .` to update an extension
308
-
309
- ### Changed
310
-
311
- - The `solidus` executable is now solely managed by Thor and is open to extension by other gems
312
-
313
- ### Fixed
314
-
315
- - Fixed generated extensions using an old Rakefile
316
- - Fixed some RuboCop offenses in the generated files
317
- - Fixed the `bin/setup` script calling a non-existing Rake binary
318
-
319
- ### Removed
320
-
321
- - Removed RuboCop from the default Rake task
322
- - Removed the `-v` option from the `solidus` executable
323
- - Removed the factory_bot gem from the Gemfile
324
-
325
- ## [0.3.0] - 2020-01-10
326
-
327
- ### Added
328
-
329
- - Adopted Ruby 2.4+ as the minimum Ruby version in generated extensions
330
- - Added `bin/console`, `bin/rails` and `bin/setup` to generated extensions
331
- - Added some Bundler gemspec defaults to generated extensions
332
- - Configured the default Rake task to run generate the test app before running RSpec
333
-
334
- ### Changed
335
-
336
- - Updated solidus_support to 0.4.0 for Zeitwerk and Rails 6 compatibility
337
- - Updated the `solidus` executable to only rely on Thor and be open to extension by other gems
338
-
339
- ### Removed
340
-
341
- - Removed solidus_support as a dependency
342
-
343
- ### Fixed
344
-
345
- - Fixed `extension:test_app` not going back to the root after execution
346
-
347
- ## [0.2.0] - 2019-12-16
348
-
349
- ### Added
350
-
351
- - Adopted [Apparition](https://github.com/twalpole/apparition) as the deafult JS driver for Capybara
352
- - Fixed window size to 1920x1080px in feature specs
353
- - Added [Stale](https://github.com/apps/stale) to automatically mark GitHub issues as stale
354
-
355
- ### Changed
356
-
357
- - Disabled all `Metrics` cops except for `LineLength`
358
- - Set `Layout/AlignArguments` cop to `with_fixed_indentation`
359
- - Disabled `Layout/MultilineOperationIndentation` cop
360
- - Renamed the project to SolidusDevSupport (was SolidusExtensionDevTools)
361
-
362
- ### Fixed
363
-
364
- - Fixed Chrome not starting in headless mode
365
-
366
- ## [0.1.1] - 2019-11-11
367
-
368
- ### Fixed
369
-
370
- - Fixed `rails_helper` not working due to `SolidusDevSupport` not being available
371
-
372
- ## [0.1.0] - 2019-11-11
373
-
374
- Initial release.
375
-
376
- [Unreleased]: https://github.com/solidusio/solidus_dev_support/compare/v1.4.0...HEAD
377
- [1.4.0]: https://github.com/solidusio/solidus_dev_support/compare/v1.3.0...v1.4.0
378
- [1.3.0]: https://github.com/solidusio/solidus_dev_support/compare/v1.2.0...v1.3.0
379
- [1.2.0]: https://github.com/solidusio/solidus_dev_support/compare/v1.1.0...v1.2.0
380
- [1.1.0]: https://github.com/solidusio/solidus_dev_support/compare/v1.0.1...v1.1.0
381
- [1.0.1]: https://github.com/solidusio/solidus_dev_support/compare/v1.0.0...v1.0.1
382
- [1.0.0]: https://github.com/solidusio/solidus_dev_support/compare/v0.6.0...v1.0.0
383
- [0.6.0]: https://github.com/solidusio/solidus_dev_support/compare/v0.5.0...v0.6.0
384
- [0.5.0]: https://github.com/solidusio/solidus_dev_support/compare/v0.4.1...v0.5.0
385
- [0.4.1]: https://github.com/solidusio/solidus_dev_support/compare/v0.4.0...v0.4.1
386
- [0.4.0]: https://github.com/solidusio/solidus_dev_support/compare/v0.3.0...v0.4.0
387
- [0.3.0]: https://github.com/solidusio/solidus_dev_support/compare/v0.2.0...v0.3.0
388
- [0.2.0]: https://github.com/solidusio/solidus_dev_support/compare/v0.1.1...v0.2.0
389
- [0.1.1]: https://github.com/solidusio/solidus_dev_support/compare/v0.1.0...v0.1.1
390
- [0.1.0]: https://github.com/solidusio/solidus_dev_support/releases/tag/v0.1.0
391
-
392
-
393
- \* *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
@@ -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/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
@@ -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 the latest standards from this gem,
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 `Bump SolidusDevSupport to 1.2.3` as the message
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
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)
@@ -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-browser-tools
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-browser-tools
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
- # 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: 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'
@@ -1,4 +1,4 @@
1
- Copyright (c) <%= Time.now.year %> [name of plugin creator]
1
+ Copyright (c) <%= Time.now.year %> <%= gemspec.authors.join ', ' %>
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without modification,
@@ -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)
@@ -71,21 +64,10 @@ $ bin/rails server
71
64
  Use Ctrl-C to stop
72
65
  ```
73
66
 
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
67
  ### Releasing new versions
86
68
 
87
- Please refer to the dedicated [page](https://github.com/solidusio/solidus/wiki/How-to-release-extensions) on Solidus wiki.
69
+ Please refer to the [dedicated page](https://github.com/solidusio/solidus/wiki/How-to-release-extensions) in the Solidus wiki.
88
70
 
89
71
  ## License
90
72
 
91
- Copyright (c) <%= Time.now.year %> [name of extension author], released under the New BSD License.
73
+ 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
- if [ ! -z $DEBUG ]
5
- then
6
- set -x
7
- fi
4
+ test -z "${DEBUG+empty_string}" || set -x
8
5
 
9
- case "$DB" in
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 [ -n $SOLIDUS_BRANCH ]
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
- BRANCH="master"
11
+ SOLIDUS_BRANCH="master"
37
12
  fi
38
- echo "~~> Using branch $BRANCH of solidus"
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 --database="$RAILSDB" \
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: '$BRANCH'
47
+ gem 'solidus', github: 'solidusio/solidus', branch: '$SOLIDUS_BRANCH'
72
48
  gem 'rails-i18n'
73
49
  gem 'solidus_i18n'
74
50
 
@@ -8,6 +8,7 @@
8
8
  .sass-cache
9
9
  coverage
10
10
  Gemfile.lock
11
+ Gemfile-local
11
12
  tmp
12
13
  nbproject
13
14
  pkg
@@ -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
@@ -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.5"
4
+ VERSION = "2.6.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'
@@ -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', '< 4']
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
@@ -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.5
4
+ version: 2.6.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: 2022-09-09 00:00:00.000000000 Z
11
+ date: 2023-05-03 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: '4'
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: '4'
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/PULL_REQUEST_TEMPLATE.md"
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
@@ -395,7 +367,7 @@ licenses:
395
367
  metadata:
396
368
  homepage_uri: https://github.com/solidusio/solidus_dev_support
397
369
  source_code_uri: https://github.com/solidusio/solidus_dev_support
398
- changelog_uri: https://github.com/solidusio/solidus_dev_support/blob/master/CHANGELOG.md
370
+ changelog_uri: https://github.com/solidusio/solidus_dev_support/releases
399
371
  rubygems_mfa_required: 'true'
400
372
  post_install_message:
401
373
  rdoc_options: []
@@ -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.3.21
387
+ rubygems_version: 3.3.7
416
388
  signing_key:
417
389
  specification_version: 4
418
390
  summary: Development tools for Solidus extensions.
@@ -1,10 +0,0 @@
1
- Fixes #XXX.
2
-
3
- ## Summary
4
-
5
- <!-- Describe what you have changed in this PR. -->
6
-
7
- ## Checklist
8
-
9
- - [ ] I have structured the commits for clarity and conciseness.
10
- - [ ] I have added relevant automated tests for this change.