async-webdriver 0.12.1 → 0.12.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: 243addf7d5e3f7a978552847d2ae011d34399050668c0c2fc7b6573cacc9fa7e
4
- data.tar.gz: 296591c00edb0071b417a0bf70dc42ef3caed330d4155b15b81da7a2c6ae5282
3
+ metadata.gz: b37481d4b5d69a25385aa5f59367a69c0a2bc20998be7d6b69ce2a2b923a8f52
4
+ data.tar.gz: b6a9b2fa9916a10cee41728b33f204c267e562bae97f357084f93727493e28eb
5
5
  SHA512:
6
- metadata.gz: 9337ecc0e8a306a5f2b4ddabaffd2cc76f03ba1cd3132cb76ef22cfca413bf63f5dd318efb1c93b864250c8238b5726551c8e9d3e20f5b78b9655f59de7912f5
7
- data.tar.gz: f367473a2e748c86b3dbbfcfbe3286c09e0e9c70b8e3a44e0fa504ec9dec48f3f3446b08cdc83386dc0cc898f09a7e67122e941b52e24e5008624331ce5be8c3
6
+ metadata.gz: 3714229ff531d7b7223abef8062607378087d91370705247c162482dd4924f61dd9a3305db01a4f903be1bd8f65d8dd6e884058150f60ed6881f5fd9e792fb77
7
+ data.tar.gz: df9fb8ebf1f9b66a55f605c0a61e395e20f7b0cf0dd255edad579f4e9d1e55595b802595b63f9688d50029b1fb0906f8fb700494f81313c104b77a42a18093ab
checksums.yaml.gz.sig CHANGED
Binary file
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Released under the MIT License.
4
+ # Copyright, 2026, by Samuel Williams.
5
+
6
+ module Async
7
+ module WebDriver
8
+ # Browser installation and management for automated testing.
9
+ #
10
+ # Each browser has its own sub-module with browser-specific platform detection,
11
+ # version resolution, and download logic:
12
+ #
13
+ # - {Installer::Chrome} — Chrome for Testing, via the Chrome for Testing JSON API.
14
+ module Installer
15
+ # Resolve the cache path for the given sub-directory.
16
+ #
17
+ # Follows the XDG Base Directory Specification, using `$XDG_CACHE_HOME`
18
+ # (default: `~/.cache`) as the root, with `async-webdriver.rb` as the
19
+ # application directory.
20
+ #
21
+ # @parameter subdirectory [String | Nil] Optional sub-directory, e.g. `"chrome"`.
22
+ # @parameter env [Hash] Environment to read `XDG_CACHE_HOME` from. Default: `ENV`.
23
+ # @returns [String] Absolute path.
24
+ def self.cache_path(subdirectory = nil, env = ENV)
25
+ path = File.expand_path("async-webdriver.rb", env.fetch("XDG_CACHE_HOME", "~/.cache"))
26
+
27
+ if subdirectory
28
+ path = File.join(path, subdirectory)
29
+ end
30
+
31
+ return path
32
+ end
33
+ end
34
+ end
35
+ end
@@ -7,6 +7,8 @@ require_relative "chrome/platform"
7
7
  require_relative "chrome/releases"
8
8
  require_relative "chrome/installation"
9
9
 
10
+ require_relative "cache_path"
11
+
10
12
  module Async
11
13
  module WebDriver
12
14
  module Installer
@@ -4,34 +4,3 @@
4
4
  # Copyright, 2026, by Samuel Williams.
5
5
 
6
6
  require_relative "installer/chrome"
7
-
8
- module Async
9
- module WebDriver
10
- # Browser installation and management for automated testing.
11
- #
12
- # Each browser has its own sub-module with browser-specific platform detection,
13
- # version resolution, and download logic:
14
- #
15
- # - {Installer::Chrome} — Chrome for Testing, via the Chrome for Testing JSON API.
16
- module Installer
17
- # Resolve the cache path for the given sub-directory.
18
- #
19
- # Follows the XDG Base Directory Specification, using `$XDG_CACHE_HOME`
20
- # (default: `~/.cache`) as the root, with `async-webdriver.rb` as the
21
- # application directory.
22
- #
23
- # @parameter subdirectory [String | Nil] Optional sub-directory, e.g. `"chrome"`.
24
- # @parameter env [Hash] Environment to read `XDG_CACHE_HOME` from. Default: `ENV`.
25
- # @returns [String] Absolute path.
26
- def self.cache_path(subdirectory = nil, env = ENV)
27
- path = File.expand_path("async-webdriver.rb", env.fetch("XDG_CACHE_HOME", "~/.cache"))
28
-
29
- if subdirectory
30
- path = File.join(path, subdirectory)
31
- end
32
-
33
- return path
34
- end
35
- end
36
- end
37
- end
@@ -7,6 +7,6 @@
7
7
  module Async
8
8
  # @namespace
9
9
  module WebDriver
10
- VERSION = "0.12.1"
10
+ VERSION = "0.12.2"
11
11
  end
12
12
  end
data/readme.md CHANGED
@@ -28,6 +28,10 @@ Please see the [project documentation](https://socketry.github.io/async-webdrive
28
28
 
29
29
  Please see the [project releases](https://socketry.github.io/async-webdriver/releases/index) for all releases.
30
30
 
31
+ ### v0.12.2
32
+
33
+ - **Fixed** `Installer.cache_path` usage.
34
+
31
35
  ### v0.12.0
32
36
 
33
37
  - Add `Async::WebDriver::Installer::Chrome` for automatic Chrome for Testing installation and management. `Installer::Chrome.install(version)` resolves the version via the Chrome for Testing JSON API, caches binaries in `~/.local/state/async-webdriver/` (XDG `$XDG_STATE_HOME`), and returns an `Installation` with paths to both the Chrome and ChromeDriver binaries.
data/releases.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Releases
2
2
 
3
+ ## v0.12.2
4
+
5
+ - **Fixed** `Installer.cache_path` usage.
6
+
3
7
  ## v0.12.0
4
8
 
5
9
  - Add `Async::WebDriver::Installer::Chrome` for automatic Chrome for Testing installation and management. `Installer::Chrome.install(version)` resolves the version via the Chrome for Testing JSON API, caches binaries in `~/.local/state/async-webdriver/` (XDG `$XDG_STATE_HOME`), and returns an `Installation` with paths to both the Chrome and ChromeDriver binaries.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-webdriver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -131,6 +131,7 @@ files:
131
131
  - lib/async/webdriver/element.rb
132
132
  - lib/async/webdriver/error.rb
133
133
  - lib/async/webdriver/installer.rb
134
+ - lib/async/webdriver/installer/cache_path.rb
134
135
  - lib/async/webdriver/installer/chrome.rb
135
136
  - lib/async/webdriver/installer/chrome/installation.rb
136
137
  - lib/async/webdriver/installer/chrome/platform.rb
@@ -176,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
177
  - !ruby/object:Gem::Version
177
178
  version: '0'
178
179
  requirements: []
179
- rubygems_version: 4.0.6
180
+ rubygems_version: 4.0.10
180
181
  specification_version: 4
181
182
  summary: A native library implementing the W3C WebDriver client specification.
182
183
  test_files: []
metadata.gz.sig CHANGED
Binary file