venetian 0.3.1 → 0.3.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: aafa47a0f14da5b53e15342d47066d1949662794fd51bbcccf5c557a9aaa85ea
4
- data.tar.gz: 0e3a2e04f9f0bc780f119767e4f681a2cd859b7962acd24b895f6b3f5a2d8148
3
+ metadata.gz: f695151d55003ebac29d7a3a8f07e9fefa0f0f89157f4968136c455227cd6db0
4
+ data.tar.gz: cc76fe2abb9785560bf07410ff248965aba79695f0fdb95ebeffc06903353cf9
5
5
  SHA512:
6
- metadata.gz: dab03d644e9b48c4a0563767a997abff66a0d79161e575bcea79a26bd1c84efee33a73ba774d3612df3a7b8faecbaab5acf50411246381de6966607f0e2ed094
7
- data.tar.gz: 5f024a8121cd70f4e48182cc192da2ed703b58c36b127969d673265fa994c67b88484a2665e171ebe6e8a1843d7d02cf83b4a8510c6964d425df819e09a851d9
6
+ metadata.gz: 63cc42e4330acc9b36da4096b31e922866437eaa174c4c9970dfdbf1ee35f23837cd0a4faa918e8dc9340f409c355a277b190ab7350e43a6ae31ad8ea84ee39b
7
+ data.tar.gz: 54095af7e65876ba7ce6804451de1618fa52eb1db6cad1fb46a7e27b9a901b7c8948ebda0c351671f6831c9f7f8609ab3172b854b377ddcfd9a92c2637fa5dae
data/Rakefile CHANGED
@@ -12,3 +12,4 @@ RuboCop::RakeTask.new
12
12
  task default: %i[test rubocop]
13
13
 
14
14
  import "rakelib/release.rake"
15
+ import "rakelib/upstream.rake"
@@ -22,9 +22,29 @@ module Venetian
22
22
  windows ? "zip" : "tar.gz"
23
23
  end
24
24
 
25
+ # Returns the basename of the Node.js release archive for the given version, also its top-level directory.
26
+ def node_archive_basename_for(version)
27
+ "node-v#{version}-#{node_dir}"
28
+ end
29
+
30
+ # Returns the filename of the Node.js release archive for the given version.
31
+ def node_archive_name_for(version)
32
+ "#{node_archive_basename_for(version)}.#{node_archive_extension}"
33
+ end
34
+
35
+ # Returns a pattern capturing the archive's SHA-256 checksum from the given version's SHASUMS256.txt.
36
+ def node_checksum_pattern_for(version)
37
+ /^(\h{64}) +#{Regexp.escape(node_archive_name_for(version))}$/
38
+ end
39
+
25
40
  # Returns the URL to download the Node.js release archive for the given version.
26
41
  def node_url_for(version)
27
- "#{NODE_DIST_URL}/v#{version}/node-v#{version}-#{node_dir}.#{node_archive_extension}"
42
+ "#{NODE_DIST_URL}/v#{version}/#{node_archive_name_for(version)}"
43
+ end
44
+
45
+ # Returns the URL of the signed SHA-256 checksums for the Node.js release archives of the given version.
46
+ def node_signed_checksums_url_for(version)
47
+ "#{NODE_DIST_URL}/v#{version}/SHASUMS256.txt.asc"
28
48
  end
29
49
  end
30
50
 
@@ -46,6 +66,21 @@ module Venetian
46
66
  "#{NPM_REGISTRY_URL}/playwright-core/-/playwright-core-#{COMPATIBLE_PLAYWRIGHT_VERSION}.tgz"
47
67
  end
48
68
 
69
+ # Returns the URL of the npm registry metadata for the playwright-core package, which includes its integrity hash.
70
+ def self.playwright_core_metadata_url
71
+ npm_metadata_url("playwright-core", COMPATIBLE_PLAYWRIGHT_VERSION)
72
+ end
73
+
74
+ # Returns the URL of the npm registry metadata for the given package version.
75
+ def self.npm_metadata_url(name, version)
76
+ "#{npm_packument_url(name)}/#{version}"
77
+ end
78
+
79
+ # Returns the URL of the npm registry metadata for every version of the given package, including publish times.
80
+ def self.npm_packument_url(name)
81
+ "#{NPM_REGISTRY_URL}/#{name}"
82
+ end
83
+
49
84
  # Returns the gemspec files for the base gem.
50
85
  def self.base_files
51
86
  GEMSPEC.files
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Venetian
4
- VERSION = "0.3.1"
5
- COMPATIBLE_PLAYWRIGHT_VERSION = "1.63.0"
4
+ VERSION = "0.3.2"
5
+ COMPATIBLE_PLAYWRIGHT_VERSION = "1.64.0"
6
+ NODE_VERSION = "24.22.0"
6
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: venetian
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Malčić
@@ -29,14 +29,14 @@ dependencies:
29
29
  requirements:
30
30
  - - "~>"
31
31
  - !ruby/object:Gem::Version
32
- version: 1.63.0
32
+ version: 1.64.0
33
33
  type: :runtime
34
34
  prerelease: false
35
35
  version_requirements: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: 1.63.0
39
+ version: 1.64.0
40
40
  description: Bundles the Playwright driver binary in platform-specific gem variants
41
41
  and integrates with `capybara-playwright-driver`.
42
42
  email:
@@ -73,7 +73,7 @@ metadata:
73
73
  homepage_uri: https://malcic.codes/projects/software/venetian
74
74
  source_code_uri: https://github.com/jmalcic/venetian
75
75
  rubygems_mfa_required: 'true'
76
- playwright_version: 1.63.0
76
+ playwright_version: 1.64.0
77
77
  rdoc_options: []
78
78
  require_paths:
79
79
  - lib