spree_dev_tools 0.1.2 → 0.1.8

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: bdb769ba0828833374145a4251fd06a687d3571a53c0da7c078c9adb1d178b15
4
- data.tar.gz: 010f0a067d70a8c6b0f2aaf7b55b91d096527a158fdaf5c035eee3d35818f29e
3
+ metadata.gz: 61141e4fb1a45a3ef002da9a2b0e8f9ee1c2a774e1b82b66e79000cea91c0127
4
+ data.tar.gz: d826825eb21f8a9ebef4ccca0ec1fe73a43c6bbebc058c405862d2b3318e6031
5
5
  SHA512:
6
- metadata.gz: '03428186d9e9c257c4525767e2c85f105332095d224a4ecf164034e3350cf1445cde7d4040b6902c91b31136813e1e622558677f6d1e1928548d99391fb78257'
7
- data.tar.gz: 80a7b92cea75dccfe4fdec42416bbd70f72bb6e33ce117e982d328af48ecfa343ad9a9652572f059409b834768edc1e903590c87e7397eed883c83886eba5397
6
+ metadata.gz: f533dd629e350b407e242fa446c4809806076d49e7c59f63818475205c8b6ee790a4b6228633a29f3511aaf1e62f33e4552425704397de85856476badc0360d5
7
+ data.tar.gz: c7914cc9042dc1da6d29a168fd14471c8243720e672b81b5f1e34cafed037b3e2197aec2d526372c926fa7278a3fef063b38dbdc0762499fa4dc5a26ef03a015
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2020 Spark Solutions Sp. z o.o.
1
+ Copyright (c) 2021 Spark Solutions Sp. z o.o.
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without modification,
@@ -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'
@@ -23,4 +23,5 @@ RSpec.configure do |config|
23
23
  end
24
24
 
25
25
  config.include CapybaraSelect2
26
+ config.include CapybaraSelect2::Helpers
26
27
  end
@@ -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
- require 'spree/api/testing_support/v2/base'
16
- 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
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|
@@ -1,17 +1,9 @@
1
1
  module SpreeDevTools
2
- module_function
2
+ VERSION = '0.1.8'
3
3
 
4
4
  # Returns the version of the currently loaded SpreeDevTools as a
5
5
  # <tt>Gem::Version</tt>.
6
- def version
7
- Gem::Version.new VERSION::STRING
8
- end
9
-
10
- module VERSION
11
- MAJOR = 0
12
- MINOR = 1
13
- TINY = 2
14
-
15
- STRING = [MAJOR, MINOR, TINY].compact.join('.')
6
+ def gem_version
7
+ Gem::Version.new(VERSION)
16
8
  end
17
9
  end
@@ -7,7 +7,7 @@ require 'spree_dev_tools/version'
7
7
  Gem::Specification.new do |s|
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.name = 'spree_dev_tools'
10
- s.version = SpreeDevTools.version
10
+ s.version = SpreeDevTools::VERSION
11
11
  s.summary = 'Spree Dev Tools'
12
12
  s.description = 'Spree Developer Tools'
13
13
  s.required_ruby_version = '>= 2.3.0'
@@ -30,17 +30,24 @@ Gem::Specification.new do |s|
30
30
  s.add_dependency 'database_cleaner'
31
31
  s.add_dependency 'factory_bot', '~> 4.7'
32
32
  s.add_dependency 'ffaker'
33
+ s.add_dependency 'gem-release'
34
+ s.add_dependency 'github_changelog_generator'
35
+ s.add_dependency 'jsonapi-rspec'
33
36
  s.add_dependency 'mysql2'
34
37
  s.add_dependency 'pg'
35
38
  s.add_dependency 'pry'
36
39
  s.add_dependency 'puma'
37
40
  s.add_dependency 'rails-controller-testing'
38
- s.add_dependency 'rspec-rails', '~> 4.0.0'
41
+ s.add_dependency 'rspec-activemodel-mocks'
42
+ s.add_dependency 'rspec-rails', '~> 4.0'
39
43
  s.add_dependency 'rspec-retry'
44
+ s.add_dependency 'rubocop'
45
+ s.add_dependency 'rubocop-rails'
40
46
  s.add_dependency 'sass-rails'
