itamae-plugin-recipe-selenium 0.3.2 → 0.3.5

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: f3267094a101e501e8cceee548b0248d7d5e69ffa73470ca9ae808456579c63a
4
- data.tar.gz: 171240b3c1c6ec4cbadb7e924d70cbd8f6611df9d16b2c97d1cb2f447cfa3af3
3
+ metadata.gz: cab1c2bee47163dd5d39d028f9cd7a0b63b0c80c244fdcc644ca0658fb14b47b
4
+ data.tar.gz: 01102e637a7084a5398d9105140c7824432f93de97faeb454124b8817b287cce
5
5
  SHA512:
6
- metadata.gz: b64d882fb00e7840358be1249a36f70e2e054a98756fbb6a1f9baf7681afb4f2da552b205a116d24e4a990b7928118a9a0df11b54b980704832f50db2d1e1c88
7
- data.tar.gz: c325398edaafc49117e38aece5f906e14e6ddc65fff1297688e3c6bee33328d7e5d8b3fde5820f4ac50b15ce77654f35cdb3bad98838eb05bc06e9eb7f8214dd
6
+ metadata.gz: 8028da10477a54cd7c37f93a5d85d6b01ad4e23bccead3527c3f18f9146787cf786f9abfe54a99b8182dbd752712c6622fa6b1653344bc08798c216e9b438374
7
+ data.tar.gz: 7f75970ff77ed41888ce49d36919d44230ec23909df63f0b846e4ff884385a91feda1c02aa18ae3dafa838779d9ba7fa98098295fda42567ca4955c4533058bf
data/README.md CHANGED
@@ -20,7 +20,7 @@ Or install it yourself as:
20
20
 
21
21
  ## Usage
22
22
 
23
- Include this recpie as:
23
+ Include this recipe as:
24
24
 
25
25
  include_recipe 'selenium'
26
26
 
@@ -1,5 +1,3 @@
1
- version = ENV['CHROME_VERSION']
2
-
3
1
  template '/etc/yum.repos.d/google-chrome.repo' do
4
2
  user 'root'
5
3
  owner 'root'
@@ -20,5 +18,5 @@ end
20
18
 
21
19
  execute 'yum update -y google-chrome-stable' do
22
20
  user 'root'
23
- not_if "which google-chrome-stable && google-chrome-stable --version | egrep 'Google Chrome (91|92|93|94|96)\.'"
21
+ not_if "which google-chrome-stable && google-chrome-stable --version | egrep 'Google Chrome (100|101|102)\.'"
24
22
  end
@@ -2,7 +2,7 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module Selenium
5
- VERSION = '0.3.2'
5
+ VERSION = '0.3.5'
6
6
  end
7
7
  end
8
8
  end
@@ -36,14 +36,19 @@ module Itamae
36
36
  base_url = 'https://' + host
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
+
39
40
  driver_version_url = base_url + "/LATEST_RELEASE_#{browser_version}"
40
41
  driver_version = Net::HTTP.get_response(URI(driver_version_url)).body
42
+
43
+ # see https://stackoverflow.com/questions/70967207/selenium-chromedriver-cannot-construct-keyevent-from-non-typeable-key/70968668
44
+ driver_version = '97.0.4692.71' if driver_version.start_with?('98.')
45
+
41
46
  download_url = base_url + "/#{driver_version}/chromedriver_linux64.zip"
42
47
  header = Net::HTTP.start(host) { |http| http.head("/#{driver_version}/chromedriver_linux64.zip") }
43
48
  etag = header['etag'][1...-1]
44
49
 
45
- Itamae.logger.debug "browser version: #{browser_version}"
46
- Itamae.logger.debug "driver version: #{driver_version}"
50
+ Itamae.logger.info "browser version: #{browser_version}"
51
+ Itamae.logger.info "driver version: #{driver_version}"
47
52
  Itamae.logger.debug "download url: #{download_url}"
48
53
  Itamae.logger.debug "etag: #{etag}"
49
54
 
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.3.2
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - y-matsuda
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-05 00:00:00.000000000 Z
11
+ date: 2022-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: itamae
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
117
  requirements: []
118
- rubygems_version: 3.1.4
118
+ rubygems_version: 3.2.16
119
119
  signing_key:
120
120
  specification_version: 4
121
121
  summary: itamae recipe for god process monitoring framework