seo_cache 1.2.0 → 1.2.1

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: 257a485a274532a58693567428f24615cf4f1c4ad9f45546d81b6ed26b2352c2
4
- data.tar.gz: 6fe1ac814ab110ab97aca70682cdf4cff66cebc3449b6abd14594417bd26876d
3
+ metadata.gz: 612bb7e5cfe82ac49b35bc86915082f054c9e4dbe91bc2b664038de965d1f07e
4
+ data.tar.gz: ca1dcfcff1cfa0fb9bcf8dc4ec6d3edc0660c2965fc9c9276c01581638271a27
5
5
  SHA512:
6
- metadata.gz: a5d651a0568691b994fdd94d76c52a8b6c83907e91dd8e95edcdf380cca1e994a7929e0ac92b94a0658be46f4564e33367bc6413c657fc9bcd372062362e922a
7
- data.tar.gz: cbdbc8ba5ced409d94ddd0fed596c768042a32b1fd9ae861d2e0d2f5c406a51b447856a1005a9eded8b6ede343eeeac8acf9b6914fd4278688819d170b093204
6
+ metadata.gz: 69904412e9083c552ae777c266b960e0d5295fc3536d4f85da90ad47bcb77349e2a6c53be9e4dc9eb0ee8602dc121841974205e1480a15347ed5798a8c781bd9
7
+ data.tar.gz: 205c8bc45ac28e7969342b5a495530557a1020762969c7fed49cea7bc3bbdf8126fe02866d8eef4f43267753886ee51ac1080aded6e50df4ed8ae946234f2ec3
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
- ## 1.1.2
1
+ ## 1.2.1
2
+
3
+ - Update deprecated Selenium options
4
+
5
+ ## 1.2.0
2
6
 
3
7
  - Do not try to cache invalid requests
4
8
 
@@ -33,21 +33,14 @@ module SeoCache
33
33
 
34
34
  Selenium::WebDriver::Chrome.path = SeoCache.chrome_path if SeoCache.chrome_path
35
35
 
36
- browser_options = ::Selenium::WebDriver::Chrome::Options.new
37
- browser_options.args << 'disable-infobars'
38
- browser_options.args << '--headless'
39
- browser_options.args << '--no-sandbox'
40
- browser_options.args << '--incognito'
41
- browser_options.args << '--disable-dev-shm-usage'
42
- browser_options.args << '--disable-gpu'
43
- browser_options.args << '--disable-web-security'
44
- browser_options.args << '--disable-extensions'
45
- browser_options.args << '--disable-logging'
46
- browser_options.args << '--disable-notifications'
47
- browser_options.args << '--disable-sync'
48
- browser_options.args << '--window-size=1920x1080'
49
- browser_options.args << "--remote-debugging-port=#{SeoCache.chrome_debugging_port}" if SeoCache.chrome_debugging_port
50
- @driver = ::Selenium::WebDriver.for(:chrome, options: browser_options)
36
+ browser_options = %w[headless incognito disable-gpu disable-infobars disable-dev-shm-usage disable-gpu disable-web-security disable-extensions no-sandbox disable-logging disable-notifications disable-sync window-size=1920x1080]
37
+ browser_options << "remote-debugging-port=#{SeoCache.chrome_debugging_port}" if SeoCache.chrome_debugging_port
38
+ @driver = ::Selenium::WebDriver.for(
39
+ :chrome,
40
+ capabilities: [Selenium::WebDriver::Chrome::Options.new(
41
+ args: browser_options
42
+ )]
43
+ )
51
44
  end
52
45
  end
53
46
  end
@@ -1,3 +1,3 @@
1
1
  module SeoCache
2
- VERSION = '1.2.0'.freeze
2
+ VERSION = '1.2.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seo_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - FloXcoder