geoip-c 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/geoip.c +3 -1
- metadata +24 -39
data/Rakefile
CHANGED
data/geoip.c
CHANGED
@@ -124,8 +124,10 @@ VALUE rb_city_record_to_hash(GeoIPRecord *record)
|
|
124
124
|
rb_hash_sset(hash, "country_code3", encode_to_utf8_and_return_rb_str(record->country_code3));
|
125
125
|
if(record->country_name)
|
126
126
|
rb_hash_sset(hash, "country_name", encode_to_utf8_and_return_rb_str(record->country_name));
|
127
|
-
if(record->region)
|
127
|
+
if(record->region) {
|
128
128
|
rb_hash_sset(hash, "region", encode_to_utf8_and_return_rb_str(record->region));
|
129
|
+
rb_hash_sset(hash, "region_name", encode_to_utf8_and_return_rb_str(GeoIP_region_name_by_code(record->country_code, record->region)));
|
130
|
+
}
|
129
131
|
if(record->city)
|
130
132
|
rb_hash_sset(hash, "city", encode_to_utf8_and_return_rb_str(record->city));
|
131
133
|
if(record->postal_code)
|
metadata
CHANGED
@@ -1,70 +1,55 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: geoip-c
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 8
|
8
|
-
- 0
|
9
|
-
version: 0.8.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.8.1
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Ryah Dahl
|
13
9
|
- Matt Todd
|
14
10
|
- Andy Lindeman
|
15
11
|
autorequire:
|
16
12
|
bindir: bin
|
17
13
|
cert_chain: []
|
18
|
-
|
19
|
-
date: 2011-10-03 00:00:00 -04:00
|
20
|
-
default_executable:
|
14
|
+
date: 2012-04-11 00:00:00.000000000 Z
|
21
15
|
dependencies: []
|
22
|
-
|
23
16
|
description: Generic GeoIP lookup tool. Based on the geoip_city RubyGem by Ryah Dahl
|
24
|
-
email:
|
17
|
+
email:
|
25
18
|
- alindeman@gmail.com
|
26
19
|
- mtodd@highgroove.com
|
27
20
|
executables: []
|
28
|
-
|
29
|
-
extensions:
|
21
|
+
extensions:
|
30
22
|
- extconf.rb
|
31
23
|
extra_rdoc_files: []
|
32
|
-
|
33
|
-
files:
|
24
|
+
files:
|
34
25
|
- Rakefile
|
35
26
|
- extconf.rb
|
36
27
|
- test.rb
|
37
28
|
- geoip.c
|
38
29
|
- README.md
|
39
|
-
has_rdoc: true
|
40
30
|
homepage: http://github.com/mtodd/geoip
|
41
31
|
licenses: []
|
42
|
-
|
43
32
|
post_install_message:
|
44
33
|
rdoc_options: []
|
45
|
-
|
46
|
-
require_paths:
|
34
|
+
require_paths:
|
47
35
|
- .
|
48
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
requirements:
|
57
|
-
- -
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
|
60
|
-
- 0
|
61
|
-
version: "0"
|
36
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
37
|
+
none: false
|
38
|
+
requirements:
|
39
|
+
- - ! '>='
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
43
|
+
none: false
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
62
48
|
requirements: []
|
63
|
-
|
64
49
|
rubyforge_project:
|
65
|
-
rubygems_version: 1.
|
50
|
+
rubygems_version: 1.8.15
|
66
51
|
signing_key:
|
67
52
|
specification_version: 3
|
68
53
|
summary: A Binding to the GeoIP C library
|
69
|
-
test_files:
|
54
|
+
test_files:
|
70
55
|
- test.rb
|