seo_cache 1.3.0 → 1.4.0

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: a72e3a9ce91ed9a97bd3ab142805b3868a37dd565dabdc3b7d5fe956c7b7be6f
4
- data.tar.gz: 7187dcb3ed4f2987a769667b19df906b30b135d2f6778255a25b1f081002033b
3
+ metadata.gz: 0e86d1a27899b2f4dda73d5f014720623580897e82088dfd173f2e023062e6b5
4
+ data.tar.gz: d469331650905b95e0d8323691e187bdb379c14591c8ebc7c8cf5e86e879fa4d
5
5
  SHA512:
6
- metadata.gz: '009557670cd549d512d14807e18417b5729f11a8969c8d9d4b42282ec1dd697bc0b70cd7e245204370529c4d548ab97e91e87eb7d4229408b131f8786c26ba1e'
7
- data.tar.gz: 2690dc545eee091d27662489cacc1294ad3aef65b3ab77fe5f96666fad964595e7ae254722fe6dc618d740f82b475da64195de4981e39da13f63a0bba1c705b1
6
+ metadata.gz: fc8ec629eb1dc796049e597c1f1f66ca7432596da2e9e49a3c85804488612c59a963a8400ed4a468b5127e1488e50b772b5b04426e66fc59739d877a2cdad9c9
7
+ data.tar.gz: cc887ac4e411613c745290442ffe8320fefc145b8a0b300fdaca26ae12a59ac4d7c107f17fc8114b0aa6016605ed033dc6657a3e1febfb0308fd8cc13ef6d936
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.4.0
2
+
3
+ - Correct Selenium warnings and add path for logging
4
+
1
5
  ## 1.3.0
2
6
 
3
7
  - Add new option for Redis: redis_db_index
@@ -27,7 +27,10 @@ module SeoCache
27
27
  private
28
28
 
29
29
  def init_driver
30
- # Selenium::WebDriver.logger.level = :info
30
+ if SeoCache.logger_path
31
+ Selenium::WebDriver.logger.output = SeoCache.logger_path
32
+ Selenium::WebDriver.logger.level = SeoCache.logger_level
33
+ end
31
34
 
32
35
  Webdrivers.cache_time = 86_400 * 10 # Chromedriver will be cached for 10 days (except if it detects a new version of Chrome)
33
36
 
@@ -35,11 +38,12 @@ module SeoCache
35
38
 
36
39
  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
40
  browser_options << "remote-debugging-port=#{SeoCache.chrome_debugging_port}" if SeoCache.chrome_debugging_port
41
+
38
42
  @driver = ::Selenium::WebDriver.for(
39
43
  :chrome,
40
- capabilities: [Selenium::WebDriver::Chrome::Options.new(
44
+ options: Selenium::WebDriver::Chrome::Options.new(
41
45
  args: browser_options
42
- )]
46
+ )
43
47
  )
44
48
  end
45
49
  end
@@ -1,3 +1,3 @@
1
1
  module SeoCache
2
- VERSION = '1.3.0'.freeze
2
+ VERSION = '1.4.0'.freeze
3
3
  end
data/lib/seo_cache.rb CHANGED
@@ -123,7 +123,7 @@ module SeoCache
123
123
  self.logger_path = nil
124
124
 
125
125
  mattr_accessor :logger_level
126
- self.logger_level = :INFO
126
+ self.logger_level = :warn
127
127
 
128
128
  mattr_accessor :logger
129
129
  # self.logger = SeoCache::Logger.new(SeoCache.logger_path)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seo_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - FloXcoder
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-08 00:00:00.000000000 Z
11
+ date: 2023-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -229,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
229
  - !ruby/object:Gem::Version
230
230
  version: '0'
231
231
  requirements: []
232
- rubygems_version: 3.4.2
232
+ rubygems_version: 3.4.7
233
233
  signing_key:
234
234
  specification_version: 4
235
235
  summary: Cache dedicated for SEO with Javascript rendering