horsefield 0.2.11 → 0.2.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/horsefield/scraper.rb +1 -2
- data/lib/horsefield/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11054ca9291b1a1beba7ba28f17a4beeddfbc236
|
4
|
+
data.tar.gz: a80bed00d640c4558c1f0a6f0ac91b13f1964af7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5ca3758fd1196f0d98e4baddd14a3c6a7b5336a8e774882d9d64f759ef6c1bf3090034203ca473980dac3fb9cfc1f5d67fa24709a4f1a76a9405518a49987c8
|
7
|
+
data.tar.gz: a292300b50a8c299e34038dff8fc459bd43709a527688c3be6f69089d600ac689e0e9f6bf01152c22e83fed18346dfacf511bce688ef4480f1a822a3b498cd87
|
data/lib/horsefield/scraper.rb
CHANGED
@@ -34,7 +34,7 @@ module Horsefield
|
|
34
34
|
if browser.is_a? Mechanize
|
35
35
|
@html || browser.get(@url).content
|
36
36
|
elsif browser.is_a? Watir::Browser
|
37
|
-
@html || browser.goto(@url); browser.html
|
37
|
+
@html || (browser.goto(@url); browser.html)
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
@@ -44,6 +44,5 @@ module Horsefield
|
|
44
44
|
|
45
45
|
def node_set
|
46
46
|
@node_set ||= Horsefield::NodeSet.new(page)
|
47
|
-
end
|
48
47
|
end
|
49
48
|
end
|
data/lib/horsefield/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: horsefield
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erik Strömberg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mechanize
|
@@ -166,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
166
166
|
version: '0'
|
167
167
|
requirements: []
|
168
168
|
rubyforge_project:
|
169
|
-
rubygems_version: 2.
|
169
|
+
rubygems_version: 2.0.14
|
170
170
|
signing_key:
|
171
171
|
specification_version: 4
|
172
172
|
summary: It's a scraper
|