geo-spider 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,7 +18,7 @@ module GeoSpider
18
18
 
19
19
  results.each do |result|
20
20
  begin
21
- p = geocoder.locate(:zip => result, :country => "GB")
21
+ p = geocoder.locate(:postal_code => result, :country => "GB")
22
22
  found_locations << Location.new(:latitude => p.latitude, :longitude => p.longitude, :title => result)
23
23
  rescue Graticule::Error => e
24
24
  next
@@ -28,7 +28,7 @@ module GeoSpider
28
28
  seen << url
29
29
  next_links = (page.internal_links - seen - queue) # only add internal links that we've not seen or already have queued.
30
30
  queue.concat(next_links)
31
- rescue Timeout::Error => e
31
+ rescue Timeout::Error, OpenURI::HTTPError
32
32
  next
33
33
  end
34
34
  end
@@ -2,7 +2,7 @@ module GeoSpider
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geo-spider
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Taylor