spree_dev_tools 0.1.5 → 0.1.10

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: 5b0d5d5438376e2c068bb73c92cf36e90c622bc1883c1c8cdcae4c49fb130ee5
4
- data.tar.gz: a687e7ab14abf43fc0b9e144e634df3a4609b4e6707a81816b0b75a04a3924f5
3
+ metadata.gz: bf2e6dd8609fbf03e15ce58a0acb61081486773028657b10269b8c021f82730a
4
+ data.tar.gz: 95acaa105573cc1f0086f7965b3c0d533dc7bbee3fdc8072c83a51e7b2d0493d
5
5
  SHA512:
6
- metadata.gz: a6bdd501b94258ab417e3e03a6626d72b3aec6c2be229a2c52cfe2d1fba39a93706d8b0d24b50405d3c078d8516e27de2fc9454786016d029249700043c76d0a
7
- data.tar.gz: ec85cbdc158d65d3ff94a4aaec78d6c0ab175a3dc5ff747b05e5ae7ae4a0ed6b516481af2418905746e3a518600f5417697c6c2a11ebc60841f5a32cc2c882b9
6
+ metadata.gz: 8bfb35322152cd6e145f2abbac2c2ab872e230d2b6b8133660703698a042a4ac85cd8fab1f831341943b3e5cdea4836d5c468dc2ffe7e6f432ed079b56467ae5
7
+ data.tar.gz: dd1469f24c46415952756514c42ef2cd562760e9df92adce1cad63fe7c55f6fd638568bcd2b3848143d1cd5b0b27ef59e2616cfb159fa8df67256185495e32d6
data/.bundle/config CHANGED
@@ -1,2 +1,2 @@
1
1
  ---
2
- BUNDLE_JOBS: "8"
2
+ BUNDLE_JOBS: "12"
@@ -1,5 +1,6 @@
1
1
  # Run Coverage report
2
2
  require 'rspec/rails'
3
+ require 'rspec/active_model/mocks'
3
4
  require 'rspec/retry'
4
5
  require 'ffaker'
5
6
  require 'pry'
@@ -12,12 +12,17 @@ require 'spree/testing_support/checkout_helpers'
12
12
  require 'spree/testing_support/caching'
13
13
 
14
14
  # API helpers
15
- require 'spree/api/testing_support/helpers'
15
+ if defined?(Spree::Api)
16
+ require 'spree/api/testing_support/helpers'
17
+ require 'spree/api/testing_support/setup'
18
+ end
16
19
 
17
20
  # API v2 helpers
18
- require 'jsonapi/rspec'
19
- require 'spree/api/testing_support/v2/base'
20
- require 'spree/api/testing_support/v2/current_order'
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
21
26
 
22
27
  RSpec.configure do |config|
23
28
  # Infer an example group's spec type from the file location.
@@ -43,14 +48,27 @@ RSpec.configure do |config|
43
48
  config.include Spree::TestingSupport::AuthHelpers, type: :feature
44
49
  config.include Spree::TestingSupport::CheckoutHelpers, type: :feature
45
50
 
46
- config.include Spree::Api::TestingSupport::Helpers # needed for API v1
47
- config.include JSONAPI::RSpec, type: :request # required for API v2 request specs
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
48
58
 
49
59
  config.before :each do
50
60
  Rails.cache.clear
51
- reset_spree_preferences do |config|
52
- # config.my_custom_preference = 10
61
+
62
+ country = create(:country, name: 'United States of America', iso_name: 'UNITED STATES', iso: 'US', states_required: true)
63
+
64
+ reset_spree_preferences do |spree_config|
65
+ spree_config.default_country_id = country.id
66
+ end
67
+
68
+ if Spree.version.to_f >= 4.2
69
+ create(:store, default: true, default_country: country)
70
+ else
71
+ create(:store, default: true)
53
72
  end
54
- create(:store)
55
73
  end
56
74
  end
@@ -1,5 +1,5 @@
1
1
  module SpreeDevTools
2
- VERSION = '0.1.5'
2
+ VERSION = '0.1.10'
3
3
 
4
4
  # Returns the version of the currently loaded SpreeDevTools as a
5
5
  # <tt>Gem::Version</tt>.
@@ -38,12 +38,17 @@ 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.0'
41
+ s.add_dependency 'redis'
42
+ s.add_dependency 'rspec-activemodel-mocks'
43
+ s.add_dependency 'rspec-rails', '~> 4.0'
42
44
  s.add_dependency 'rspec-retry'
45
+ s.add_dependency 'rubocop'
46
+ s.add_dependency 'rubocop-rails'
43
47
  s.add_dependency 'sass-rails'
44
48
  s.add_dependency 'selenium-webdriver'
45
49
  s.add_dependency 'simplecov'
50
+ s.add_dependency 'spree_core'
46
51
  s.add_dependency 'sqlite3'
47
52
  s.add_dependency 'timecop'
48
- s.add_dependency 'webdrivers', '~> 4.3.0'
53
+ s.add_dependency 'webdrivers', '~> 4.3'
49
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.5
4
+ version: 0.1.10
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-02-08 00:00:00.000000000 Z
11
+ date: 2021-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: appraisal
@@ -248,20 +248,48 @@ dependencies:
248
248
  - - ">="
249
249
  - !ruby/object:Gem::Version
250
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'
251
279
  - !ruby/object:Gem::Dependency
252
280
  name: rspec-rails
253
281
  requirement: !ruby/object:Gem::Requirement
254
282
  requirements:
255
283
  - - "~>"
256
284
  - !ruby/object:Gem::Version
257
- version: 4.0.0
285
+ version: '4.0'
258
286
  type: :runtime
259
287
  prerelease: false
260
288
  version_requirements: !ruby/object:Gem::Requirement
261
289
  requirements:
262
290
  - - "~>"
263
291
  - !ruby/object:Gem::Version
264
- version: 4.0.0
292
+ version: '4.0'
265
293
  - !ruby/object:Gem::Dependency
266
294
  name: rspec-retry
267
295
  requirement: !ruby/object:Gem::Requirement
@@ -276,6 +304,34 @@ dependencies:
276
304
  - - ">="
277
305
  - !ruby/object:Gem::Version
278
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'
279
335
  - !ruby/object:Gem::Dependency
280
336
  name: sass-rails
281
337
  requirement: !ruby/object:Gem::Requirement
@@ -318,6 +374,20 @@ dependencies:
318
374
  - - ">="
319
375
  - !ruby/object:Gem::Version
320
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'
321
391
  - !ruby/object:Gem::Dependency
322
392
  name: sqlite3
323
393
  requirement: !ruby/object:Gem::Requirement
@@ -352,14 +422,14 @@ dependencies:
352
422
  requirements:
353
423
  - - "~>"
354
424
  - !ruby/object:Gem::Version
355
- version: 4.3.0
425
+ version: '4.3'
356
426
  type: :runtime
357
427
  prerelease: false
358
428
  version_requirements: !ruby/object:Gem::Requirement
359
429
  requirements:
360
430
  - - "~>"
361
431
  - !ruby/object:Gem::Version
362
- version: 4.3.0
432
+ version: '4.3'
363
433
  description: Spree Developer Tools
364
434
  email: we@sparksolutions.co
365
435
  executables: []