website_information 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -5
- data/lib/website_information/params/site.rb +3 -4
- 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: 58845fdb6b2759beab27bd9bb3ceac9bf77447c0
|
4
|
+
data.tar.gz: 3d37d2c30fcaee0943d6942291f2e064379990c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbb666835785ed1031259b80e46b45045b3c41cc3a53030da6584ed80c8ba3c92c0b346f2332a05febdfc66f66944427aee0520f830ba976c22361ca22162f91
|
7
|
+
data.tar.gz: 9fb275916f6560991bf96abc764cd48fde88fdfbe2413d5b5d1e66164feb0ae2a4a23b55b3a3c1c510ffb05e7d084bf215be04be5e15100a3e376be6b5125cea
|
data/README.md
CHANGED
@@ -21,12 +21,9 @@ Or install it yourself as:
|
|
21
21
|
$ gem install website_information
|
22
22
|
|
23
23
|
### for site capture setting
|
24
|
-
Please install [
|
24
|
+
Please install [chromedriver](https://chromedriver.storage.googleapis.com/)(webdriver) if you want to use site capture.
|
25
25
|
|
26
|
-
|
27
|
-
2. Setting PATH env ``` export PATH=$PATH:/path/to/geckodriver ``` and install firefox
|
28
|
-
|
29
|
-
see: https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver#Setting_up_the_geckodriver_executable
|
26
|
+
Install chromedriver. https://chromedriver.storage.googleapis.com/ or ``` brew install chromedriver ```
|
30
27
|
|
31
28
|
## Usage
|
32
29
|
|
@@ -26,10 +26,9 @@ module WebsiteInformation
|
|
26
26
|
|
27
27
|
def capture
|
28
28
|
if @capture.nil?
|
29
|
-
options = Selenium::WebDriver::
|
30
|
-
options.add_argument('
|
31
|
-
|
32
|
-
browser = Selenium::WebDriver.for :firefox, options: options
|
29
|
+
options = Selenium::WebDriver::Chrome::Options.new
|
30
|
+
options.add_argument('--headless')
|
31
|
+
browser = Selenium::WebDriver.for :chrome, options: options
|
33
32
|
browser.get @url
|
34
33
|
@capture = browser.screenshot_as(:png)
|
35
34
|
browser.close
|
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.4
|
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-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|