sgeoip 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/lib/sgeoip.rb +5 -4
  2. data/lib/sgeoip/version.rb +1 -1
  3. metadata +2 -2
@@ -8,10 +8,11 @@ require 'geo_location'
8
8
 
9
9
  module Sgeoip
10
10
  def self.scrape(ip)
11
- geoip = geoiptool(ip)
12
- if geoip["error"]
13
- geoip = hostip(ip)
14
- end
11
+ # geoip = geoiptool(ip)
12
+ # if geoip["error"]
13
+ # geoip = hostip(ip)
14
+ # end
15
+ geoip = hostip(ip)
15
16
  geoip
16
17
  end
17
18
 
@@ -1,3 +1,3 @@
1
1
  module Sgeoip
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sgeoip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-25 00:00:00.000000000 Z
12
+ date: 2012-12-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri