spieker 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 97a34a590f7122fb4a85c4ecdbae4f275ba8de3f
4
- data.tar.gz: ecdad843017e8d2a0730e4c637492c9e95d762c2
3
+ metadata.gz: f73881bd8600d34c31815aff722fb40e6acdd3a1
4
+ data.tar.gz: 0e36fe7a5e7eda48af22955642461db2012ad56a
5
5
  SHA512:
6
- metadata.gz: f8f4bd887fab6904bdd7fa95b4145ddf190f765782f1d11cc1184eb6190888a746b3ccaf8cc98e45788da5fe2c22e9181d4e2146846730a1bada585f622d1c66
7
- data.tar.gz: 40012f786528bf8b8898f30f44d7715584c311df96140c70dabfeac5679a4e02693e62a310dbb97dbcee7d5839941641dd872c82c96657dfdc6498013d65241d
6
+ metadata.gz: de509511417c0826a8d92be8164049f218ec30b90434d31084a09de6ef03c8f42c88a2b20db6573cf0a9e622a8c25e1e81d88a0bf6536e3d8e4be1f8871bdd1a
7
+ data.tar.gz: df8793a2c7bb3d1c663e0ea3a74db453fabb5837a278b8d06eff1345aa68e3466d2ecc61bb5b0b0f3fd4350a72b504ca5f852d18a88e61a89a9cde142a49aba2
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ 0.0.10
2
+ * Better error handling on timeout
3
+ * Add googlebot to useragent
4
+
1
5
  0.0.9
2
6
  * Net::ReadTimeouts can occur if other JS blocks the page/evaluate. Fallback
3
7
  to regular selecting
@@ -15,7 +15,8 @@ module Spieker
15
15
 
16
16
  Capybara.register_driver :tolq do |app|
17
17
  profile = Selenium::WebDriver::Firefox::Profile.new
18
- profile['general.useragent.override'] = "Mozilla/5.0 (compatible; Tolq Spieker/#{Spieker::VERSION}; +http://www.tolq.com)"
18
+ # Sorry internet, but we need the whitelisting
19
+ profile['general.useragent.override'] = "Mozilla/5.0 (compatible; Googlebot TolqSpieker/#{Spieker::VERSION}; +http://www.tolq.com)"
19
20
 
20
21
  Capybara::Selenium::Driver.new(app, :profile => profile)
21
22
  end
@@ -56,7 +57,7 @@ module Spieker
56
57
  begin
57
58
  # Our javascript adds a class if the content has been succesfully submitted
58
59
  page.find(:css, 'html.tolq-content-updated')
59
- rescue Capybara::Ambiguous, Capybara::ElementNotFound => e
60
+ rescue Capybara::Ambiguous, Capybara::ElementNotFound, Net::ReadTimeout => e
60
61
  puts "Something went wrong with submitting the content: #{e.message}"
61
62
  end
62
63
  links
@@ -1,3 +1,3 @@
1
1
  module Spieker
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
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.9
4
+ version: 0.0.10
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-05 00:00:00.000000000 Z
11
+ date: 2013-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler