solidus_dev_support 2.5.1 → 2.5.4

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: de0e1de74a5245a5b53d6b3a472e9c7135277231a68530530309f7ac40799eab
4
- data.tar.gz: 50967859e827b59b3e3bc91036e224d6e85a13ab3fae5cbb1d27021e90b27523
3
+ metadata.gz: 85a6ab192c62cc4e24367a2dc3be90d11779653bf8aa065a5079c390a19e8bc1
4
+ data.tar.gz: 839d23671a6475fbc0a67fdb2647e275debf52bbe04bffa3acffa06ccb75fd16
5
5
  SHA512:
6
- metadata.gz: 3f81406fe09a753bdf323ba7823e72ef581a9cce0ceb67cd884a6703a565c461f604cb92c8449f59d998b9d06e046135a8d5d3d04c44a1a5987b97abee347865
7
- data.tar.gz: 51c1c774c0252bbce8af10aa3b8369b9dc47f8452c87eb0385fe11a6c849295f19ba6b4e051a7c089d3a9e5baf763d6767fb5355cdb74012cb5892c4b9b4327b
6
+ metadata.gz: a872cd08b37f12b1fdad990c97bfa943a12f8ea86948fd5f28aea51e5f6d8f11e399049e26e78138caf2dd0ca218b363020940d7eff3b9e53a6b74230996537c
7
+ data.tar.gz: 03d5230592262f2027272467ff7c5f866ef8943c590710b476fafa45b21c10e1faf0f4b58c209334e06148caf979e2bd50be4aab438e46d67341fa3de0499a56
data/.rubocop.yml CHANGED
@@ -36,6 +36,11 @@ Style/RedundantRegexpEscape:
36
36
  Style/SlicingWithRange:
37
37
  Enabled: true
38
38
 
39
+ # Disable this cop until this isssue gets a clear answer:
40
+ # https://github.com/rubocop/rubocop/issues/10675
41
+ Gemspec/DeprecatedAttributeAssignment:
42
+ Enabled: false
43
+
39
44
  AllCops:
40
45
  TargetRubyVersion: 2.5
