spree_dev_tools 0.1.4 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.bundle/config +1 -1
- data/LICENSE +1 -1
- data/lib/spree_dev_tools/rspec/spec_helper.rb +1 -0
- data/lib/spree_dev_tools/rspec/support/spree.rb +19 -2
- data/lib/spree_dev_tools/version.rb +1 -1
- data/spree_dev_tools.gemspec +8 -2
- metadata +91 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6c7554334f07c6ba8b5fa037edd0fcbcc517eed00f5d0f0e53ce1f7b3b20cdd
|
4
|
+
data.tar.gz: dd003bbbcd1c4fc1b9eecacd6d9b92f7ba93c3fcdcf8872a474a8e3d4b1486db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 962a0a90f6443583f236d120ea304139ec33207bb21e7f694be189860bb1efc7779d6bd77fe758cf425f4ed161a4d8e663aef1f21837bac26cea811da93f780c
|
7
|
+
data.tar.gz: 50f17ffaa21474ac05cfcc1e7277e0eccc56da1f555cbf826b85fee1d8af5cf6a6ce7fe1be75234d44d400bf7e7b3d9b47866b1e1774f836169310089a5efbd0
|
data/.bundle/config
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
---
|
2
|
-
BUNDLE_JOBS: "
|
2
|
+
BUNDLE_JOBS: "12"
|
data/LICENSE
CHANGED
@@ -11,9 +11,18 @@ require 'spree/testing_support/auth_helpers'
|
|
11
11
|
require 'spree/testing_support/checkout_helpers'
|
12
12
|
require 'spree/testing_support/caching'
|
13
13
|
|
14
|
+
# API helpers
|
15
|
+
if defined?(Spree::Api)
|
16
|
+
require 'spree/api/testing_support/helpers'
|
17
|
+
require 'spree/api/testing_support/setup'
|
18
|
+
end
|
19
|
+
|
14
20
|
# API v2 helpers
|
15
|
-
|
16
|
-
require '
|
21
|
+
if defined?(Spree::Api) && Spree.version.to_f >= 3.7
|
22
|
+
require 'jsonapi/rspec'
|
23
|
+
require 'spree/api/testing_support/v2/base'
|
24
|
+
require 'spree/api/testing_support/v2/current_order'
|
25
|
+
end
|
17
26
|
|
18
27
|
RSpec.configure do |config|
|
19
28
|
# Infer an example group's spec type from the file location.
|
@@ -39,6 +48,14 @@ RSpec.configure do |config|
|
|
39
48
|
config.include Spree::TestingSupport::AuthHelpers, type: :feature
|
40
49
|
config.include Spree::TestingSupport::CheckoutHelpers, type: :feature
|
41
50
|
|
51
|
+
if defined?(Spree::Api)
|
52
|
+
config.include Spree::Api::TestingSupport::Helpers # needed for API v1
|
53
|
+
config.extend Spree::Api::TestingSupport::Setup, type: :request
|
54
|
+
end
|
55
|
+
if Spree.version.to_f >= 3.7
|
56
|
+
config.include JSONAPI::RSpec, type: :request # required for API v2 request specs
|
57
|
+
end
|
58
|
+
|
42
59
|
config.before :each do
|
43
60
|
Rails.cache.clear
|
44
61
|
reset_spree_preferences do |config|
|
data/spree_dev_tools.gemspec
CHANGED
@@ -32,17 +32,23 @@ Gem::Specification.new do |s|
|
|
32
32
|
s.add_dependency 'ffaker'
|
33
33
|
s.add_dependency 'gem-release'
|
34
34
|
s.add_dependency 'github_changelog_generator'
|
35
|
+
s.add_dependency 'jsonapi-rspec'
|
35
36
|
s.add_dependency 'mysql2'
|
36
37
|
s.add_dependency 'pg'
|
37
38
|
s.add_dependency 'pry'
|
38
39
|
s.add_dependency 'puma'
|
39
40
|
s.add_dependency 'rails-controller-testing'
|
40
|
-
s.add_dependency '
|
41
|
+
s.add_dependency 'redis'
|
42
|
+
s.add_dependency 'rspec-activemodel-mocks'
|
43
|
+
s.add_dependency 'rspec-rails', '~> 4.0'
|
41
44
|
s.add_dependency 'rspec-retry'
|
45
|
+
s.add_dependency 'rubocop'
|
46
|
+
s.add_dependency 'rubocop-rails'
|
42
47
|
s.add_dependency 'sass-rails'
|
43
48
|
s.add_dependency 'selenium-webdriver'
|
44
49
|
s.add_dependency 'simplecov'
|
50
|
+
s.add_dependency 'spree_core'
|
45
51
|
s.add_dependency 'sqlite3'
|
46
52
|
s.add_dependency 'timecop'
|
47
|
-
s.add_dependency 'webdrivers', '~> 4.3
|
53
|
+
s.add_dependency 'webdrivers', '~> 4.3'
|
48
54
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_dev_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Spark Solutions
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: appraisal
|
@@ -164,6 +164,20 @@ dependencies:
|
|
164
164
|
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: jsonapi-rspec
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :runtime
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
167
181
|
- !ruby/object:Gem::Dependency
|
168
182
|
name: mysql2
|
169
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -234,20 +248,48 @@ dependencies:
|
|
234
248
|
- - ">="
|
235
249
|
- !ruby/object:Gem::Version
|
236
250
|
version: '0'
|
251
|
+
- !ruby/object:Gem::Dependency
|
252
|
+
name: redis
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - ">="
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: '0'
|
258
|
+
type: :runtime
|
259
|
+
prerelease: false
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - ">="
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: '0'
|
265
|
+
- !ruby/object:Gem::Dependency
|
266
|
+
name: rspec-activemodel-mocks
|
267
|
+
requirement: !ruby/object:Gem::Requirement
|
268
|
+
requirements:
|
269
|
+
- - ">="
|
270
|
+
- !ruby/object:Gem::Version
|
271
|
+
version: '0'
|
272
|
+
type: :runtime
|
273
|
+
prerelease: false
|
274
|
+
version_requirements: !ruby/object:Gem::Requirement
|
275
|
+
requirements:
|
276
|
+
- - ">="
|
277
|
+
- !ruby/object:Gem::Version
|
278
|
+
version: '0'
|
237
279
|
- !ruby/object:Gem::Dependency
|
238
280
|
name: rspec-rails
|
239
281
|
requirement: !ruby/object:Gem::Requirement
|
240
282
|
requirements:
|
241
283
|
- - "~>"
|
242
284
|
- !ruby/object:Gem::Version
|
243
|
-
version: 4.0
|
285
|
+
version: '4.0'
|
244
286
|
type: :runtime
|
245
287
|
prerelease: false
|
246
288
|
version_requirements: !ruby/object:Gem::Requirement
|
247
289
|
requirements:
|
248
290
|
- - "~>"
|
249
291
|
- !ruby/object:Gem::Version
|
250
|
-
version: 4.0
|
292
|
+
version: '4.0'
|
251
293
|
- !ruby/object:Gem::Dependency
|
252
294
|
name: rspec-retry
|
253
295
|
requirement: !ruby/object:Gem::Requirement
|
@@ -262,6 +304,34 @@ dependencies:
|
|
262
304
|
- - ">="
|
263
305
|
- !ruby/object:Gem::Version
|
264
306
|
version: '0'
|
307
|
+
- !ruby/object:Gem::Dependency
|
308
|
+
name: rubocop
|
309
|
+
requirement: !ruby/object:Gem::Requirement
|
310
|
+
requirements:
|
311
|
+
- - ">="
|
312
|
+
- !ruby/object:Gem::Version
|
313
|
+
version: '0'
|
314
|
+
type: :runtime
|
315
|
+
prerelease: false
|
316
|
+
version_requirements: !ruby/object:Gem::Requirement
|
317
|
+
requirements:
|
318
|
+
- - ">="
|
319
|
+
- !ruby/object:Gem::Version
|
320
|
+
version: '0'
|
321
|
+
- !ruby/object:Gem::Dependency
|
322
|
+
name: rubocop-rails
|
323
|
+
requirement: !ruby/object:Gem::Requirement
|
324
|
+
requirements:
|
325
|
+
- - ">="
|
326
|
+
- !ruby/object:Gem::Version
|
327
|
+
version: '0'
|
328
|
+
type: :runtime
|
329
|
+
prerelease: false
|
330
|
+
version_requirements: !ruby/object:Gem::Requirement
|
331
|
+
requirements:
|
332
|
+
- - ">="
|
333
|
+
- !ruby/object:Gem::Version
|
334
|
+
version: '0'
|
265
335
|
- !ruby/object:Gem::Dependency
|
266
336
|
name: sass-rails
|
267
337
|
requirement: !ruby/object:Gem::Requirement
|
@@ -304,6 +374,20 @@ dependencies:
|
|
304
374
|
- - ">="
|
305
375
|
- !ruby/object:Gem::Version
|
306
376
|
version: '0'
|
377
|
+
- !ruby/object:Gem::Dependency
|
378
|
+
name: spree_core
|
379
|
+
requirement: !ruby/object:Gem::Requirement
|
380
|
+
requirements:
|
381
|
+
- - ">="
|
382
|
+
- !ruby/object:Gem::Version
|
383
|
+
version: '0'
|
384
|
+
type: :runtime
|
385
|
+
prerelease: false
|
386
|
+
version_requirements: !ruby/object:Gem::Requirement
|
387
|
+
requirements:
|
388
|
+
- - ">="
|
389
|
+
- !ruby/object:Gem::Version
|
390
|
+
version: '0'
|
307
391
|
- !ruby/object:Gem::Dependency
|
308
392
|
name: sqlite3
|
309
393
|
requirement: !ruby/object:Gem::Requirement
|
@@ -338,14 +422,14 @@ dependencies:
|
|
338
422
|
requirements:
|
339
423
|
- - "~>"
|
340
424
|
- !ruby/object:Gem::Version
|
341
|
-
version: 4.3
|
425
|
+
version: '4.3'
|
342
426
|
type: :runtime
|
343
427
|
prerelease: false
|
344
428
|
version_requirements: !ruby/object:Gem::Requirement
|
345
429
|
requirements:
|
346
430
|
- - "~>"
|
347
431
|
- !ruby/object:Gem::Version
|
348
|
-
version: 4.3
|
432
|
+
version: '4.3'
|
349
433
|
description: Spree Developer Tools
|
350
434
|
email: we@sparksolutions.co
|
351
435
|
executables: []
|
@@ -391,7 +475,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
391
475
|
version: '0'
|
392
476
|
requirements:
|
393
477
|
- none
|
394
|
-
rubygems_version: 3.
|
478
|
+
rubygems_version: 3.2.3
|
395
479
|
signing_key:
|
396
480
|
specification_version: 4
|
397
481
|
summary: Spree Dev Tools
|