spieker 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +4 -0
- data/lib/spieker/link_scraper.rb +6 -1
- data/lib/spieker/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: 97a34a590f7122fb4a85c4ecdbae4f275ba8de3f
|
4
|
+
data.tar.gz: ecdad843017e8d2a0730e4c637492c9e95d762c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8f4bd887fab6904bdd7fa95b4145ddf190f765782f1d11cc1184eb6190888a746b3ccaf8cc98e45788da5fe2c22e9181d4e2146846730a1bada585f622d1c66
|
7
|
+
data.tar.gz: 40012f786528bf8b8898f30f44d7715584c311df96140c70dabfeac5679a4e02693e62a310dbb97dbcee7d5839941641dd872c82c96657dfdc6498013d65241d
|
data/CHANGELOG
CHANGED
data/lib/spieker/link_scraper.rb
CHANGED
@@ -47,7 +47,12 @@ module Spieker
|
|
47
47
|
visit @url.path + query + "#!lang=#{@lang}"
|
48
48
|
# Capybara + selenium causes some links not to be found. There doesn't seem to be any method to that.
|
49
49
|
# Cool is tho, in JS it's a lot faster as well
|
50
|
-
links =
|
50
|
+
links = begin
|
51
|
+
page.evaluate_script('document.getElementsByTagName(\'a\')').map { |el| el['href'] }
|
52
|
+
rescue Net::ReadTimeout
|
53
|
+
page.all('a').map { |el| el['href'] }
|
54
|
+
end
|
55
|
+
|
51
56
|
begin
|
52
57
|
# Our javascript adds a class if the content has been succesfully submitted
|
53
58
|
page.find(:css, 'html.tolq-content-updated')
|
data/lib/spieker/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spieker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Timon Vonk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|