41
46
  Exclude:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.5.4](https://github.com/solidusio/solidus_dev_support/tree/2.5.4) (2022-05-31)
4
+
5
+ [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.5.2...2.5.4)
6
+
7
+ **Fixed bugs:**
8
+
9
+ - Add a missing require for octokit/repository [\#185](https://github.com/solidusio/solidus_dev_support/pull/185) ([elia](https://github.com/elia))
10
+ - Fix window resizing of `solidus_chrome_headless` driver [\#184](https://github.com/solidusio/solidus_dev_support/pull/184) ([gsmendoza](https://github.com/gsmendoza))
11
+
12
+ ## [v2.5.2](https://github.com/solidusio/solidus_dev_support/tree/v2.5.2) (2021-11-23)
13
+
14
+ [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.5.1...v2.5.2)
15
+
16
+ **Merged pull requests:**
17
+
18
+ - Loosen webdrivers constraint in solidus\_dev\_support [\#180](https://github.com/solidusio/solidus_dev_support/pull/180) ([gsmendoza](https://github.com/gsmendoza))
19
+
20
+ ## [v2.5.1](https://github.com/solidusio/solidus_dev_support/tree/v2.5.1) (2021-08-31)
21
+
22
+ [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.5.0...v2.5.1)
23
+
3
24
  ## [v2.5.0](https://github.com/solidusio/solidus_dev_support/tree/v2.5.0) (2021-04-20)
4
25
 
5
26
  [Full Changelog](https://github.com/solidusio/solidus_dev_support/compare/v2.4.3...v2.5.0)
@@ -13,7 +13,7 @@ module SolidusDevSupport
13
13
 
14
14
  def initialize(root: Dir.pwd)
15
15
  @root = Pathname(root)
16
- @test_app_path = @root.join(ENV['DUMMY_PATH'] || 'spec/dummy')
16
+ @test_app_path = @root.join(ENV.fetch('DUMMY_PATH', 'spec/dummy'))
17
17
  @gemspec = Bundler.load_gemspec(@root.glob("{,*}.gemspec").first)
18
18
  end
19
19
 
@@ -43,7 +43,7 @@ module SolidusDevSupport
43
43
  cd root
44
44
  end
45
45
 
46
- directory ENV['DUMMY_PATH'] do
46
+ directory ENV.fetch('DUMMY_PATH', nil) do
47
47
  Rake::Task['extension:test_app'].invoke
48
48
  end
49
49
  end
@@ -61,7 +61,7 @@ module SolidusDevSupport
61
61
  require 'rspec/core/rake_task'
62
62
 
63
63
  namespace :extension do
64
- ::RSpec::Core::RakeTask.new(:specs, [] => FileList[ENV['DUMMY_PATH']]) do |t|
64
+ ::RSpec::Core::RakeTask.new(:specs, [] => FileList[ENV.fetch('DUMMY_PATH', nil)]) do |t|
65
65
  # Ref: https://circleci.com/docs/2.0/configuration-reference#store_test_results
66
66
  # Ref: https://github.com/solidusio/circleci-orbs-extensions#test-results-rspec
67
67
  if ENV['TEST_RESULTS_PATH']
@@ -78,11 +78,12 @@ module SolidusDevSupport
78
78
 
79
79
  GitHubChangelogGenerator::RakeTask.new(:changelog) do |config|
80
80
  require 'octokit'
81
+ require 'octokit/repository'
81
82
  repo = Octokit::Repository.from_url(gemspec.metadata['source_code_uri'] || gemspec.homepage)
82
83
 
83
84
  config.user = repo.owner
84
85
  config.project = repo.name
85
- config.future_release = "v#{ENV['UNRELEASED_VERSION'] || gemspec.version}"
86
+ config.future_release = "v#{ENV.fetch('UNRELEASED_VERSION') { gemspec.version }}"
86
87
 
87
88
  rescue Octokit::InvalidRepository
88
89
  warn <<~WARN
@@ -3,16 +3,20 @@
3
3
  require 'webdrivers/chromedriver'
4
4
 
5
5
  # Allow to override the initial windows size
6
- CAPYBARA_WINDOW_SIZE = (ENV['CAPYBARA_WINDOW_SIZE'] || '1920x1080').split('x', 2).map(&:to_i)
6
+ CAPYBARA_WINDOW_SIZE = ENV.fetch('CAPYBARA_WINDOW_SIZE', '1920x1080').split('x', 2).map(&:to_i)
7
+ CAPYBARA_WINDOW_WIDTH = CAPYBARA_WINDOW_SIZE[0]
8
+ CAPYBARA_WINDOW_HEIGHT = CAPYBARA_WINDOW_SIZE[1]
7
9
 
8
- Capybara.javascript_driver = (ENV['CAPYBARA_JAVASCRIPT_DRIVER'] || "solidus_chrome_headless").to_sym
10
+ Capybara.javascript_driver = ENV.fetch('CAPYBARA_JAVASCRIPT_DRIVER', "solidus_chrome_headless").to_sym
9
11
  Capybara.default_max_wait_time = 10
10
12
  Capybara.server = :puma, { Silent: true } # A fix for rspec/rspec-rails#1897
11
13
 
12
14
  Capybara.drivers[:selenium_chrome_headless].tap do |original_driver|
13
15
  Capybara.register_driver :solidus_chrome_headless do |app|
14
16
  original_driver.call(app).tap do |driver|
15
- driver.options[:options].args << "--window-size=#{CAPYBARA_WINDOW_SIZE.join(',')}"
17
+ driver.resize_window_to(
18
+ driver.current_window_handle, CAPYBARA_WINDOW_WIDTH, CAPYBARA_WINDOW_HEIGHT
19
+ )
16
20
  end
17
21
  end
18
22
  end
@@ -14,7 +14,7 @@ RSpec.configure do |config|
14
14
  config.mock_with :rspec
15
15
  config.color = true
16
16
 
17
- config.fail_fast = ENV['FAIL_FAST'] || false
17
+ config.fail_fast = ENV.fetch('FAIL_FAST', false)
18
18
  config.order = 'random'
19
19
 
20
20
  config.raise_errors_for_deprecations!
@@ -1,6 +1,9 @@
1
1
  version: 2.1
2
2
 
3
3
  orbs:
4
+ # Required for feature specs.
5
+ browser-tools: circleci/browser-tools@1.1
6
+
4
7
  # Always take the latest version of the orb, this allows us to
5
8
  # run specs against Solidus supported versions only without the need
6
9
  # to change this configuration every time a Solidus version is released
@@ -11,14 +14,17 @@ jobs:
11
14
  run-specs-with-postgres:
12
15
  executor: solidusio_extensions/postgres
13
16
  steps:
17
+ - browser-tools/install-browser-tools
14
18
  - solidusio_extensions/run-tests
15
19
  run-specs-with-mysql:
16
20
  executor: solidusio_extensions/mysql
17
21
  steps:
22
+ - browser-tools/install-browser-tools
18
23
  - solidusio_extensions/run-tests
19
24
  lint-code:
20
25
  executor: solidusio_extensions/sqlite-memory
21
26
  steps:
27
+ - browser-tools/install-browser-tools
22
28
  - solidusio_extensions/lint-code
23
29
 
24
30
  workflows:
@@ -14,7 +14,7 @@ gem 'rails', '>0.a'
14
14
  # Provides basic authentication functionality for testing parts of your engine
15
15
  gem 'solidus_auth_devise'
16
16
 
17
- case ENV['DB']
17
+ case ENV.fetch('DB', nil)
18
18
  when 'mysql'
19
19
  gem 'mysql2'
20
20
  when 'postgresql'
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusDevSupport
4
- VERSION = "2.5.1"
4
+ VERSION = "2.5.4"
5
5
 
6
6
  def self.gem_version
7
7
  Gem::Version.new(VERSION)
@@ -15,6 +15,7 @@ Gem::Specification.new do |spec|
15
15
  spec.metadata['homepage_uri'] = spec.homepage
16
16
  spec.metadata['source_code_uri'] = 'https://github.com/solidusio/solidus_dev_support'
17
17
  spec.metadata['changelog_uri'] = 'https://github.com/solidusio/solidus_dev_support/blob/master/CHANGELOG.md'
18
+ spec.metadata['rubygems_mfa_required'] = 'true'
18
19
 
19
20
  spec.required_ruby_version = '>= 2.5.0'
20
21
 
@@ -45,7 +46,7 @@ Gem::Specification.new do |spec|
45
46
  spec.add_dependency 'rubocop-rails', '~> 2.3'
46
47
  spec.add_dependency 'rubocop-rspec', '~> 2.0'
47
48
  spec.add_dependency 'solidus_core', ['>= 2.0', '< 4']
48
- spec.add_dependency 'webdrivers', '~> 4.4'
49
+ spec.add_dependency 'webdrivers', '>= 4.4'
49
50
 
50
51
  spec.add_development_dependency 'bundler'
51
52
  spec.add_development_dependency 'rake'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_dev_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.1
4
+ version: 2.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Desantis
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-31 00:00:00.000000000 Z
11
+ date: 2022-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -270,14 +270,14 @@ dependencies:
270
270
  name: webdrivers
271
271
  requirement: !ruby/object:Gem::Requirement
272
272
  requirements:
273
- - - "~>"
273
+ - - ">="
274
274
  - !ruby/object:Gem::Version
275
275
  version: '4.4'
276
276
  type: :runtime
277
277
  prerelease: false
278
278
  version_requirements: !ruby/object:Gem::Requirement
279
279
  requirements:
280
- - - "~>"
280
+ - - ">="
281
281
  - !ruby/object:Gem::Version
282
282
  version: '4.4'
283
283
  - !ruby/object:Gem::Dependency
@@ -308,7 +308,7 @@ dependencies:
308
308
  - - ">="
309
309
  - !ruby/object:Gem::Version
310
310
  version: '0'
311
- description:
311
+ description:
312
312
  email:
313
313
  - alessandrodesantis@nebulab.it
314
314
  executables:
@@ -396,7 +396,8 @@ metadata:
396
396
  homepage_uri: https://github.com/solidusio/solidus_dev_support
397
397
  source_code_uri: https://github.com/solidusio/solidus_dev_support
398
398
  changelog_uri: https://github.com/solidusio/solidus_dev_support/blob/master/CHANGELOG.md
399
- post_install_message:
399
+ rubygems_mfa_required: 'true'
400
+ post_install_message:
400
401
  rdoc_options: []
401
402
  require_paths:
402
403
  - lib
@@ -411,8 +412,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
411
412
  - !ruby/object:Gem::Version
412
413
  version: '0'
413
414
  requirements: []
414
- rubygems_version: 3.2.20
415
- signing_key:
415
+ rubygems_version: 3.0.3.1
416
+ signing_key:
416
417
  specification_version: 4
417
418
  summary: Development tools for Solidus extensions.
418
419
  test_files: