chromedriver-binary 0.1.1 → 0.1.3

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: e37c7672fc5a5a74432545fb3b11927e0e1a7157e4f1210a43b7116b6d78a67f
4
- data.tar.gz: 3ba62d5d9a4c307623c33c53c04e9cc95e461eee852f59d3a2baf7e8da28d893
3
+ metadata.gz: 902a2a6e60632f196a90d5e17835ba50aca23ca278fc3760b898002d286ff104
4
+ data.tar.gz: eb2634ab9f92ed8fec4833abae20dea568c7359b2900a6db9819fee4c0cd1ac0
5
5
  SHA512:
6
- metadata.gz: 1b9c2c0d4fec758a0f12d5e70d052e9c9dc1f20cfd5374f3feb132b884a6f56bf44a5c2db22f90b3536aeb83dfbdbc088bc2eae57994dd5820de149c1ead754f
7
- data.tar.gz: 041ecdf8e7a3b39dbc870630241968f87173cd348003c2e4089fcb44dd908d4b72aade8fb964d260b44f6b5fffa27f53e9b0bd562b7602ad9ab443e3860aa4b5
6
+ metadata.gz: 10b685c4c0d4d3f285415d3157da4f8495eee5709cba23dcf8ca6d4196fdc93a251cba0aaba7f372abdd39713217d93b2a3091da54ba56ce43b721bb26083e94
7
+ data.tar.gz: d64025ac5bdfd20347cf17ee505c3f2644e2389bfcd8cf445307a53f8e0315d9f27cf24b3e3e52bbf22c8542889549cce6a124a13a9ee5ded75bade321f244d3
data/.rubocop.yml CHANGED
@@ -20,11 +20,29 @@ RSpec/ExampleLength:
20
20
  Layout/MultilineMethodCallIndentation:
21
21
  Enabled: false
22
22
 
23
+ Layout/FirstArgumentIndentation:
24
+ Enabled: false
25
+
26
+ Layout/ClosingParenthesisIndentation:
27
+ Enabled: false
28
+
23
29
  Layout/FirstHashElementIndentation:
24
30
  EnforcedStyle: consistent
25
31
 
26
32
  Layout/FirstArrayElementIndentation:
27
- EnforcedStyle: consistent
33
+ Enabled: false
34
+
35
+ Layout/MultilineOperationIndentation:
36
+ Enabled: false
37
+
38
+ Layout/BeginEndAlignment:
39
+ Enabled: false
40
+
41
+ Layout/ArrayAlignment:
42
+ Enabled: false
43
+
44
+ Layout/LineLength:
45
+ Enabled: false
28
46
 
29
47
  RSpec/MultipleMemoizedHelpers:
30
48
  Max: 10
@@ -42,6 +60,22 @@ Metrics/ParameterLists:
42
60
  Gemspec/DevelopmentDependencies:
43
61
  EnforcedStyle: gemspec
44
62
 
63
+ RSpec/InstanceVariable:
64
+ Enabled: false
65
+
66
+ RSpec/BeforeAfterAll:
67
+ Enabled: false
68
+
69
+ RSpec/SpecFilePathFormat:
70
+ Enabled: true
71
+ Exclude:
72
+ - 'spec/acceptance/**/*_spec.rb'
73
+
74
+ RSpec/DescribeClass:
75
+ Enabled: true
76
+ Exclude:
77
+ - 'spec/acceptance/**/*_spec.rb'
78
+
45
79
  plugins:
46
80
  - rubocop-rake
47
81
  - rubocop-rspec
data/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.3] - 2025-05-05
4
+
5
+ ### 🐛 Fixed
6
+
7
+ - Removen unnecessary Exception handling in the `Chromedriver::Binary::ChromedriverDownloader` class.
8
+
9
+ ## [0.1.2] - 2025-04-11
10
+
11
+ ### 🐛 Fixed
12
+
13
+ - Added a warning message about compatibility with Linux ARM64 platforms. This primarily affects environments running
14
+ Docker containers on Apple Silicon (M1/M2) devices, helping users identify potential issues early.
15
+
16
+ ## [0.1.1] - 2025-04-01
17
+
18
+ ### 🐛 Fixed
19
+
20
+ - Update platform detection for Linux
21
+
3
22
  ## [0.1.0] - 2025-03-28
4
23
 
5
24
  - Initial release
@@ -32,6 +32,15 @@ module Chromedriver
32
32
  def update(force: false)
33
33
  return driver_path if up_to_date_binary?(force)
34
34
 
35
+ Chromedriver::Binary.logger.warn(<<-EOF_WARNING) if linux_arm64?
36
+
37
+ WARNING: The Linux ARM64 version of ChromeDriver is not officially supported by Google.
38
+ Please use the OS version of ChromeDriver instead.
39
+ For instance on Ubuntu, use the `chromium-driver` package and link it to #{driver_path}.
40
+ `apt-get update && apt-get install chromium-driver`
41
+ `mkdir -p #{install_dir} && ln -s /usr/bin/chromedriver #{driver_path}`
42
+ EOF_WARNING
43
+
35
44
  version = latest_patch_version_for_build
36
45
  zip_filename = "chromedriver_#{platform_id}.zip"
37
46
  zip_path = File.join(install_dir, zip_filename)
@@ -54,7 +63,7 @@ module Chromedriver
54
63
 
55
64
  def correct_binary?
56
65
  current_installed_version == browser_version || current_installed_version == latest_patch_version_for_build
57
- rescue ConnectionError, VersionError
66
+ rescue VersionError
58
67
  false
59
68
  end
60
69
 
@@ -30,6 +30,11 @@ module Chromedriver
30
30
  end
31
31
  end
32
32
 
33
+ def linux_arm64?
34
+ RbConfig::CONFIG["host_os"].downcase.include?("linux") &&
35
+ RbConfig::CONFIG["host_cpu"].downcase.include?("aarch64")
36
+ end
37
+
33
38
  def file_name
34
39
  platform_id == "win32" ? "chromedriver.exe" : "chromedriver"
35
40
  end
@@ -19,9 +19,7 @@ namespace :chromedriver do
19
19
  desc "Remove and download updated chromedriver if necessary"
20
20
  task :update do
21
21
  Chromedriver::Binary::ChromedriverDownloader.update force: true
22
- # rubocop:disable Layout/LineLength
23
22
  Chromedriver::Binary.logger.info "Updated to chromedriver #{Chromedriver::Binary::ChromedriverDownloader.current_installed_version}"
24
- # rubocop:enable Layout/LineLength
25
23
  end
26
24
  end
27
25
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Chromedriver
4
4
  module Binary
5
- VERSION = "0.1.1"
5
+ VERSION = "0.1.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chromedriver-binary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dieter S.
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2025-04-01 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rubyzip
@@ -170,7 +169,6 @@ metadata:
170
169
  source_code_uri: https://github.com/dieter-medium/chromedriver-binary
171
170
  changelog_uri: https://github.com/dieter-medium/chromedriver-binary/blob/master/CHANGELOG.md
172
171
  rubygems_mfa_required: 'true'
173
- post_install_message:
174
172
  rdoc_options: []
175
173
  require_paths:
176
174
  - lib
@@ -185,8 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
183
  - !ruby/object:Gem::Version
186
184
  version: '0'
187
185
  requirements: []
188
- rubygems_version: 3.5.11
189
- signing_key:
186
+ rubygems_version: 3.6.8
190
187
  specification_version: 4
191
188
  summary: Automatically downloads and installs ChromeDriver binaries.
192
189
  test_files: []