geokit 1.6.0 → 1.6.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +7 -21
- data/lib/geokit.rb +1 -2
- data/lib/geokit/geocoders.rb +219 -194
- data/lib/geokit/mappable.rb +98 -89
- data/test/test_base_geocoder.rb +11 -11
- data/test/test_bounds.rb +22 -22
- data/test/test_ca_geocoder.rb +17 -17
- data/test/test_geoloc.rb +15 -15
- data/test/test_geoplugin_geocoder.rb +5 -5
- data/test/test_google_geocoder.rb +30 -30
- data/test/test_google_geocoder3.rb +107 -86
- data/test/test_google_reverse_geocoder.rb +16 -16
- data/test/test_inflector.rb +3 -3
- data/test/test_ipgeocoder.rb +13 -13
- data/test/test_latlng.rb +48 -36
- data/test/test_multi_geocoder.rb +17 -17
- data/test/test_multi_ip_geocoder.rb +5 -5
- data/test/test_us_geocoder.rb +17 -17
- data/test/test_yahoo_geocoder.rb +27 -31
- metadata +29 -38
- data/History.txt +0 -77
- data/Manifest.txt +0 -21
- data/geokit.gemspec +0 -38
metadata
CHANGED
@@ -1,97 +1,87 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geokit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 5
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 1.6.
|
9
|
+
- 5
|
10
|
+
version: 1.6.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
|
-
- Andre Lewis
|
13
|
+
- James Cox, Andre Lewis & Bill Eisenhauer
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
19
|
-
default_executable:
|
18
|
+
date: 2012-01-23 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
|
-
name:
|
21
|
+
name: multi_json
|
23
22
|
prerelease: false
|
24
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
24
|
none: false
|
26
25
|
requirements:
|
27
26
|
- - ">="
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
28
|
+
hash: 3
|
30
29
|
segments:
|
31
|
-
- 2
|
32
30
|
- 0
|
33
|
-
|
34
|
-
|
35
|
-
type: :development
|
31
|
+
version: "0"
|
32
|
+
type: :runtime
|
36
33
|
version_requirements: *id001
|
37
34
|
- !ruby/object:Gem::Dependency
|
38
|
-
name:
|
35
|
+
name: rake
|
39
36
|
prerelease: false
|
40
37
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
38
|
none: false
|
42
39
|
requirements:
|
43
40
|
- - ">="
|
44
41
|
- !ruby/object:Gem::Version
|
45
|
-
hash:
|
42
|
+
hash: 3
|
46
43
|
segments:
|
47
|
-
-
|
48
|
-
|
49
|
-
- 1
|
50
|
-
version: 2.6.1
|
44
|
+
- 0
|
45
|
+
version: "0"
|
51
46
|
type: :development
|
52
47
|
version_requirements: *id002
|
53
|
-
description:
|
48
|
+
description: Geokit provides geocoding and distance calculation in an easy-to-use API
|
54
49
|
email:
|
55
|
-
-
|
50
|
+
- james+geokit@imaj.es
|
56
51
|
executables: []
|
57
52
|
|
58
53
|
extensions: []
|
59
54
|
|
60
55
|
extra_rdoc_files:
|
61
|
-
-
|
62
|
-
- Manifest.txt
|
56
|
+
- README.markdown
|
63
57
|
files:
|
64
|
-
- History.txt
|
65
|
-
- Manifest.txt
|
66
58
|
- README.markdown
|
67
59
|
- Rakefile
|
68
|
-
- geokit.gemspec
|
69
|
-
- lib/geokit.rb
|
70
60
|
- lib/geokit/geocoders.rb
|
61
|
+
- lib/geokit.rb
|
71
62
|
- lib/geokit/mappable.rb
|
72
63
|
- test/test_base_geocoder.rb
|
73
64
|
- test/test_bounds.rb
|
74
65
|
- test/test_ca_geocoder.rb
|
75
66
|
- test/test_geoloc.rb
|
76
|
-
- test/
|
67
|
+
- test/test_google_geocoder3.rb
|
77
68
|
- test/test_google_geocoder.rb
|
78
|
-
- test/test_google_reverse_geocoder.rb
|
79
|
-
- test/test_inflector.rb
|
80
|
-
- test/test_ipgeocoder.rb
|
81
69
|
- test/test_latlng.rb
|
82
70
|
- test/test_multi_geocoder.rb
|
83
71
|
- test/test_us_geocoder.rb
|
84
72
|
- test/test_yahoo_geocoder.rb
|
85
|
-
- test/
|
73
|
+
- test/test_geoplugin_geocoder.rb
|
74
|
+
- test/test_google_reverse_geocoder.rb
|
75
|
+
- test/test_inflector.rb
|
76
|
+
- test/test_ipgeocoder.rb
|
86
77
|
- test/test_multi_ip_geocoder.rb
|
87
|
-
|
88
|
-
homepage:
|
78
|
+
homepage: https://github.com/imajes/geokit-gem
|
89
79
|
licenses: []
|
90
80
|
|
91
81
|
post_install_message:
|
92
82
|
rdoc_options:
|
93
83
|
- --main
|
94
|
-
- README.
|
84
|
+
- README.markdown
|
95
85
|
require_paths:
|
96
86
|
- lib
|
97
87
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -115,18 +105,18 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
105
|
requirements: []
|
116
106
|
|
117
107
|
rubyforge_project: geokit
|
118
|
-
rubygems_version: 1.
|
108
|
+
rubygems_version: 1.8.15
|
119
109
|
signing_key:
|
120
110
|
specification_version: 3
|
121
|
-
summary: Geokit
|
111
|
+
summary: "Geokit: encoding and distance calculation gem"
|
122
112
|
test_files:
|
123
113
|
- test/test_base_geocoder.rb
|
124
114
|
- test/test_bounds.rb
|
125
115
|
- test/test_ca_geocoder.rb
|
126
116
|
- test/test_geoloc.rb
|
127
117
|
- test/test_geoplugin_geocoder.rb
|
128
|
-
- test/test_google_geocoder.rb
|
129
118
|
- test/test_google_geocoder3.rb
|
119
|
+
- test/test_google_geocoder.rb
|
130
120
|
- test/test_google_reverse_geocoder.rb
|
131
121
|
- test/test_inflector.rb
|
132
122
|
- test/test_ipgeocoder.rb
|
@@ -135,3 +125,4 @@ test_files:
|
|
135
125
|
- test/test_multi_ip_geocoder.rb
|
136
126
|
- test/test_us_geocoder.rb
|
137
127
|
- test/test_yahoo_geocoder.rb
|
128
|
+
has_rdoc: true
|
data/History.txt
DELETED
@@ -1,77 +0,0 @@
|
|
1
|
-
=== 1.5.0 / 2009-09-21
|
2
|
-
* fixed jruby compatibility (thanks manalang)
|
3
|
-
* added country name to Google reverse geocoder (thanks joahking)
|
4
|
-
* added DependentLocalityName as district, and SubAdministrativeAreaName as province (google geocoder only)
|
5
|
-
* Google geocoder throws an error if you exceed geocoding rates (thanks drogus)
|
6
|
-
|
7
|
-
=== 1.4.1 / 2009-06-15
|
8
|
-
* Fixed Ruby 1.9.1 compat and load order (thanks Niels Ganser)
|
9
|
-
|
10
|
-
=== 1.4.0 / 2009-05-27
|
11
|
-
* Added country code/viewport biasing to GoogleGeocoder. Added Bounds#to_span method
|
12
|
-
* Added suggested_bounds (Geokit::Bounds) property to GeoLoc. (Google geocoder only)
|
13
|
-
* Added LatLng#reverse_geocode convenience method (thanks Tisho Georgiev for all three)
|
14
|
-
|
15
|
-
=== 1.3.2 / 2009-05-27
|
16
|
-
* Fixed blank address geocoding bug
|
17
|
-
|
18
|
-
=== 1.3.1 / 2009-05-21
|
19
|
-
* Support for External geocoders file (thanks dreamcat4)
|
20
|
-
* Support multiple ip geocoders, including new setting for ip_provider_order (thanks dreamcat4)
|
21
|
-
|
22
|
-
=== 1.3.0 / 2009-04-11
|
23
|
-
* Added capability to define multiple API keys for different domains that may be pointing to the same application (thanks Glenn Powell)
|
24
|
-
* Added numeric accuracy accessor for Yahoo and Google geocoders (thanks Andrew Fecheyr Lippens)
|
25
|
-
* Implement #hash and #eql? on LatLng to allow for using it as a hash key (thanks Luke Melia and Ross Kaffenberger)
|
26
|
-
*
|
27
|
-
|
28
|
-
=== 1.2.6 / 2009-03-19
|
29
|
-
* misc minor fixes
|
30
|
-
|
31
|
-
=== 1.2.5 / 2009-02-25
|
32
|
-
|
33
|
-
* fixed GeoLoc.to_yaml
|
34
|
-
* fixed minor google geocoding bug
|
35
|
-
* now periodically publishing the Geokit gem to Rubyforge. Still maintaining development and managing contributions at Github
|
36
|
-
|
37
|
-
=== 1.2.4 / 2009-02-25
|
38
|
-
|
39
|
-
* Improved Google geocoder in the Gem: Support for multiple geocoding results from the Google geocoder. (thanks github/pic)
|
40
|
-
|
41
|
-
=== 1.2.3 / 2009-02-01
|
42
|
-
|
43
|
-
* Adding GeoPluginGeocoder for IP geocoding (thanks github/xjunior)
|
44
|
-
* Ruby 1.9.1 compatibility and Unicode fixes (thanks github/Nielsomat)
|
45
|
-
* various bug fixes
|
46
|
-
|
47
|
-
=== 1.2.1 / 2009-01-05
|
48
|
-
|
49
|
-
* minor bug fixes
|
50
|
-
* reverse geocoding added (Google only): res=Geokit::Geocoders::GoogleGeocoder.reverse_geocode "37.791821,-122.394679"
|
51
|
-
* nautical miles added (in addition to miles and KM)
|
52
|
-
|
53
|
-
=== 1.2.0 / 2008-12-01
|
54
|
-
|
55
|
-
* Improved Geocoder.us support -- respects authentication, and can geocode city names or zipcodes alone
|
56
|
-
* cross-meridian finds work correctly with bounds conditions
|
57
|
-
* fixed a problem with columns with "distance" in their name
|
58
|
-
* added Geonames geocoder
|
59
|
-
* the gem and plugin are now hosted at Github.
|
60
|
-
|
61
|
-
=== 1.1.1 / 2008-01-20
|
62
|
-
* fixes for distance calculation (in-memory and database) when distances are either very small or 0.
|
63
|
-
* NOTE: older versions of MySQL/Postgres may not work. See readme for more info.
|
64
|
-
|
65
|
-
=== 1.1.0 / 2007-12-07
|
66
|
-
* Geokit is now Rails 2.0 / Edge friendly.
|
67
|
-
|
68
|
-
=== 1.0.0 / 2007-07-22
|
69
|
-
* see http://earthcode.com/blog/2007/07/new_geokit_release.html
|
70
|
-
* auto geocoding: an option to automatically geocode a model's address field on create
|
71
|
-
* in-memory sort-by-distance for arrays of location objects
|
72
|
-
* bounding box queries: `Location.find :all, :bounds=>[sw,ne]`
|
73
|
-
* improved performance by automatically adding a bounding box condition to radial queries
|
74
|
-
* new Bounds class for in-memory bounds-related operations
|
75
|
-
* ability to calculate heading and midpoint between two points
|
76
|
-
* ability to calculate endpoint given a point, heading, and distance
|
77
|
-
|
data/Manifest.txt
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
History.txt
|
2
|
-
Manifest.txt
|
3
|
-
README.markdown
|
4
|
-
Rakefile
|
5
|
-
geokit.gemspec
|
6
|
-
lib/geokit.rb
|
7
|
-
lib/geokit/geocoders.rb
|
8
|
-
lib/geokit/mappable.rb
|
9
|
-
test/test_base_geocoder.rb
|
10
|
-
test/test_bounds.rb
|
11
|
-
test/test_ca_geocoder.rb
|
12
|
-
test/test_geoloc.rb
|
13
|
-
test/test_geoplugin_geocoder.rb
|
14
|
-
test/test_google_geocoder.rb
|
15
|
-
test/test_google_reverse_geocoder.rb
|
16
|
-
test/test_inflector.rb
|
17
|
-
test/test_ipgeocoder.rb
|
18
|
-
test/test_latlng.rb
|
19
|
-
test/test_multi_geocoder.rb
|
20
|
-
test/test_us_geocoder.rb
|
21
|
-
test/test_yahoo_geocoder.rb
|
data/geokit.gemspec
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
|
-
Gem::Specification.new do |s|
|
4
|
-
s.name = %q{geokit}
|
5
|
-
s.version = "1.6.0"
|
6
|
-
|
7
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
-
s.authors = ["Andre Lewis and Bill Eisenhauer"]
|
9
|
-
s.date = %q{2009-08-02}
|
10
|
-
s.description = %q{Geokit Gem}
|
11
|
-
s.email = ["andre@earthcode.com / bill_eisenhauer@yahoo.com"]
|
12
|
-
s.extra_rdoc_files = ["Manifest.txt", "README.markdown"]
|
13
|
-
s.files = ["Manifest.txt", "README.markdown", "Rakefile", "lib/geokit/geocoders.rb", "lib/geokit.rb",
|
14
|
-
"lib/geokit/mappable.rb", "test/test_base_geocoder.rb", "test/test_bounds.rb",
|
15
|
-
"test/test_ca_geocoder.rb", "test/test_geoloc.rb", "test/test_google_geocoder3.rb",
|
16
|
-
"test/test_google_geocoder.rb", "test/test_latlng.rb", "test/test_multi_geocoder.rb",
|
17
|
-
"test/test_us_geocoder.rb", "test/test_yahoo_geocoder.rb"
|
18
|
-
]
|
19
|
-
s.has_rdoc = true
|
20
|
-
s.homepage = %q{http://geokit.rubyforge.org}
|
21
|
-
s.rdoc_options = ["--main", "README.markdown"]
|
22
|
-
s.require_paths = ["lib"]
|
23
|
-
s.rubyforge_project = %q{geokit}
|
24
|
-
s.rubygems_version = %q{1.3.5}
|
25
|
-
s.summary = %q{none}
|
26
|
-
s.test_files = [
|
27
|
-
"test/test_base_geocoder.rb", "test/test_bounds.rb", "test/test_ca_geocoder.rb",
|
28
|
-
"test/test_geoloc.rb", "test/test_geoplugin_geocoder.rb", "test/test_google_geocoder3.rb",
|
29
|
-
"test/test_google_geocoder.rb", "test/test_google_reverse_geocoder.rb", "test/test_inflector.rb",
|
30
|
-
"test/test_ipgeocoder.rb", "test/test_latlng.rb", "test/test_multi_geocoder.rb",
|
31
|
-
"test/test_multi_ip_geocoder.rb", "test/test_us_geocoder.rb", "test/test_yahoo_geocoder.rb"
|
32
|
-
]
|
33
|
-
if s.respond_to? :specification_version then
|
34
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
35
|
-
s.specification_version = 2
|
36
|
-
end
|
37
|
-
s.add_dependency(%q{json_pure})
|
38
|
-
end
|