geoip 1.3.4 → 1.3.5
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.
- checksums.yaml +8 -8
- data/geoip.gemspec +3 -3
- data/lib/geoip.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
M2RkZmNiODFiYjM5OTc5ZmNlMzFiYmViMWU1ODVkZjkyY2MzNDZlYw==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
YTY4MjNlNDUzNWFlZTAyZTA3NThhMzFjNzcyODc4MGYzNzk4ZjBmZg==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
MGY4ODA1ZTg4MjYwMDMxNTQ2NDNmMGI3YzRkNzVjMTVkNzBhNGI2NzgxZDI5
|
|
10
|
+
NjY3MzJiYTA4ZmE3NjJhNTY1ZjE0MDlhMjZkNDExZjJmYzIzMzQyZDA1ZDUx
|
|
11
|
+
N2IwNWY3OWMwNzlkYjQ3MGM3YjUxYzE1ZjQzNjI3Zjg1MzAzNDU=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
ZDExNTRiOGY2NjU0OGQyNGFlYWRjNjhhY2MzODg5YWQ3MmE3YTBjNDI3OGM5
|
|
14
|
+
ZjgwODI0M2Y3OWIwOTk3NDYxZGQ1OGI2ZWMxMGIwYzljOTFkMDkwNTJmM2Q2
|
|
15
|
+
YjY5ZjE1NmQyZGUwMDAxMjViMzkxMGEwM2ExYjlkOTNlZDBkOGU=
|
data/geoip.gemspec
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: geoip 1.3.
|
|
5
|
+
# stub: geoip 1.3.5 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "geoip"
|
|
9
|
-
s.version = "1.3.
|
|
9
|
+
s.version = "1.3.5"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.authors = ["Clifford Heath", "Roland Moriz"]
|
|
13
|
-
s.date = "2013-12-
|
|
13
|
+
s.date = "2013-12-20"
|
|
14
14
|
s.description = "GeoIP searches a GeoIP database for a given host or IP address, and\nreturns information about the country where the IP address is allocated,\nand the city, ISP and other information, if you have that database version."
|
|
15
15
|
s.email = ["clifford.heath@gmail.com", "rmoriz@gmail.com"]
|
|
16
16
|
s.executables = ["geoip"]
|
data/lib/geoip.rb
CHANGED
|
@@ -58,7 +58,7 @@ require 'yaml'
|
|
|
58
58
|
class GeoIP
|
|
59
59
|
|
|
60
60
|
# The GeoIP GEM version number
|
|
61
|
-
VERSION = "1.3.
|
|
61
|
+
VERSION = "1.3.5"
|
|
62
62
|
|
|
63
63
|
# The +data/+ directory for geoip
|
|
64
64
|
DATA_DIR = File.expand_path(File.join(File.dirname(__FILE__),'..','data','geoip'))
|
|
@@ -154,7 +154,7 @@ class GeoIP
|
|
|
154
154
|
|
|
155
155
|
end
|
|
156
156
|
|
|
157
|
-
class ISP < Struct.new(:
|
|
157
|
+
class ISP < Struct.new(:isp)
|
|
158
158
|
def to_hash
|
|
159
159
|
Hash[each_pair.to_a]
|
|
160
160
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: geoip
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Clifford Heath
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-12-
|
|
12
|
+
date: 2013-12-20 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: ! 'GeoIP searches a GeoIP database for a given host or IP address, and
|
|
15
15
|
|