geokit 1.7.1 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -14
- data/.travis.yml +1 -0
- data/CHANGELOG.md +11 -0
- data/Gemfile +2 -1
- data/MIT-LICENSE +20 -0
- data/README.markdown +44 -39
- data/Rakefile +15 -0
- data/fixtures/vcr_cassettes/bing_full.yml +102 -0
- data/fixtures/vcr_cassettes/bing_full_au.yml +91 -0
- data/fixtures/vcr_cassettes/bing_full_de.yml +91 -0
- data/fixtures/vcr_cassettes/fcc_reverse_geocode.yml +37 -0
- data/fixtures/vcr_cassettes/free_geo_ip_geocode.yml +36 -0
- data/fixtures/vcr_cassettes/geo_plugin_geocode.yml +38 -0
- data/fixtures/vcr_cassettes/geonames_geocode.yml +304 -0
- data/fixtures/vcr_cassettes/{google3_city.yml → google_city.yml} +0 -0
- data/fixtures/vcr_cassettes/{google3_country_code_biased_result.yml → google_country_code_biased_result.yml} +0 -0
- data/fixtures/vcr_cassettes/{google3_full.yml → google_full.yml} +0 -0
- data/fixtures/vcr_cassettes/{google3_full_short.yml → google_full_short.yml} +0 -0
- data/fixtures/vcr_cassettes/{google3_language_response_fr.yml → google_language_response_fr.yml} +0 -0
- data/fixtures/vcr_cassettes/{google3_multi.yml → google_multi.yml} +0 -0
- data/fixtures/vcr_cassettes/{google3_reverse_madrid.yml → google_reverse_madrid.yml} +0 -0
- data/fixtures/vcr_cassettes/ripe_geocode.yml +66 -0
- data/fixtures/vcr_cassettes/ripe_geocode_au.yml +66 -0
- data/geokit.gemspec +1 -1
- data/lib/geokit.rb +5 -0
- data/lib/geokit/bounds.rb +96 -0
- data/lib/geokit/core_ext.rb +17 -0
- data/lib/geokit/geo_loc.rb +134 -0
- data/lib/geokit/geocoders.rb +48 -35
- data/lib/geokit/geocoders/base_ip.rb +43 -0
- data/lib/geokit/geocoders/bing.rb +101 -0
- data/lib/geokit/geocoders/ca_geocoder.rb +50 -0
- data/lib/geokit/{services → geocoders}/fcc.rb +17 -20
- data/lib/geokit/geocoders/free_geo_ip.rb +34 -0
- data/lib/geokit/geocoders/geo_plugin.rb +33 -0
- data/lib/geokit/geocoders/geonames.rb +53 -0
- data/lib/geokit/{services/google3.rb → geocoders/google.rb} +59 -57
- data/lib/geokit/geocoders/ip.rb +69 -0
- data/lib/geokit/geocoders/mapquest.rb +72 -0
- data/lib/geokit/geocoders/maxmind.rb +29 -0
- data/lib/geokit/geocoders/openstreetmap.rb +119 -0
- data/lib/geokit/geocoders/ripe.rb +41 -0
- data/lib/geokit/{services → geocoders}/us_geocoder.rb +15 -20
- data/lib/geokit/{services → geocoders}/yahoo.rb +52 -55
- data/lib/geokit/geocoders/yandex.rb +61 -0
- data/lib/geokit/inflectors.rb +1 -2
- data/lib/geokit/lat_lng.rb +129 -0
- data/lib/geokit/mappable.rb +41 -424
- data/lib/geokit/multi_geocoder.rb +6 -2
- data/lib/geokit/polygon.rb +46 -0
- data/lib/geokit/version.rb +1 -1
- data/test/helper.rb +2 -12
- data/test/test_base_geocoder.rb +0 -10
- data/test/test_bing_geocoder.rb +60 -0
- data/test/test_fcc_geocoder.rb +23 -0
- data/test/test_free_geo_ip_geocoder.rb +23 -0
- data/test/test_geo_plugin_geocoder.rb +23 -0
- data/test/test_geonames_geocoder.rb +23 -0
- data/test/test_google_geocoder.rb +208 -235
- data/test/test_maxmind_geocoder.rb +35 -4
- data/test/test_multi_geocoder.rb +3 -1
- data/test/test_ripe_geocoder.rb +35 -0
- data/test/test_yahoo_geocoder.rb +0 -12
- metadata +78 -52
- data/LICENSE +0 -25
- data/Manifest.txt +0 -21
- data/data/GeoLiteCity.dat +0 -0
- data/lib/geokit/services/ca_geocoder.rb +0 -55
- data/lib/geokit/services/geo_plugin.rb +0 -31
- data/lib/geokit/services/geonames.rb +0 -53
- data/lib/geokit/services/google.rb +0 -158
- data/lib/geokit/services/ip.rb +0 -103
- data/lib/geokit/services/maxmind.rb +0 -39
- data/lib/geokit/services/openstreetmap.rb +0 -119
- data/lib/geokit/services/ripe.rb +0 -32
- data/lib/geokit/services/yandex.rb +0 -51
- data/test/test_google_geocoder3.rb +0 -238
- data/test/test_google_reverse_geocoder.rb +0 -49
@@ -7,11 +7,42 @@ class MaxmindGeocoderTest < BaseGeocoderTest #:nodoc: all
|
|
7
7
|
@ip = '118.210.47.142'
|
8
8
|
end
|
9
9
|
|
10
|
-
def
|
11
|
-
|
10
|
+
def test_ip_from_autralia
|
11
|
+
location = mock()
|
12
|
+
city = mock()
|
13
|
+
::GeoIP.stubs(:new).with(anything).returns(location)
|
14
|
+
location.expects(:city).with(@ip).returns(city)
|
15
|
+
city.stubs(:latitude).returns(-34.9287)
|
16
|
+
city.stubs(:longitude).returns(138.5986)
|
17
|
+
city.stubs(:city_name).returns('Adelaide')
|
18
|
+
city.stubs(:region_name).returns('Australia')
|
19
|
+
city.stubs(:postal_code).returns('')
|
20
|
+
city.stubs(:country_code2).returns('AU')
|
21
|
+
|
12
22
|
res = Geokit::Geocoders::MaxmindGeocoder.geocode(@ip)
|
13
23
|
assert_equal 'Adelaide', res.city
|
14
|
-
|
24
|
+
assert_equal 'AU', res.country_code
|
25
|
+
assert_equal true, res.success
|
26
|
+
assert res.city
|
27
|
+
end
|
28
|
+
|
29
|
+
def test_ip_from_south_america
|
30
|
+
location = mock()
|
31
|
+
city = mock()
|
32
|
+
::GeoIP.stubs(:new).with(anything).returns(location)
|
33
|
+
location.expects(:city).with(@ip).returns(city)
|
34
|
+
city.stubs(:latitude).returns(-34)
|
35
|
+
city.stubs(:longitude).returns(-56)
|
36
|
+
city.stubs(:city_name).returns('Canelones')
|
37
|
+
city.stubs(:region_name).returns('')
|
38
|
+
city.stubs(:postal_code).returns('')
|
39
|
+
city.stubs(:country_code2).returns('UR')
|
40
|
+
|
41
|
+
res = Geokit::Geocoders::MaxmindGeocoder.geocode(@ip)
|
42
|
+
assert_equal 'Canelones', res.city
|
43
|
+
assert_equal 'UR', res.country_code
|
44
|
+
assert_equal true, res.success
|
45
|
+
assert res.city
|
15
46
|
end
|
16
47
|
|
17
|
-
end
|
48
|
+
end
|
data/test/test_multi_geocoder.rb
CHANGED
@@ -79,7 +79,9 @@ class MultiGeocoderTest < BaseGeocoderTest #:nodoc: all
|
|
79
79
|
def test_reverse_geocode_with_invalid_provider
|
80
80
|
temp = Geokit::Geocoders::provider_order
|
81
81
|
Geokit::Geocoders.provider_order = [:bogus]
|
82
|
-
|
82
|
+
assert_raise NameError do
|
83
|
+
Geokit::Geocoders::MultiGeocoder.reverse_geocode(@latlng)
|
84
|
+
end
|
83
85
|
Geokit::Geocoders.provider_order = temp
|
84
86
|
end
|
85
87
|
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), 'helper')
|
2
|
+
|
3
|
+
class RipeGeocoderTest < BaseGeocoderTest #:nodoc: all
|
4
|
+
def setup
|
5
|
+
super
|
6
|
+
@ip = '74.125.237.209'
|
7
|
+
@ip_au = '118.210.24.54'
|
8
|
+
end
|
9
|
+
|
10
|
+
def assert_url(expected_url)
|
11
|
+
assert_equal expected_url, TestHelper.get_last_url.gsub(/&oauth_[a-z_]+=[a-zA-Z0-9\-. %]+/, '').gsub('%20', '+')
|
12
|
+
end
|
13
|
+
|
14
|
+
def test_ripe_geocode
|
15
|
+
VCR.use_cassette('ripe_geocode') do
|
16
|
+
url = "http://stat.ripe.net/data/geoloc/data.json?resource=#{@ip}"
|
17
|
+
res = Geokit::Geocoders::RipeGeocoder.geocode(@ip)
|
18
|
+
assert_url url
|
19
|
+
assert_equal res.city, 'Mountain View'
|
20
|
+
assert_equal res.state, 'CA'
|
21
|
+
assert_equal res.country_code, 'US'
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
def test_ripe_geocode_au
|
26
|
+
VCR.use_cassette('ripe_geocode_au') do
|
27
|
+
url = "http://stat.ripe.net/data/geoloc/data.json?resource=#{@ip_au}"
|
28
|
+
res = Geokit::Geocoders::RipeGeocoder.geocode(@ip_au)
|
29
|
+
assert_url url
|
30
|
+
assert_equal res.city, 'Adelaide'
|
31
|
+
assert_equal res.state, nil
|
32
|
+
assert_equal res.country_code, 'AU'
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
data/test/test_yahoo_geocoder.rb
CHANGED
@@ -4,18 +4,6 @@ Geokit::Geocoders::yahoo_consumer_key = 'dj0yJmk9cXByQVN2WHZmTVhDJmQ9WVdrOVZscG1
|
|
4
4
|
Geokit::Geocoders::yahoo_consumer_secret = 'SECRET'
|
5
5
|
|
6
6
|
class YahooGeocoderTest < BaseGeocoderTest #:nodoc: all
|
7
|
-
YAHOO_FULL=<<-EOF.strip
|
8
|
-
{"ResultSet":{"version":"1.0","Error":0,"ErrorMessage":"No error","Locale":"us_US","Quality":87,"Found":1,"Results":[{"quality":87,"latitude":"37.792406","longitude":"-122.39411","offsetlat":"37.792332","offsetlon":"-122.394027","radius":500,"name":"","line1":"100 Spear St","line2":"San Francisco, CA 94105-1522","line3":"","line4":"United States","house":"100","street":"Spear St","xstreet":"","unittype":"","unit":"","postal":"94105-1522","neighborhood":"","city":"San Francisco","county":"San Francisco County","state":"California","country":"United States","countrycode":"US","statecode":"CA","countycode":"","uzip":"94105","hash":"0FA06819B5F53E75","woeid":12797156,"woetype":11}]}}
|
9
|
-
EOF
|
10
|
-
|
11
|
-
YAHOO_CITY=<<-EOF.strip
|
12
|
-
{"ResultSet":{"version":"1.0","Error":0,"ErrorMessage":"No error","Locale":"us_US","Quality":40,"Found":1,"Results":[{"quality":40,"latitude":"37.7742","longitude":"-122.417068","offsetlat":"37.7742","offsetlon":"-122.417068","radius":10700,"name":"","line1":"","line2":"San Francisco, CA","line3":"","line4":"United States","house":"","street":"","xstreet":"","unittype":"","unit":"","postal":"","neighborhood":"","city":"San Francisco","county":"San Francisco County","state":"California","country":"United States","countrycode":"US","statecode":"CA","countycode":"","uzip":"94102","hash":"","woeid":2487956,"woetype":7}]}}
|
13
|
-
EOF
|
14
|
-
|
15
|
-
YAHOO_NO_RESULTS=<<-EOF.strip
|
16
|
-
{"ResultSet":{"version":"1.0","Error":0,"ErrorMessage":"No error","Locale":"us_US","Quality":10,"Found":0}}
|
17
|
-
EOF
|
18
|
-
|
19
7
|
def setup
|
20
8
|
super
|
21
9
|
@yahoo_full_hash = {:street_address=>"100 Spear St", :city=>"San Francisco", :state=>"CA", :zip=>"94105-1522", :country_code=>"US"}
|
metadata
CHANGED
@@ -1,139 +1,142 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geokit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Michael Noack
|
7
|
+
- Michael Noack
|
8
|
+
- James Cox
|
9
|
+
- Andre Lewis
|
10
|
+
- Bill Eisenhauer
|
8
11
|
autorequire:
|
9
12
|
bindir: bin
|
10
13
|
cert_chain: []
|
11
|
-
date: 2013-
|
14
|
+
date: 2013-12-26 00:00:00.000000000 Z
|
12
15
|
dependencies:
|
13
16
|
- !ruby/object:Gem::Dependency
|
14
17
|
name: multi_json
|
15
18
|
requirement: !ruby/object:Gem::Requirement
|
16
19
|
requirements:
|
17
|
-
- -
|
20
|
+
- - '>='
|
18
21
|
- !ruby/object:Gem::Version
|
19
22
|
version: 1.3.2
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- -
|
27
|
+
- - '>='
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: 1.3.2
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: bundler
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
30
33
|
requirements:
|
31
|
-
- -
|
34
|
+
- - '>'
|
32
35
|
- !ruby/object:Gem::Version
|
33
36
|
version: '1.0'
|
34
37
|
type: :development
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
|
-
- -
|
41
|
+
- - '>'
|
39
42
|
- !ruby/object:Gem::Version
|
40
43
|
version: '1.0'
|
41
44
|
- !ruby/object:Gem::Dependency
|
42
45
|
name: simplecov
|
43
46
|
requirement: !ruby/object:Gem::Requirement
|
44
47
|
requirements:
|
45
|
-
- -
|
48
|
+
- - '>='
|
46
49
|
- !ruby/object:Gem::Version
|
47
50
|
version: '0'
|
48
51
|
type: :development
|
49
52
|
prerelease: false
|
50
53
|
version_requirements: !ruby/object:Gem::Requirement
|
51
54
|
requirements:
|
52
|
-
- -
|
55
|
+
- - '>='
|
53
56
|
- !ruby/object:Gem::Version
|
54
57
|
version: '0'
|
55
58
|
- !ruby/object:Gem::Dependency
|
56
59
|
name: simplecov-rcov
|
57
60
|
requirement: !ruby/object:Gem::Requirement
|
58
61
|
requirements:
|
59
|
-
- -
|
62
|
+
- - '>='
|
60
63
|
- !ruby/object:Gem::Version
|
61
64
|
version: '0'
|
62
65
|
type: :development
|
63
66
|
prerelease: false
|
64
67
|
version_requirements: !ruby/object:Gem::Requirement
|
65
68
|
requirements:
|
66
|
-
- -
|
69
|
+
- - '>='
|
67
70
|
- !ruby/object:Gem::Version
|
68
71
|
version: '0'
|
69
72
|
- !ruby/object:Gem::Dependency
|
70
73
|
name: rake
|
71
74
|
requirement: !ruby/object:Gem::Requirement
|
72
75
|
requirements:
|
73
|
-
- -
|
76
|
+
- - '>='
|
74
77
|
- !ruby/object:Gem::Version
|
75
78
|
version: '0'
|
76
79
|
type: :development
|
77
80
|
prerelease: false
|
78
81
|
version_requirements: !ruby/object:Gem::Requirement
|
79
82
|
requirements:
|
80
|
-
- -
|
83
|
+
- - '>='
|
81
84
|
- !ruby/object:Gem::Version
|
82
85
|
version: '0'
|
83
86
|
- !ruby/object:Gem::Dependency
|
84
87
|
name: mocha
|
85
88
|
requirement: !ruby/object:Gem::Requirement
|
86
89
|
requirements:
|
87
|
-
- -
|
90
|
+
- - '>='
|
88
91
|
- !ruby/object:Gem::Version
|
89
92
|
version: '0'
|
90
93
|
type: :development
|
91
94
|
prerelease: false
|
92
95
|
version_requirements: !ruby/object:Gem::Requirement
|
93
96
|
requirements:
|
94
|
-
- -
|
97
|
+
- - '>='
|
95
98
|
- !ruby/object:Gem::Version
|
96
99
|
version: '0'
|
97
100
|
- !ruby/object:Gem::Dependency
|
98
101
|
name: coveralls
|
99
102
|
requirement: !ruby/object:Gem::Requirement
|
100
103
|
requirements:
|
101
|
-
- -
|
104
|
+
- - '>='
|
102
105
|
- !ruby/object:Gem::Version
|
103
106
|
version: '0'
|
104
107
|
type: :development
|
105
108
|
prerelease: false
|
106
109
|
version_requirements: !ruby/object:Gem::Requirement
|
107
110
|
requirements:
|
108
|
-
- -
|
111
|
+
- - '>='
|
109
112
|
- !ruby/object:Gem::Version
|
110
113
|
version: '0'
|
111
114
|
- !ruby/object:Gem::Dependency
|
112
115
|
name: vcr
|
113
116
|
requirement: !ruby/object:Gem::Requirement
|
114
117
|
requirements:
|
115
|
-
- -
|
118
|
+
- - '>='
|
116
119
|
- !ruby/object:Gem::Version
|
117
120
|
version: '0'
|
118
121
|
type: :development
|
119
122
|
prerelease: false
|
120
123
|
version_requirements: !ruby/object:Gem::Requirement
|
121
124
|
requirements:
|
122
|
-
- -
|
125
|
+
- - '>='
|
123
126
|
- !ruby/object:Gem::Version
|
124
127
|
version: '0'
|
125
128
|
- !ruby/object:Gem::Dependency
|
126
129
|
name: webmock
|
127
130
|
requirement: !ruby/object:Gem::Requirement
|
128
131
|
requirements:
|
129
|
-
- -
|
132
|
+
- - '>='
|
130
133
|
- !ruby/object:Gem::Version
|
131
134
|
version: '0'
|
132
135
|
type: :development
|
133
136
|
prerelease: false
|
134
137
|
version_requirements: !ruby/object:Gem::Requirement
|
135
138
|
requirements:
|
136
|
-
- -
|
139
|
+
- - '>='
|
137
140
|
- !ruby/object:Gem::Version
|
138
141
|
version: '0'
|
139
142
|
description: Geokit provides geocoding and distance calculation in an easy-to-use
|
@@ -149,50 +152,68 @@ files:
|
|
149
152
|
- .travis.yml
|
150
153
|
- CHANGELOG.md
|
151
154
|
- Gemfile
|
152
|
-
- LICENSE
|
153
|
-
- Manifest.txt
|
155
|
+
- MIT-LICENSE
|
154
156
|
- README.markdown
|
155
157
|
- Rakefile
|
156
|
-
-
|
157
|
-
- fixtures/vcr_cassettes/
|
158
|
-
- fixtures/vcr_cassettes/
|
159
|
-
- fixtures/vcr_cassettes/
|
160
|
-
- fixtures/vcr_cassettes/
|
161
|
-
- fixtures/vcr_cassettes/
|
162
|
-
- fixtures/vcr_cassettes/
|
163
|
-
- fixtures/vcr_cassettes/
|
158
|
+
- fixtures/vcr_cassettes/bing_full.yml
|
159
|
+
- fixtures/vcr_cassettes/bing_full_au.yml
|
160
|
+
- fixtures/vcr_cassettes/bing_full_de.yml
|
161
|
+
- fixtures/vcr_cassettes/fcc_reverse_geocode.yml
|
162
|
+
- fixtures/vcr_cassettes/free_geo_ip_geocode.yml
|
163
|
+
- fixtures/vcr_cassettes/geo_plugin_geocode.yml
|
164
|
+
- fixtures/vcr_cassettes/geonames_geocode.yml
|
165
|
+
- fixtures/vcr_cassettes/google_city.yml
|
166
|
+
- fixtures/vcr_cassettes/google_country_code_biased_result.yml
|
167
|
+
- fixtures/vcr_cassettes/google_full.yml
|
168
|
+
- fixtures/vcr_cassettes/google_full_short.yml
|
169
|
+
- fixtures/vcr_cassettes/google_language_response_fr.yml
|
170
|
+
- fixtures/vcr_cassettes/google_multi.yml
|
171
|
+
- fixtures/vcr_cassettes/google_reverse_madrid.yml
|
172
|
+
- fixtures/vcr_cassettes/ripe_geocode.yml
|
173
|
+
- fixtures/vcr_cassettes/ripe_geocode_au.yml
|
164
174
|
- fixtures/vcr_cassettes/yahoo_city.yml
|
165
175
|
- fixtures/vcr_cassettes/yahoo_full.yml
|
166
176
|
- fixtures/vcr_cassettes/yahoo_no_results.yml
|
167
177
|
- geokit.gemspec
|
168
178
|
- lib/geokit.rb
|
179
|
+
- lib/geokit/bounds.rb
|
180
|
+
- lib/geokit/core_ext.rb
|
181
|
+
- lib/geokit/geo_loc.rb
|
169
182
|
- lib/geokit/geocoders.rb
|
183
|
+
- lib/geokit/geocoders/base_ip.rb
|
184
|
+
- lib/geokit/geocoders/bing.rb
|
185
|
+
- lib/geokit/geocoders/ca_geocoder.rb
|
186
|
+
- lib/geokit/geocoders/fcc.rb
|
187
|
+
- lib/geokit/geocoders/free_geo_ip.rb
|
188
|
+
- lib/geokit/geocoders/geo_plugin.rb
|
189
|
+
- lib/geokit/geocoders/geonames.rb
|
190
|
+
- lib/geokit/geocoders/google.rb
|
191
|
+
- lib/geokit/geocoders/ip.rb
|
192
|
+
- lib/geokit/geocoders/mapquest.rb
|
193
|
+
- lib/geokit/geocoders/maxmind.rb
|
194
|
+
- lib/geokit/geocoders/openstreetmap.rb
|
195
|
+
- lib/geokit/geocoders/ripe.rb
|
196
|
+
- lib/geokit/geocoders/us_geocoder.rb
|
197
|
+
- lib/geokit/geocoders/yahoo.rb
|
198
|
+
- lib/geokit/geocoders/yandex.rb
|
170
199
|
- lib/geokit/inflectors.rb
|
200
|
+
- lib/geokit/lat_lng.rb
|
171
201
|
- lib/geokit/mappable.rb
|
172
202
|
- lib/geokit/multi_geocoder.rb
|
173
|
-
- lib/geokit/
|
174
|
-
- lib/geokit/services/fcc.rb
|
175
|
-
- lib/geokit/services/geo_plugin.rb
|
176
|
-
- lib/geokit/services/geonames.rb
|
177
|
-
- lib/geokit/services/google.rb
|
178
|
-
- lib/geokit/services/google3.rb
|
179
|
-
- lib/geokit/services/ip.rb
|
180
|
-
- lib/geokit/services/maxmind.rb
|
181
|
-
- lib/geokit/services/openstreetmap.rb
|
182
|
-
- lib/geokit/services/ripe.rb
|
183
|
-
- lib/geokit/services/us_geocoder.rb
|
184
|
-
- lib/geokit/services/yahoo.rb
|
185
|
-
- lib/geokit/services/yandex.rb
|
203
|
+
- lib/geokit/polygon.rb
|
186
204
|
- lib/geokit/version.rb
|
187
205
|
- test/helper.rb
|
188
206
|
- test/test_base_geocoder.rb
|
207
|
+
- test/test_bing_geocoder.rb
|
189
208
|
- test/test_bounds.rb
|
190
209
|
- test/test_ca_geocoder.rb
|
210
|
+
- test/test_fcc_geocoder.rb
|
211
|
+
- test/test_free_geo_ip_geocoder.rb
|
212
|
+
- test/test_geo_plugin_geocoder.rb
|
191
213
|
- test/test_geoloc.rb
|
214
|
+
- test/test_geonames_geocoder.rb
|
192
215
|
- test/test_geoplugin_geocoder.rb
|
193
216
|
- test/test_google_geocoder.rb
|
194
|
-
- test/test_google_geocoder3.rb
|
195
|
-
- test/test_google_reverse_geocoder.rb
|
196
217
|
- test/test_inflector.rb
|
197
218
|
- test/test_ipgeocoder.rb
|
198
219
|
- test/test_latlng.rb
|
@@ -201,6 +222,7 @@ files:
|
|
201
222
|
- test/test_multi_ip_geocoder.rb
|
202
223
|
- test/test_openstreetmap_geocoder.rb
|
203
224
|
- test/test_polygon_contains.rb
|
225
|
+
- test/test_ripe_geocoder.rb
|
204
226
|
- test/test_us_geocoder.rb
|
205
227
|
- test/test_yahoo_geocoder.rb
|
206
228
|
- test/test_yandex_geocoder.rb
|
@@ -216,30 +238,33 @@ require_paths:
|
|
216
238
|
- lib
|
217
239
|
required_ruby_version: !ruby/object:Gem::Requirement
|
218
240
|
requirements:
|
219
|
-
- -
|
241
|
+
- - '>='
|
220
242
|
- !ruby/object:Gem::Version
|
221
243
|
version: '0'
|
222
244
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
223
245
|
requirements:
|
224
|
-
- -
|
246
|
+
- - '>='
|
225
247
|
- !ruby/object:Gem::Version
|
226
248
|
version: '0'
|
227
249
|
requirements: []
|
228
250
|
rubyforge_project:
|
229
|
-
rubygems_version: 2.
|
251
|
+
rubygems_version: 2.1.11
|
230
252
|
signing_key:
|
231
253
|
specification_version: 4
|
232
|
-
summary:
|
254
|
+
summary: 'Geokit: encoding and distance calculation gem'
|
233
255
|
test_files:
|
234
256
|
- test/helper.rb
|
235
257
|
- test/test_base_geocoder.rb
|
258
|
+
- test/test_bing_geocoder.rb
|
236
259
|
- test/test_bounds.rb
|
237
260
|
- test/test_ca_geocoder.rb
|
261
|
+
- test/test_fcc_geocoder.rb
|
262
|
+
- test/test_free_geo_ip_geocoder.rb
|
263
|
+
- test/test_geo_plugin_geocoder.rb
|
238
264
|
- test/test_geoloc.rb
|
265
|
+
- test/test_geonames_geocoder.rb
|
239
266
|
- test/test_geoplugin_geocoder.rb
|
240
267
|
- test/test_google_geocoder.rb
|
241
|
-
- test/test_google_geocoder3.rb
|
242
|
-
- test/test_google_reverse_geocoder.rb
|
243
268
|
- test/test_inflector.rb
|
244
269
|
- test/test_ipgeocoder.rb
|
245
270
|
- test/test_latlng.rb
|
@@ -248,6 +273,7 @@ test_files:
|
|
248
273
|
- test/test_multi_ip_geocoder.rb
|
249
274
|
- test/test_openstreetmap_geocoder.rb
|
250
275
|
- test/test_polygon_contains.rb
|
276
|
+
- test/test_ripe_geocoder.rb
|
251
277
|
- test/test_us_geocoder.rb
|
252
278
|
- test/test_yahoo_geocoder.rb
|
253
279
|
- test/test_yandex_geocoder.rb
|
data/LICENSE
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
## LICENSE
|
2
|
-
|
3
|
-
(The MIT License)
|
4
|
-
|
5
|
-
Copyright (c) 2012+ James Cox
|
6
|
-
Copyright (c) 2007-2011 Andre Lewis and Bill Eisenhauer
|
7
|
-
|
8
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
9
|
-
a copy of this software and associated documentation files (the
|
10
|
-
'Software'), to deal in the Software without restriction, including
|
11
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
12
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
13
|
-
permit persons to whom the Software is furnished to do so, subject to
|
14
|
-
the following conditions:
|
15
|
-
|
16
|
-
The above copyright notice and this permission notice shall be
|
17
|
-
included in all copies or substantial portions of the Software.
|
18
|
-
|
19
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
20
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
21
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
22
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
23
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
24
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
25
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|