spree_dev_tools 0.1.0 → 0.1.5

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: d3074a38841f5a46ca6c356b549f2216479bdf983177ff9b397f5bb92ae673c5
4
- data.tar.gz: de3faf32c73be89fea44171b969adbb4c5b2af3bf514a1a7e4f74e9ff34533cc
3
+ metadata.gz: 5b0d5d5438376e2c068bb73c92cf36e90c622bc1883c1c8cdcae4c49fb130ee5
4
+ data.tar.gz: a687e7ab14abf43fc0b9e144e634df3a4609b4e6707a81816b0b75a04a3924f5
5
5
  SHA512:
6
- metadata.gz: 12b9d954fd3f01b22caab32a68a218f2a971acabd9168258df924b981014776f60623b64a545b73c4a724f44802432af1c910f76f72a6fae12cbba16471a1374
7
- data.tar.gz: eb2817d7906929f9edcb419b443ca9672379df44737269403e35c1b77b9679ddc02781344717022be6550ff6952ca208ad5879d222709db6ecd47d90d7cd18f6
6
+ metadata.gz: a6bdd501b94258ab417e3e03a6626d72b3aec6c2be229a2c52cfe2d1fba39a93706d8b0d24b50405d3c078d8516e27de2fc9454786016d029249700043c76d0a
7
+ data.tar.gz: ec85cbdc158d65d3ff94a4aaec78d6c0ab175a3dc5ff747b05e5ae7ae4a0ed6b516481af2418905746e3a518600f5417697c6c2a11ebc60841f5a32cc2c882b9
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,
@@ -5,7 +5,7 @@ require 'capybara/rails'
5
5
  require 'selenium-webdriver'
6
6
  require 'capybara-select-2'
7
7
 
8
- RSpec.configure do
8
+ RSpec.configure do |config|
9
9
  Capybara.register_driver :chrome do |app|
10
10
  Selenium::WebDriver.logger.level = :error
11
11
 
@@ -23,4 +23,5 @@ RSpec.configure do
23
23
  end
24
24
 
25
25
  config.include CapybaraSelect2
26
+ config.include CapybaraSelect2::Helpers
26
27
  end
@@ -11,7 +11,11 @@ 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
+ require 'spree/api/testing_support/helpers'
16
+
14
17
  # API v2 helpers
18
+ require 'jsonapi/rspec'
15
19
  require 'spree/api/testing_support/v2/base'
16
20
  require 'spree/api/testing_support/v2/current_order'
17
21
 
@@ -39,6 +43,9 @@ RSpec.configure do |config|
39
43
  config.include Spree::TestingSupport::AuthHelpers, type: :feature
40
44
  config.include Spree::TestingSupport::CheckoutHelpers, type: :feature
41
45
 
46
+ config.include Spree::Api::TestingSupport::Helpers # needed for API v1
47
+ config.include JSONAPI::RSpec, type: :request # required for API v2 request specs
48
+
42
49
  config.before :each do
43
50
  Rails.cache.clear
44
51
  reset_spree_preferences do |config|
@@ -1,17 +1,9 @@
1
1
  module SpreeDevTools
2
- module_function
2
+ VERSION = '0.1.5'
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 = 0
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,6 +30,9 @@ 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'
@@ -41,5 +44,6 @@ Gem::Specification.new do |s|
41
44
  s.add_dependency 'selenium-webdriver'
42
45
  s.add_dependency 'simplecov'
43
46
  s.add_dependency 'sqlite3'
47
+ s.add_dependency 'timecop'
44
48
  s.add_dependency 'webdrivers', '~> 4.3.0'
45
49
  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.0
4
+ version: 0.1.5
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
@@ -290,6 +332,20 @@ dependencies:
290
332
  - - ">="
291
333
  - !ruby/object:Gem::Version
292
334
  version: '0'
335
+ - !ruby/object:Gem::Dependency
336
+ name: timecop
337
+ requirement: !ruby/object:Gem::Requirement
338
+ requirements:
339
+ - - ">="
340
+ - !ruby/object:Gem::Version
341
+ version: '0'
342
+ type: :runtime
343
+ prerelease: false
344
+ version_requirements: !ruby/object:Gem::Requirement
345
+ requirements:
346
+ - - ">="
347
+ - !ruby/object:Gem::Version
348
+ version: '0'
293
349
  - !ruby/object:Gem::Dependency
294
350
  name: webdrivers
295
351
  requirement: !ruby/object:Gem::Requirement
@@ -333,7 +389,7 @@ homepage: https://github.com/spree/spree_dev_tools
333
389
  licenses:
334
390
  - BSD-3-Clause
335
391
  metadata: {}
336
- post_install_message:
392
+ post_install_message:
337
393
  rdoc_options: []
338
394
  require_paths:
339
395
  - lib
@@ -349,8 +405,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
349
405
  version: '0'
350
406
  requirements:
351
407
  - none
352
- rubygems_version: 3.1.2
353
- signing_key:
408
+ rubygems_version: 3.2.3
409
+ signing_key:
354
410
  specification_version: 4
355
411
  summary: Spree Dev Tools
356
412
  test_files: []