CodeMonkeySteve-graticule 0.2.11
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/CHANGELOG.txt +61 -0
- data/LICENSE.txt +30 -0
- data/Manifest.txt +85 -0
- data/README.txt +41 -0
- data/Rakefile +143 -0
- data/VERSION +1 -0
- data/bin/geocode +5 -0
- data/graticule.gemspec +144 -0
- data/init.rb +2 -0
- data/lib/graticule.rb +26 -0
- data/lib/graticule/cli.rb +64 -0
- data/lib/graticule/core_ext.rb +15 -0
- data/lib/graticule/distance.rb +18 -0
- data/lib/graticule/distance/haversine.rb +40 -0
- data/lib/graticule/distance/spherical.rb +52 -0
- data/lib/graticule/distance/vincenty.rb +76 -0
- data/lib/graticule/geocoder.rb +21 -0
- data/lib/graticule/geocoder/base.rb +112 -0
- data/lib/graticule/geocoder/bogus.rb +15 -0
- data/lib/graticule/geocoder/geocoder_ca.rb +54 -0
- data/lib/graticule/geocoder/geocoder_us.rb +51 -0
- data/lib/graticule/geocoder/google.rb +104 -0
- data/lib/graticule/geocoder/host_ip.rb +41 -0
- data/lib/graticule/geocoder/local_search_maps.rb +45 -0
- data/lib/graticule/geocoder/mapquest.rb +87 -0
- data/lib/graticule/geocoder/meta_carta.rb +33 -0
- data/lib/graticule/geocoder/multi.rb +46 -0
- data/lib/graticule/geocoder/multimap.rb +73 -0
- data/lib/graticule/geocoder/postcode_anywhere.rb +63 -0
- data/lib/graticule/geocoder/rest.rb +18 -0
- data/lib/graticule/geocoder/yahoo.rb +84 -0
- data/lib/graticule/location.rb +61 -0
- data/lib/graticule/version.rb +9 -0
- data/site/index.html +114 -0
- data/site/plugin.html +82 -0
- data/site/stylesheets/style.css +69 -0
- data/test/config.yml.default +37 -0
- data/test/fixtures/responses/geocoder_us/success.xml +18 -0
- data/test/fixtures/responses/geocoder_us/unknown.xml +1 -0
- data/test/fixtures/responses/google/badkey.xml +1 -0
- data/test/fixtures/responses/google/limit.xml +10 -0
- data/test/fixtures/responses/google/missing_address.xml +1 -0
- data/test/fixtures/responses/google/only_coordinates.xml +1 -0
- data/test/fixtures/responses/google/partial.xml +1 -0
- data/test/fixtures/responses/google/server_error.xml +10 -0
- data/test/fixtures/responses/google/success.xml +1 -0
- data/test/fixtures/responses/google/success_multiple_results.xml +88 -0
- data/test/fixtures/responses/google/success_on_options.xml +16 -0
- data/test/fixtures/responses/google/unavailable.xml +1 -0
- data/test/fixtures/responses/google/unknown_address.xml +1 -0
- data/test/fixtures/responses/host_ip/private.txt +4 -0
- data/test/fixtures/responses/host_ip/success.txt +4 -0
- data/test/fixtures/responses/host_ip/unknown.txt +4 -0
- data/test/fixtures/responses/local_search_maps/empty.txt +1 -0
- data/test/fixtures/responses/local_search_maps/not_found.txt +1 -0
- data/test/fixtures/responses/local_search_maps/success.txt +1 -0
- data/test/fixtures/responses/mapquest/multi_result.xml +1 -0
- data/test/fixtures/responses/mapquest/success.xml +1 -0
- data/test/fixtures/responses/meta_carta/bad_address.xml +17 -0
- data/test/fixtures/responses/meta_carta/multiple.xml +33 -0
- data/test/fixtures/responses/meta_carta/success.xml +31 -0
- data/test/fixtures/responses/multimap/missing_params.xml +4 -0
- data/test/fixtures/responses/multimap/no_matches.xml +4 -0
- data/test/fixtures/responses/multimap/success.xml +19 -0
- data/test/fixtures/responses/postcode_anywhere/badkey.xml +9 -0
- data/test/fixtures/responses/postcode_anywhere/canada.xml +16 -0
- data/test/fixtures/responses/postcode_anywhere/empty.xml +16 -0
- data/test/fixtures/responses/postcode_anywhere/success.xml +16 -0
- data/test/fixtures/responses/postcode_anywhere/uk.xml +18 -0
- data/test/fixtures/responses/yahoo/success.xml +3 -0
- data/test/fixtures/responses/yahoo/unknown_address.xml +6 -0
- data/test/mocks/uri.rb +52 -0
- data/test/test_helper.rb +31 -0
- data/test/unit/graticule/distance_test.rb +58 -0
- data/test/unit/graticule/geocoder/geocoder_us_test.rb +43 -0
- data/test/unit/graticule/geocoder/geocoders.rb +56 -0
- data/test/unit/graticule/geocoder/google_test.rb +127 -0
- data/test/unit/graticule/geocoder/host_ip_test.rb +40 -0
- data/test/unit/graticule/geocoder/local_search_maps_test.rb +30 -0
- data/test/unit/graticule/geocoder/mapquest_test.rb +47 -0
- data/test/unit/graticule/geocoder/meta_carta_test.rb +44 -0
- data/test/unit/graticule/geocoder/multi_test.rb +43 -0
- data/test/unit/graticule/geocoder/multimap_test.rb +52 -0
- data/test/unit/graticule/geocoder/postcode_anywhere_test.rb +50 -0
- data/test/unit/graticule/geocoder/yahoo_test.rb +48 -0
- data/test/unit/graticule/geocoder_test.rb +27 -0
- data/test/unit/graticule/location_test.rb +73 -0
- metadata +167 -0
metadata
ADDED
@@ -0,0 +1,167 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: CodeMonkeySteve-graticule
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.11
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Brandon Keepers
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-07-22 00:00:00 -07:00
|
13
|
+
default_executable: geocode
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: activesupport
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: "0"
|
24
|
+
version:
|
25
|
+
description: Graticule is a geocoding API that provides a common interface to all the popular services, including Google, Yahoo, Geocoder.us, and MetaCarta.
|
26
|
+
email: brandon@opensoul.org
|
27
|
+
executables:
|
28
|
+
- geocode
|
29
|
+
extensions: []
|
30
|
+
|
31
|
+
extra_rdoc_files:
|
32
|
+
- README.txt
|
33
|
+
files:
|
34
|
+
- .gitignore
|
35
|
+
- CHANGELOG.txt
|
36
|
+
- LICENSE.txt
|
37
|
+
- Manifest.txt
|
38
|
+
- README.txt
|
39
|
+
- Rakefile
|
40
|
+
- VERSION
|
41
|
+
- bin/geocode
|
42
|
+
- graticule.gemspec
|
43
|
+
- init.rb
|
44
|
+
- lib/graticule.rb
|
45
|
+
- lib/graticule/cli.rb
|
46
|
+
- lib/graticule/core_ext.rb
|
47
|
+
- lib/graticule/distance.rb
|
48
|
+
- lib/graticule/distance/haversine.rb
|
49
|
+
- lib/graticule/distance/spherical.rb
|
50
|
+
- lib/graticule/distance/vincenty.rb
|
51
|
+
- lib/graticule/geocoder.rb
|
52
|
+
- lib/graticule/geocoder/base.rb
|
53
|
+
- lib/graticule/geocoder/bogus.rb
|
54
|
+
- lib/graticule/geocoder/geocoder_ca.rb
|
55
|
+
- lib/graticule/geocoder/geocoder_us.rb
|
56
|
+
- lib/graticule/geocoder/google.rb
|
57
|
+
- lib/graticule/geocoder/host_ip.rb
|
58
|
+
- lib/graticule/geocoder/local_search_maps.rb
|
59
|
+
- lib/graticule/geocoder/mapquest.rb
|
60
|
+
- lib/graticule/geocoder/meta_carta.rb
|
61
|
+
- lib/graticule/geocoder/multi.rb
|
62
|
+
- lib/graticule/geocoder/multimap.rb
|
63
|
+
- lib/graticule/geocoder/postcode_anywhere.rb
|
64
|
+
- lib/graticule/geocoder/rest.rb
|
65
|
+
- lib/graticule/geocoder/yahoo.rb
|
66
|
+
- lib/graticule/location.rb
|
67
|
+
- lib/graticule/version.rb
|
68
|
+
- site/index.html
|
69
|
+
- site/plugin.html
|
70
|
+
- site/stylesheets/style.css
|
71
|
+
- test/config.yml.default
|
72
|
+
- test/fixtures/responses/geocoder_us/success.xml
|
73
|
+
- test/fixtures/responses/geocoder_us/unknown.xml
|
74
|
+
- test/fixtures/responses/google/badkey.xml
|
75
|
+
- test/fixtures/responses/google/limit.xml
|
76
|
+
- test/fixtures/responses/google/missing_address.xml
|
77
|
+
- test/fixtures/responses/google/only_coordinates.xml
|
78
|
+
- test/fixtures/responses/google/partial.xml
|
79
|
+
- test/fixtures/responses/google/server_error.xml
|
80
|
+
- test/fixtures/responses/google/success.xml
|
81
|
+
- test/fixtures/responses/google/success_multiple_results.xml
|
82
|
+
- test/fixtures/responses/google/success_on_options.xml
|
83
|
+
- test/fixtures/responses/google/unavailable.xml
|
84
|
+
- test/fixtures/responses/google/unknown_address.xml
|
85
|
+
- test/fixtures/responses/host_ip/private.txt
|
86
|
+
- test/fixtures/responses/host_ip/success.txt
|
87
|
+
- test/fixtures/responses/host_ip/unknown.txt
|
88
|
+
- test/fixtures/responses/local_search_maps/empty.txt
|
89
|
+
- test/fixtures/responses/local_search_maps/not_found.txt
|
90
|
+
- test/fixtures/responses/local_search_maps/success.txt
|
91
|
+
- test/fixtures/responses/mapquest/multi_result.xml
|
92
|
+
- test/fixtures/responses/mapquest/success.xml
|
93
|
+
- test/fixtures/responses/meta_carta/bad_address.xml
|
94
|
+
- test/fixtures/responses/meta_carta/multiple.xml
|
95
|
+
- test/fixtures/responses/meta_carta/success.xml
|
96
|
+
- test/fixtures/responses/multimap/missing_params.xml
|
97
|
+
- test/fixtures/responses/multimap/no_matches.xml
|
98
|
+
- test/fixtures/responses/multimap/success.xml
|
99
|
+
- test/fixtures/responses/postcode_anywhere/badkey.xml
|
100
|
+
- test/fixtures/responses/postcode_anywhere/canada.xml
|
101
|
+
- test/fixtures/responses/postcode_anywhere/empty.xml
|
102
|
+
- test/fixtures/responses/postcode_anywhere/success.xml
|
103
|
+
- test/fixtures/responses/postcode_anywhere/uk.xml
|
104
|
+
- test/fixtures/responses/yahoo/success.xml
|
105
|
+
- test/fixtures/responses/yahoo/unknown_address.xml
|
106
|
+
- test/mocks/uri.rb
|
107
|
+
- test/test_helper.rb
|
108
|
+
- test/unit/graticule/distance_test.rb
|
109
|
+
- test/unit/graticule/geocoder/geocoder_us_test.rb
|
110
|
+
- test/unit/graticule/geocoder/geocoders.rb
|
111
|
+
- test/unit/graticule/geocoder/google_test.rb
|
112
|
+
- test/unit/graticule/geocoder/host_ip_test.rb
|
113
|
+
- test/unit/graticule/geocoder/local_search_maps_test.rb
|
114
|
+
- test/unit/graticule/geocoder/mapquest_test.rb
|
115
|
+
- test/unit/graticule/geocoder/meta_carta_test.rb
|
116
|
+
- test/unit/graticule/geocoder/multi_test.rb
|
117
|
+
- test/unit/graticule/geocoder/multimap_test.rb
|
118
|
+
- test/unit/graticule/geocoder/postcode_anywhere_test.rb
|
119
|
+
- test/unit/graticule/geocoder/yahoo_test.rb
|
120
|
+
- test/unit/graticule/geocoder_test.rb
|
121
|
+
- test/unit/graticule/location_test.rb
|
122
|
+
has_rdoc: false
|
123
|
+
homepage: http://github.com/collectiveidea/graticule
|
124
|
+
post_install_message:
|
125
|
+
rdoc_options:
|
126
|
+
- --main
|
127
|
+
- README.rdoc
|
128
|
+
- --inline-source
|
129
|
+
- --line-numbers
|
130
|
+
require_paths:
|
131
|
+
- lib
|
132
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
133
|
+
requirements:
|
134
|
+
- - ">="
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: "0"
|
137
|
+
version:
|
138
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
139
|
+
requirements:
|
140
|
+
- - ">="
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: "0"
|
143
|
+
version:
|
144
|
+
requirements: []
|
145
|
+
|
146
|
+
rubyforge_project: graticule
|
147
|
+
rubygems_version: 1.2.0
|
148
|
+
signing_key:
|
149
|
+
specification_version: 3
|
150
|
+
summary: API for using all the popular geocoding services.
|
151
|
+
test_files:
|
152
|
+
- test/test_helper.rb
|
153
|
+
- test/unit/graticule/geocoder_test.rb
|
154
|
+
- test/unit/graticule/distance_test.rb
|
155
|
+
- test/unit/graticule/location_test.rb
|
156
|
+
- test/unit/graticule/geocoder/multimap_test.rb
|
157
|
+
- test/unit/graticule/geocoder/meta_carta_test.rb
|
158
|
+
- test/unit/graticule/geocoder/geocoder_us_test.rb
|
159
|
+
- test/unit/graticule/geocoder/postcode_anywhere_test.rb
|
160
|
+
- test/unit/graticule/geocoder/google_test.rb
|
161
|
+
- test/unit/graticule/geocoder/multi_test.rb
|
162
|
+
- test/unit/graticule/geocoder/mapquest_test.rb
|
163
|
+
- test/unit/graticule/geocoder/geocoders.rb
|
164
|
+
- test/unit/graticule/geocoder/yahoo_test.rb
|
165
|
+
- test/unit/graticule/geocoder/host_ip_test.rb
|
166
|
+
- test/unit/graticule/geocoder/local_search_maps_test.rb
|
167
|
+
- test/mocks/uri.rb
|