spree_dev_tools 0.1.5 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spree_dev_tools/rspec/support/spree.rb +14 -6
- data/lib/spree_dev_tools/version.rb +1 -1
- data/spree_dev_tools.gemspec +5 -2
- metadata +47 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44157fb3dee5262ed2266fb1d7e6daa34787123fc686260c5c843c8351da9d8d
|
4
|
+
data.tar.gz: cf216ea405b82c3964c7a6c7aaf9c0242ce7255ba47d0eca1c1eb0bc6a01eb6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cefd1cf03be24189607f46a5861340df6812ed48af2411b886d9b38c310ba4355cc71dae6aa28464225035b175432ded92c7a9d3dbd27f2b71af68d0143ebbf4
|
7
|
+
data.tar.gz: 1fde4734a51198e9f481608140590661b95287cc7dc51e58513572288aacf6b2a246599e2b13c1d8b20db1738a7dc650b418a5ffe5ca0b11257307927fd3928f
|
@@ -12,12 +12,16 @@ require 'spree/testing_support/checkout_helpers'
|
|
12
12
|
require 'spree/testing_support/caching'
|
13
13
|
|
14
14
|
# API helpers
|
15
|
-
|
15
|
+
if defined?(Spree::Api)
|
16
|
+
require 'spree/api/testing_support/helpers'
|
17
|
+
end
|
16
18
|
|
17
19
|
# API v2 helpers
|
18
|
-
|
19
|
-
require '
|
20
|
-
require 'spree/api/testing_support/v2/
|
20
|
+
if defined?(Spree::Api) && Spree.version.to_f >= 3.7
|
21
|
+
require 'jsonapi/rspec'
|
22
|
+
require 'spree/api/testing_support/v2/base'
|
23
|
+
require 'spree/api/testing_support/v2/current_order'
|
24
|
+
end
|
21
25
|
|
22
26
|
RSpec.configure do |config|
|
23
27
|
# Infer an example group's spec type from the file location.
|
@@ -43,8 +47,12 @@ RSpec.configure do |config|
|
|
43
47
|
config.include Spree::TestingSupport::AuthHelpers, type: :feature
|
44
48
|
config.include Spree::TestingSupport::CheckoutHelpers, type: :feature
|
45
49
|
|
46
|
-
|
47
|
-
|
50
|
+
if defined?(Spree::Api)
|
51
|
+
config.include Spree::Api::TestingSupport::Helpers # needed for API v1
|
52
|
+
end
|
53
|
+
if Spree.version.to_f >= 3.7
|
54
|
+
config.include JSONAPI::RSpec, type: :request # required for API v2 request specs
|
55
|
+
end
|
48
56
|
|
49
57
|
config.before :each do
|
50
58
|
Rails.cache.clear
|
data/spree_dev_tools.gemspec
CHANGED
@@ -38,12 +38,15 @@ Gem::Specification.new do |s|
|
|
38
38
|
s.add_dependency 'pry'
|
39
39
|
s.add_dependency 'puma'
|
40
40
|
s.add_dependency 'rails-controller-testing'
|
41
|
-
s.add_dependency 'rspec-rails', '~> 4.0
|
41
|
+
s.add_dependency 'rspec-rails', '~> 4.0'
|
42
42
|
s.add_dependency 'rspec-retry'
|
43
|
+
s.add_dependency 'rubocop'
|
44
|
+
s.add_dependency 'rubocop-rails'
|
43
45
|
s.add_dependency 'sass-rails'
|
44
46
|
s.add_dependency 'selenium-webdriver'
|
45
47
|
s.add_dependency 'simplecov'
|
48
|
+
s.add_dependency 'spree_core'
|
46
49
|
s.add_dependency 'sqlite3'
|
47
50
|
s.add_dependency 'timecop'
|
48
|
-
s.add_dependency 'webdrivers', '~> 4.3
|
51
|
+
s.add_dependency 'webdrivers', '~> 4.3'
|
49
52
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Spark Solutions
|
@@ -254,14 +254,14 @@ dependencies:
|
|
254
254
|
requirements:
|
255
255
|
- - "~>"
|
256
256
|
- !ruby/object:Gem::Version
|
257
|
-
version: 4.0
|
257
|
+
version: '4.0'
|
258
258
|
type: :runtime
|
259
259
|
prerelease: false
|
260
260
|
version_requirements: !ruby/object:Gem::Requirement
|
261
261
|
requirements:
|
262
262
|
- - "~>"
|
263
263
|
- !ruby/object:Gem::Version
|
264
|
-
version: 4.0
|
264
|
+
version: '4.0'
|
265
265
|
- !ruby/object:Gem::Dependency
|
266
266
|
name: rspec-retry
|
267
267
|
requirement: !ruby/object:Gem::Requirement
|
@@ -276,6 +276,34 @@ dependencies:
|
|
276
276
|
- - ">="
|
277
277
|
- !ruby/object:Gem::Version
|
278
278
|
version: '0'
|
279
|
+
- !ruby/object:Gem::Dependency
|
280
|
+
name: rubocop
|
281
|
+
requirement: !ruby/object:Gem::Requirement
|
282
|
+
requirements:
|
283
|
+
- - ">="
|
284
|
+
- !ruby/object:Gem::Version
|
285
|
+
version: '0'
|
286
|
+
type: :runtime
|
287
|
+
prerelease: false
|
288
|
+
version_requirements: !ruby/object:Gem::Requirement
|
289
|
+
requirements:
|
290
|
+
- - ">="
|
291
|
+
- !ruby/object:Gem::Version
|
292
|
+
version: '0'
|
293
|
+
- !ruby/object:Gem::Dependency
|
294
|
+
name: rubocop-rails
|
295
|
+
requirement: !ruby/object:Gem::Requirement
|
296
|
+
requirements:
|
297
|
+
- - ">="
|
298
|
+
- !ruby/object:Gem::Version
|
299
|
+
version: '0'
|
300
|
+
type: :runtime
|
301
|
+
prerelease: false
|
302
|
+
version_requirements: !ruby/object:Gem::Requirement
|
303
|
+
requirements:
|
304
|
+
- - ">="
|
305
|
+
- !ruby/object:Gem::Version
|
306
|
+
version: '0'
|
279
307
|
- !ruby/object:Gem::Dependency
|
280
308
|
name: sass-rails
|
281
309
|
requirement: !ruby/object:Gem::Requirement
|
@@ -318,6 +346,20 @@ dependencies:
|
|
318
346
|
- - ">="
|
319
347
|
- !ruby/object:Gem::Version
|
320
348
|
version: '0'
|
349
|
+
- !ruby/object:Gem::Dependency
|
350
|
+
name: spree_core
|
351
|
+
requirement: !ruby/object:Gem::Requirement
|
352
|
+
requirements:
|
353
|
+
- - ">="
|
354
|
+
- !ruby/object:Gem::Version
|
355
|
+
version: '0'
|
356
|
+
type: :runtime
|
357
|
+
prerelease: false
|
358
|
+
version_requirements: !ruby/object:Gem::Requirement
|
359
|
+
requirements:
|
360
|
+
- - ">="
|
361
|
+
- !ruby/object:Gem::Version
|
362
|
+
version: '0'
|
321
363
|
- !ruby/object:Gem::Dependency
|
322
364
|
name: sqlite3
|
323
365
|
requirement: !ruby/object:Gem::Requirement
|
@@ -352,14 +394,14 @@ dependencies:
|
|
352
394
|
requirements:
|
353
395
|
- - "~>"
|
354
396
|
- !ruby/object:Gem::Version
|
355
|
-
version: 4.3
|
397
|
+
version: '4.3'
|
356
398
|
type: :runtime
|
357
399
|
prerelease: false
|
358
400
|
version_requirements: !ruby/object:Gem::Requirement
|
359
401
|
requirements:
|
360
402
|
- - "~>"
|
361
403
|
- !ruby/object:Gem::Version
|
362
|
-
version: 4.3
|
404
|
+
version: '4.3'
|
363
405
|
description: Spree Developer Tools
|
364
406
|
email: we@sparksolutions.co
|
365
407
|
executables: []
|