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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/seo_cache/page_render.rb +7 -3
- data/lib/seo_cache/version.rb +1 -1
- data/lib/seo_cache.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e86d1a27899b2f4dda73d5f014720623580897e82088dfd173f2e023062e6b5
|
4
|
+
data.tar.gz: d469331650905b95e0d8323691e187bdb379c14591c8ebc7c8cf5e86e879fa4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc8ec629eb1dc796049e597c1f1f66ca7432596da2e9e49a3c85804488612c59a963a8400ed4a468b5127e1488e50b772b5b04426e66fc59739d877a2cdad9c9
|
7
|
+
data.tar.gz: cc887ac4e411613c745290442ffe8320fefc145b8a0b300fdaca26ae12a59ac4d7c107f17fc8114b0aa6016605ed033dc6657a3e1febfb0308fd8cc13ef6d936
|
data/CHANGELOG.md
CHANGED
@@ -27,7 +27,10 @@ module SeoCache
|
|
27
27
|
private
|
28
28
|
|
29
29
|
def init_driver
|
30
|
-
|
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
|
-
|
44
|
+
options: Selenium::WebDriver::Chrome::Options.new(
|
41
45
|
args: browser_options
|
42
|
-
)
|
46
|
+
)
|
43
47
|
)
|
44
48
|
end
|
45
49
|
end
|
data/lib/seo_cache/version.rb
CHANGED
data/lib/seo_cache.rb
CHANGED
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.
|
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-
|
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.
|
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
|