puffing-billy 3.2.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac5d11bd30cfb97b7ee07fda89923ca24562a34c653e73c1a2c3d3fd1b22f715
4
- data.tar.gz: bd7a279f65a2e3212db1f2bd0ad381753c7e82e0541d6c44b64dba27f3313456
3
+ metadata.gz: 1f585918e52d40164c2b82384f2a10b9a88739bd0eaa35585a45c568749e2717
4
+ data.tar.gz: 217c17068c87dcbd0df9f135b4e87d0ccb3f311cd9019a9ef57ac4f181b365ab
5
5
  SHA512:
6
- metadata.gz: 899438bd13470f7c3363f10dc59b936805c253ef98d565b1149ddac1f5a618e6ce2966a41ccdae9390365ab01818812d7cc8b26a084e3f23498021124c30c67a
7
- data.tar.gz: 8b6eae64b2637304a66dfd7375a37b4ac229e1eb53640cf3607bcdb063d59484f0fdf51e837cccbd54aa6c9afe41a3026e5f6d08edbe46ca9919d27aefed2eaf
6
+ metadata.gz: c252400a3d72b72680ee861c30322d96b62baa3bcf5f961a832671979acd066cb48a8ba3f108aee07b93167e602b28042ddac9bc2183f870b5c75f910650abf8
7
+ data.tar.gz: fe72b4f1c43d9ffba16fcf84cd0998954d60531f5c4a7528818a69c42a7ab6a8cab9e9430807ddb07811937479ab45bf436d83c5028a1c19dba5734d7fcf4de6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ v4.0.0, 2023-08-30
2
+ ------------------
3
+ * Drop Ruby 2.6 support [#337](https://github.com/oesmith/puffing-billy/pull/337)
4
+ * Fix removed Selenium::WebDriver::Remote::Capabilities.firefox method [#336](https://github.com/oesmith/puffing-billy/pull/336)
5
+ * Use :options argument instead of :capabilities [#338](https://github.com/oesmith/puffing-billy/pull/338)
6
+
1
7
  v3.2.0, 2023-08-27
2
8
  ------------------
3
9
  * Replace deprecated headless! Selenium::WebDriver::Chrome::Options [#333](https://github.com/oesmith/puffing-billy/pull/333)
@@ -48,24 +48,17 @@ module Billy
48
48
 
49
49
  def self.register_selenium_driver
50
50
  ::Capybara.register_driver :selenium_billy do |app|
51
- capabilities = [
52
- build_selenium_options_for_firefox,
53
- Selenium::WebDriver::Remote::Capabilities.firefox(accept_insecure_certs: true)
54
- ]
51
+ options = build_selenium_options_for_firefox
55
52
 
56
- ::Capybara::Selenium::Driver.new(app, capabilities: capabilities)
53
+ ::Capybara::Selenium::Driver.new(app, options: options)
57
54
  end
58
55
 
59
56
  ::Capybara.register_driver :selenium_headless_billy do |app|
60
57
  options = build_selenium_options_for_firefox.tap do |opts|
61
58
  opts.add_argument '-headless'
62
59
  end
63
- capabilities = [
64
- options,
65
- Selenium::WebDriver::Remote::Capabilities.firefox(accept_insecure_certs: true)
66
- ]
67
60
 
68
- ::Capybara::Selenium::Driver.new(app, capabilities: capabilities)
61
+ ::Capybara::Selenium::Driver.new(app, options: options)
69
62
  end
70
63
 
71
64
  ::Capybara.register_driver :selenium_chrome_billy do |app|
@@ -76,7 +69,7 @@ module Billy
76
69
  ::Capybara::Selenium::Driver.new(
77
70
  app,
78
71
  browser: :chrome,
79
- capabilities: options,
72
+ options: options,
80
73
  clear_local_storage: true,
81
74
  clear_session_storage: true
82
75
  )
@@ -94,7 +87,7 @@ module Billy
94
87
  ::Capybara::Selenium::Driver.new(
95
88
  app,
96
89
  browser: :chrome,
97
- capabilities: options,
90
+ options: options,
98
91
  clear_local_storage: true,
99
92
  clear_session_storage: true
100
93
  )
data/lib/billy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Billy
2
- VERSION = '3.2.0'
2
+ VERSION = '4.0.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puffing-billy
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olly Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-27 00:00:00.000000000 Z
11
+ date: 2023-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -379,7 +379,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
379
379
  requirements:
380
380
  - - ">="
381
381
  - !ruby/object:Gem::Version
382
- version: 2.6.0
382
+ version: 2.7.0
383
383
  required_rubygems_version: !ruby/object:Gem::Requirement
384
384
  requirements:
385
385
  - - ">="