itamae-plugin-recipe-selenium 0.3.2 → 0.3.3

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: f3267094a101e501e8cceee548b0248d7d5e69ffa73470ca9ae808456579c63a
4
- data.tar.gz: 171240b3c1c6ec4cbadb7e924d70cbd8f6611df9d16b2c97d1cb2f447cfa3af3
3
+ metadata.gz: 3d6b33b5cc56b0523cbb5c574e31f403610d3847aa7f5f4575ad48ec83ad40bc
4
+ data.tar.gz: 3d3bd89764fa2ee1b5df46618f72396224c30ba22b1f8b9b55b3ca28a775ed1c
5
5
  SHA512:
6
- metadata.gz: b64d882fb00e7840358be1249a36f70e2e054a98756fbb6a1f9baf7681afb4f2da552b205a116d24e4a990b7928118a9a0df11b54b980704832f50db2d1e1c88
7
- data.tar.gz: c325398edaafc49117e38aece5f906e14e6ddc65fff1297688e3c6bee33328d7e5d8b3fde5820f4ac50b15ce77654f35cdb3bad98838eb05bc06e9eb7f8214dd
6
+ metadata.gz: 681f018d5bc4d97c3fb15200f29691702627f77e501602c0e4e0b1dfdc9f3fdb00b553d0d8f0e7f8f00646746012a07ebbda64a78973e170856982fb743f8c4f
7
+ data.tar.gz: 6442864d51e13f4eba1b84b51570d72411d1b8acbb9a28a07949774f020998045587eda900f1725c3ed7d3329cbc1d62545ba3505c53f9dd694af362d66b7450
@@ -20,5 +20,5 @@ end
20
20
 
21
21
  execute 'yum update -y google-chrome-stable' do
22
22
  user 'root'
23
- not_if "which google-chrome-stable && google-chrome-stable --version | egrep 'Google Chrome (91|92|93|94|96)\.'"
23
+ not_if "which google-chrome-stable && google-chrome-stable --version | egrep 'Google Chrome (93|94|96|97)\.'"
24
24
  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.3'
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.3
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-02-14 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.21
119
119
  signing_key:
120
120
  specification_version: 4
121
121
  summary: itamae recipe for god process monitoring framework