website_information 0.5.6 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/website_information/params/site.rb +2 -2
- data/lib/website_information/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c71192ebc042e46865b5628947a06f4f87ef2919
|
4
|
+
data.tar.gz: 754aaebcf89d705f443201a954e4e3c3e7768be5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4e64913d279caada330e60517c09992fa88528a5e8b6cf3d44d152e8fb5ef34a3c3bc5967916eac42210f22f8cb13e01c4d897115c722f3020c4f4827c022fc
|
7
|
+
data.tar.gz: 8c0e69814c734db824b20dce9d6ff7554588e1fd27c84bc657db855d82d5a097ccdff1f2b0b5b15910351cb4835dfa7c8e3c86548f7c958a00b0ec930f4018f6
|
@@ -27,8 +27,8 @@ module WebsiteInformation
|
|
27
27
|
def capture
|
28
28
|
if @capture.nil?
|
29
29
|
binary = ENV.fetch('GOOGLE_CHROME_BIN', nil) # for heroku
|
30
|
-
options = Selenium::WebDriver::Chrome::Options.new(binary: binary)
|
31
|
-
options.add_argument('--headless')
|
30
|
+
options = Selenium::WebDriver::Chrome::Options.new(binary: binary, args: %w{headless no-sandbox disable-gpu})
|
31
|
+
# options.add_argument('--headless')
|
32
32
|
browser = Selenium::WebDriver.for :chrome, options: options
|
33
33
|
browser.get @url
|
34
34
|
@capture = browser.screenshot_as(:png)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: website_information
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- miraoto
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|