41
47
  s.add_dependency 'selenium-webdriver'
42
48
  s.add_dependency 'simplecov'
49
+ s.add_dependency 'spree_core'
43
50
  s.add_dependency 'sqlite3'
44
51
  s.add_dependency 'timecop'
45
- s.add_dependency 'webdrivers', '~> 4.3.0'
52
+ s.add_dependency 'webdrivers', '~> 4.3'
46
53
  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.2
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Spark Solutions
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-03 00:00:00.000000000 Z
11
+ date: 2021-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: appraisal
@@ -136,6 +136,48 @@ dependencies:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: gem-release
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: github_changelog_generator
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
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'
139
181
  - !ruby/object:Gem::Dependency
140
182
  name: mysql2
141
183
  requirement: !ruby/object:Gem::Requirement
@@ -206,20 +248,34 @@ dependencies:
206
248
  - - ">="
207
249
  - !ruby/object:Gem::Version
208
250
  version: '0'
251
+ - !ruby/object:Gem::Dependency
252
+ name: rspec-activemodel-mocks
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'
209
265
  - !ruby/object:Gem::Dependency
210
266
  name: rspec-rails
211
267
  requirement: !ruby/object:Gem::Requirement
212
268
  requirements:
213
269
  - - "~>"
214
270
  - !ruby/object:Gem::Version
215
- version: 4.0.0
271
+ version: '4.0'
216
272
  type: :runtime
217
273
  prerelease: false
218
274
  version_requirements: !ruby/object:Gem::Requirement
219
275
  requirements:
220
276
  - - "~>"
221
277
  - !ruby/object:Gem::Version
222
- version: 4.0.0
278
+ version: '4.0'
223
279
  - !ruby/object:Gem::Dependency
224
280
  name: rspec-retry
225
281
  requirement: !ruby/object:Gem::Requirement
@@ -234,6 +290,34 @@ dependencies:
234
290
  - - ">="
235
291
  - !ruby/object:Gem::Version
236
292
  version: '0'
293
+ - !ruby/object:Gem::Dependency
294
+ name: rubocop
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'
307
+ - !ruby/object:Gem::Dependency
308
+ name: rubocop-rails
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'
237
321
  - !ruby/object:Gem::Dependency
238
322
  name: sass-rails
239
323
  requirement: !ruby/object:Gem::Requirement
@@ -276,6 +360,20 @@ dependencies:
276
360
  - - ">="
277
361
  - !ruby/object:Gem::Version
278
362
  version: '0'
363
+ - !ruby/object:Gem::Dependency
364
+ name: spree_core
365
+ requirement: !ruby/object:Gem::Requirement
366
+ requirements:
367
+ - - ">="
368
+ - !ruby/object:Gem::Version
369
+ version: '0'
370
+ type: :runtime
371
+ prerelease: false
372
+ version_requirements: !ruby/object:Gem::Requirement
373
+ requirements:
374
+ - - ">="
375
+ - !ruby/object:Gem::Version
376
+ version: '0'
279
377
  - !ruby/object:Gem::Dependency
280
378
  name: sqlite3
281
379
  requirement: !ruby/object:Gem::Requirement
@@ -310,14 +408,14 @@ dependencies:
310
408
  requirements:
311
409
  - - "~>"
312
410
  - !ruby/object:Gem::Version
313
- version: 4.3.0
411
+ version: '4.3'
314
412
  type: :runtime
315
413
  prerelease: false
316
414
  version_requirements: !ruby/object:Gem::Requirement
317
415
  requirements:
318
416
  - - "~>"
319
417
  - !ruby/object:Gem::Version
320
- version: 4.3.0
418
+ version: '4.3'
321
419
  description: Spree Developer Tools
322
420
  email: we@sparksolutions.co
323
421
  executables: []
@@ -363,7 +461,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
363
461
  version: '0'
364
462
  requirements:
365
463
  - none
366
- rubygems_version: 3.1.2
464
+ rubygems_version: 3.0.3
367
465
  signing_key:
368
466
  specification_version: 4
369
467
  summary: Spree Dev Tools