spree_dev_tools 0.1.1 → 0.1.7

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: f9e6f169e8f2c14acd0d94318a669c19185844504dc7a45072013b30b0e2b30c
4
- data.tar.gz: cfb98291d348ea3b20e11d6ea9ee001ce239b3f1ecf4e840f557ec2c53e430e6
3
+ metadata.gz: 44157fb3dee5262ed2266fb1d7e6daa34787123fc686260c5c843c8351da9d8d
4
+ data.tar.gz: cf216ea405b82c3964c7a6c7aaf9c0242ce7255ba47d0eca1c1eb0bc6a01eb6e
5
5
  SHA512:
6
- metadata.gz: f95aceed580fb71db3cb24d60452279b3f0bc76345f0d336314f142065f0f27f7ff65d4057579009e7c34b99e7c21e70a229fdeabb4413aea21e8082c21fefe4
7
- data.tar.gz: 8ddb3f5db049f05b1fa38a28113aa9ce6313acc40628d7b919452dd3978f8d9f6c68936eed59fe858a4f9ac8035dd6c6483f9559cd57bf2914d9de31b2dca28c
6
+ metadata.gz: cefd1cf03be24189607f46a5861340df6812ed48af2411b886d9b38c310ba4355cc71dae6aa28464225035b175432ded92c7a9d3dbd27f2b71af68d0143ebbf4
7
+ data.tar.gz: 1fde4734a51198e9f481608140590661b95287cc7dc51e58513572288aacf6b2a246599e2b13c1d8b20db1738a7dc650b418a5ffe5ca0b11257307927fd3928f
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,
@@ -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,17 @@ 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
+ end
18
+
14
19
  # API v2 helpers
15
- require 'spree/api/testing_support/v2/base'
16
- require 'spree/api/testing_support/v2/current_order'
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
17
25
 
18
26
  RSpec.configure do |config|
19
27
  # Infer an example group's spec type from the file location.
@@ -39,6 +47,13 @@ RSpec.configure do |config|
39
47
  config.include Spree::TestingSupport::AuthHelpers, type: :feature
40
48
  config.include Spree::TestingSupport::CheckoutHelpers, type: :feature
41
49
 
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
56
+
42
57
  config.before :each do
43
58
  Rails.cache.clear
44
59
  reset_spree_preferences do |config|
@@ -1,17 +1,9 @@
1
1
  module SpreeDevTools
2
- module_function
2
+ VERSION = '0.1.7'
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 = 1
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,16 +30,23 @@ 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-rails', '~> 4.0'
39
42
  s.add_dependency 'rspec-retry'
43
+ s.add_dependency 'rubocop'
44
+ s.add_dependency 'rubocop-rails'
40
45
  s.add_dependency 'sass-rails'
41
46
  s.add_dependency 'selenium-webdriver'
42
47
  s.add_dependency 'simplecov'
48
+ s.add_dependency 'spree_core'
43
49
  s.add_dependency 'sqlite3'
44
- s.add_dependency 'webdrivers', '~> 4.3.0'
50
+ s.add_dependency 'timecop'
51
+ s.add_dependency 'webdrivers', '~> 4.3'
45
52
  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.1
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Spark Solutions
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-19 00:00:00.000000000 Z
11
+ date: 2021-02-08 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
@@ -212,14 +254,14 @@ dependencies:
212
254
  requirements:
213
255
  - - "~>"
214
256
  - !ruby/object:Gem::Version
215
- version: 4.0.0
257
+ version: '4.0'
216
258
  type: :runtime
217
259
  prerelease: false
218
260
  version_requirements: !ruby/object:Gem::Requirement
219
261
  requirements:
220
262
  - - "~>"
221
263
  - !ruby/object:Gem::Version
222
- version: 4.0.0
264
+ version: '4.0'
223
265
  - !ruby/object:Gem::Dependency
224
266
  name: rspec-retry
225
267
  requirement: !ruby/object:Gem::Requirement
@@ -234,6 +276,34 @@ dependencies:
234
276
  - - ">="
235
277
  - !ruby/object:Gem::Version
236
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'
237
307
  - !ruby/object:Gem::Dependency
238
308
  name: sass-rails
239
309
  requirement: !ruby/object:Gem::Requirement
@@ -276,6 +346,20 @@ dependencies:
276
346
  - - ">="
277
347
  - !ruby/object:Gem::Version
278
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'
279
363
  - !ruby/object:Gem::Dependency
280
364
  name: sqlite3
281
365
  requirement: !ruby/object:Gem::Requirement
@@ -290,20 +374,34 @@ dependencies:
290
374
  - - ">="
291
375
  - !ruby/object:Gem::Version
292
376
  version: '0'
377
+ - !ruby/object:Gem::Dependency
378
+ name: timecop
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'
293
391
  - !ruby/object:Gem::Dependency
294
392
  name: webdrivers
295
393
  requirement: !ruby/object:Gem::Requirement
296
394
  requirements:
297
395
  - - "~>"
298
396
  - !ruby/object:Gem::Version
299
- version: 4.3.0
397
+ version: '4.3'
300
398
  type: :runtime
301
399
  prerelease: false
302
400
  version_requirements: !ruby/object:Gem::Requirement
303
401
  requirements:
304
402
  - - "~>"
305
403
  - !ruby/object:Gem::Version
306
- version: 4.3.0
404
+ version: '4.3'
307
405
  description: Spree Developer Tools
308
406
  email: we@sparksolutions.co
309
407
  executables: []
@@ -333,7 +431,7 @@ homepage: https://github.com/spree/spree_dev_tools
333
431
  licenses:
334
432
  - BSD-3-Clause
335
433
  metadata: {}
336
- post_install_message:
434
+ post_install_message:
337
435
  rdoc_options: []
338
436
  require_paths:
339
437
  - lib
@@ -349,8 +447,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
349
447
  version: '0'
350
448
  requirements:
351
449
  - none
352
- rubygems_version: 3.0.2
353
- signing_key:
450
+ rubygems_version: 3.2.3
451
+ signing_key:
354
452
  specification_version: 4
355
453
  summary: Spree Dev Tools
356
454
  test_files: []