geoip 0.8.8 → 0.8.9
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.
- data/lib/geoip.rb +3 -1
- metadata +4 -4
data/lib/geoip.rb
CHANGED
|
@@ -50,7 +50,7 @@ rescue LoadError
|
|
|
50
50
|
end
|
|
51
51
|
|
|
52
52
|
class GeoIP
|
|
53
|
-
VERSION = "0.8.
|
|
53
|
+
VERSION = "0.8.9"
|
|
54
54
|
private
|
|
55
55
|
CountryCode = [
|
|
56
56
|
"--","AP","EU","AD","AE","AF","AG","AI","AL","AM","AN",
|
|
@@ -782,6 +782,8 @@ class GeoIP
|
|
|
782
782
|
# Get the city:
|
|
783
783
|
city = spl[1]
|
|
784
784
|
@iter_pos += (city.size + 1) unless @iter_pos.nil?
|
|
785
|
+
# set the correct encoding in ruby 1.9 compatible environments:
|
|
786
|
+
city.force_encoding('iso-8859-1') if city.respond_to?(:force_encoding)
|
|
785
787
|
|
|
786
788
|
# Get the postal code:
|
|
787
789
|
postal_code = spl[2]
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: geoip
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 45
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 8
|
|
9
|
-
-
|
|
10
|
-
version: 0.8.
|
|
9
|
+
- 9
|
|
10
|
+
version: 0.8.9
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Clifford Heath
|
|
@@ -16,7 +16,7 @@ autorequire:
|
|
|
16
16
|
bindir: bin
|
|
17
17
|
cert_chain: []
|
|
18
18
|
|
|
19
|
-
date:
|
|
19
|
+
date: 2011-01-13 00:00:00 +11:00
|
|
20
20
|
default_executable:
|
|
21
21
|
dependencies:
|
|
22
22
|
- !ruby/object:Gem::Dependency
|