chromedriver-binary 0.1.1 → 0.1.2

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: a80df6f17eb9699166192891de6e2c525a92ab65db314e3d9bcd130264e25856
4
+ data.tar.gz: 7ce57f7d1c04df3ecfb1c9f2ebf08a63c5c33eae3200ca78a24a09f1dd077301
5
5
  SHA512:
6
- metadata.gz: 1b9c2c0d4fec758a0f12d5e70d052e9c9dc1f20cfd5374f3feb132b884a6f56bf44a5c2db22f90b3536aeb83dfbdbc088bc2eae57994dd5820de149c1ead754f
7
- data.tar.gz: 041ecdf8e7a3b39dbc870630241968f87173cd348003c2e4089fcb44dd908d4b72aade8fb964d260b44f6b5fffa27f53e9b0bd562b7602ad9ab443e3860aa4b5
6
+ metadata.gz: f27e86b394b1b2aa6e13c2b145a58421b4ffc587ea7fd87d37c40d747d9c0f224f897129c1f273fec59c86e7b615895ebf27c6d5053f9f33e8f8488a48bcd5e1
7
+ data.tar.gz: 9ac78636240e12fd31787d2b0e4f4b56849d777df2f220ec6e4e1940e539cee87598ea6ddeab7cff37725519cf9c90795f2c433994ff636de1cb2d2e89b51e59
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,18 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.2] - 2025-04-11
4
+
5
+ ### 🐛 Fixed
6
+
7
+ - Added a warning message about compatibility with Linux ARM64 platforms. This primarily affects environments running
8
+ Docker containers on Apple Silicon (M1/M2) devices, helping users identify potential issues early.
9
+
10
+ ## [0.1.1] - 2025-04-01
11
+
12
+ ### 🐛 Fixed
13
+
14
+ - Update platform detection for Linux
15
+
3
16
  ## [0.1.0] - 2025-03-28
4
17
 
5
18
  - 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)
@@ -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.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
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.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dieter S.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-04-01 00:00:00.000000000 Z
11
+ date: 2025-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip