itamae-plugin-recipe-selenium 0.4.2 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 48749a65c9241e3fc07de50a54b06abe87eb93bc5e9059965ed8ee9a0f289991
4
- data.tar.gz: f746a1eb77de312b592586ba50e393da4b810398150cdcd8be1d1fcb3be86fd4
3
+ metadata.gz: 68f00b457c013ead4290adccc82aca9e3b18367bbdbf22f19c6e0d7800b59b3a
4
+ data.tar.gz: 0e9194ea29b5e2095e9e8b5e4d21bd3780732063aab991073f0321768deb6cc4
5
5
  SHA512:
6
- metadata.gz: cee029419f266c394096b5d7469318015ad90d5126f66d63d709de47b55b99e526328855bbb5e53239f895b50e35c61059fcc5d96953c7d4d9f6965c027f95d6
7
- data.tar.gz: b02cc7d086c7c900b557a84c382b2398100d01aca0c7d1a1e0685b47c4a825170c7316d6d7b32bd451e994295b24fdb0935dd9e8a7f64bba2b524415e2eb60af
6
+ metadata.gz: c35aa86fdf8d6272a1e827bce63c8c4d3e1604d42537f406834b32fc41864b2db691d6425d15e5288f9505e444984b02c6d4831a2efb71334dc8ee9e9e82a1e6
7
+ data.tar.gz: d9d03f3c82de68bfa793630bd01ff51a8f12033d89db998aa5ed6bc781124e11f84a5e59db25586ceddc0fa197e54b8f1b48ee5b6d53e0e58514d8be2afe9c8c
@@ -7,11 +7,11 @@ template '/etc/yum.repos.d/google-chrome.repo' do
7
7
  end
8
8
 
9
9
  if ENV['CHROME_VERSION'].to_s.empty?
10
- ENV['CHROME_VERSION'] = '117.0.5938.92'
10
+ ENV['CHROME_VERSION'] = '120.0.6099.71'
11
11
 
12
12
  execute "yum install -y https://dl.google.com/linux/chrome/rpm/stable/x86_64/google-chrome-stable-#{ENV['CHROME_VERSION']}-1.x86_64.rpm" do
13
13
  user 'root'
14
- not_if "which google-chrome-stable && google-chrome-stable --version | egrep 'Google Chrome (113|114|115|116|117)\.'"
14
+ not_if "which google-chrome-stable && google-chrome-stable --version | egrep 'Google Chrome (118|119|120)\.'"
15
15
  end
16
16
  else
17
17
  execute "yum install -y https://dl.google.com/linux/chrome/rpm/stable/x86_64/google-chrome-stable-#{ENV['CHROME_VERSION']}-1.x86_64.rpm" do
@@ -2,7 +2,7 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module Selenium
5
- VERSION = '0.4.2'
5
+ VERSION = '0.4.4'
6
6
  end
7
7
  end
8
8
  end
@@ -36,15 +36,15 @@ module Itamae
36
36
  def run_setup_chromedriver
37
37
  browser_version = run_command('sudo yum list | grep google-chrome-stable').stdout.split[1]
38
38
  browser_version = Gem::Version.new(browser_version.to_s).segments[0..2].join('.')
39
+ Itamae.logger.info "browser version: #{browser_version}"
39
40
 
40
41
  driver_version_url = 'https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json'
41
42
  driver_versions = JSON.parse(Net::HTTP.get_response(URI(driver_version_url)).body)
42
43
  driver_version_info = driver_versions['versions'].select{|hash| hash['version'].start_with?(browser_version) }.sort{|a, b| a['revision'] <=> b['revision'] }.last
43
44
  driver_version = driver_version_info['version']
44
- driver_download_url = driver_version_info['downloads']['chromedriver'].find{|hash| hash['platform'] == 'linux64' }&.[]('url')
45
-
46
- Itamae.logger.info "browser version: #{browser_version}"
47
45
  Itamae.logger.info "driver version: #{driver_version}"
46
+
47
+ driver_download_url = driver_version_info['downloads']['chromedriver'].find{|hash| hash['platform'] == 'linux64' }&.[]('url')
48
48
  Itamae.logger.info "driver download url: #{driver_download_url}"
49
49
 
50
50
  run_command_if_not(
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-plugin-recipe-selenium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - y-matsuda
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-09-25 00:00:00.000000000 Z
11
+ date: 2023-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: itamae