aub-graticule 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/aub-graticule.gemspec +93 -112
- data/lib/graticule/geocoder/mapquest.rb +1 -1
- metadata +6 -13
- data/.gitignore +0 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
data/aub-graticule.gemspec
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{aub-graticule}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Brandon Keepers"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2011-05-16}
|
13
13
|
s.default_executable = %q{geocode}
|
14
14
|
s.description = %q{Graticule is a geocoding API that provides a common interface to all the popular services, including Google, Yahoo, Geocoder.us, and MetaCarta.}
|
15
15
|
s.email = %q{brandon@opensoul.org}
|
@@ -18,124 +18,105 @@ Gem::Specification.new do |s|
|
|
18
18
|
"README.txt"
|
19
19
|
]
|
20
20
|
s.files = [
|
21
|
-
".
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
"test/unit/graticule/location_test.rb"
|
21
|
+
"CHANGELOG.txt",
|
22
|
+
"LICENSE.txt",
|
23
|
+
"Manifest.txt",
|
24
|
+
"README.txt",
|
25
|
+
"Rakefile",
|
26
|
+
"VERSION",
|
27
|
+
"aub-graticule.gemspec",
|
28
|
+
"bin/geocode",
|
29
|
+
"graticule.gemspec",
|
30
|
+
"init.rb",
|
31
|
+
"lib/graticule.rb",
|
32
|
+
"lib/graticule/cli.rb",
|
33
|
+
"lib/graticule/core_ext.rb",
|
34
|
+
"lib/graticule/distance.rb",
|
35
|
+
"lib/graticule/distance/haversine.rb",
|
36
|
+
"lib/graticule/distance/spherical.rb",
|
37
|
+
"lib/graticule/distance/vincenty.rb",
|
38
|
+
"lib/graticule/geocoder.rb",
|
39
|
+
"lib/graticule/geocoder/base.rb",
|
40
|
+
"lib/graticule/geocoder/bogus.rb",
|
41
|
+
"lib/graticule/geocoder/geocoder_ca.rb",
|
42
|
+
"lib/graticule/geocoder/geocoder_us.rb",
|
43
|
+
"lib/graticule/geocoder/google.rb",
|
44
|
+
"lib/graticule/geocoder/host_ip.rb",
|
45
|
+
"lib/graticule/geocoder/local_search_maps.rb",
|
46
|
+
"lib/graticule/geocoder/mapquest.rb",
|
47
|
+
"lib/graticule/geocoder/meta_carta.rb",
|
48
|
+
"lib/graticule/geocoder/multi.rb",
|
49
|
+
"lib/graticule/geocoder/multimap.rb",
|
50
|
+
"lib/graticule/geocoder/postcode_anywhere.rb",
|
51
|
+
"lib/graticule/geocoder/rest.rb",
|
52
|
+
"lib/graticule/geocoder/yahoo.rb",
|
53
|
+
"lib/graticule/location.rb",
|
54
|
+
"lib/graticule/version.rb",
|
55
|
+
"site/index.html",
|
56
|
+
"site/plugin.html",
|
57
|
+
"site/stylesheets/style.css",
|
58
|
+
"test/config.yml.default",
|
59
|
+
"test/fixtures/responses/geocoder_us/success.xml",
|
60
|
+
"test/fixtures/responses/geocoder_us/unknown.xml",
|
61
|
+
"test/fixtures/responses/google/badkey.xml",
|
62
|
+
"test/fixtures/responses/google/limit.xml",
|
63
|
+
"test/fixtures/responses/google/missing_address.xml",
|
64
|
+
"test/fixtures/responses/google/only_coordinates.xml",
|
65
|
+
"test/fixtures/responses/google/partial.xml",
|
66
|
+
"test/fixtures/responses/google/server_error.xml",
|
67
|
+
"test/fixtures/responses/google/success.xml",
|
68
|
+
"test/fixtures/responses/google/success_multiple_results.xml",
|
69
|
+
"test/fixtures/responses/google/unavailable.xml",
|
70
|
+
"test/fixtures/responses/google/unknown_address.xml",
|
71
|
+
"test/fixtures/responses/host_ip/private.txt",
|
72
|
+
"test/fixtures/responses/host_ip/success.txt",
|
73
|
+
"test/fixtures/responses/host_ip/unknown.txt",
|
74
|
+
"test/fixtures/responses/local_search_maps/empty.txt",
|
75
|
+
"test/fixtures/responses/local_search_maps/not_found.txt",
|
76
|
+
"test/fixtures/responses/local_search_maps/success.txt",
|
77
|
+
"test/fixtures/responses/mapquest/multi_result.xml",
|
78
|
+
"test/fixtures/responses/mapquest/success.xml",
|
79
|
+
"test/fixtures/responses/meta_carta/bad_address.xml",
|
80
|
+
"test/fixtures/responses/meta_carta/multiple.xml",
|
81
|
+
"test/fixtures/responses/meta_carta/success.xml",
|
82
|
+
"test/fixtures/responses/multimap/missing_params.xml",
|
83
|
+
"test/fixtures/responses/multimap/no_matches.xml",
|
84
|
+
"test/fixtures/responses/multimap/success.xml",
|
85
|
+
"test/fixtures/responses/postcode_anywhere/badkey.xml",
|
86
|
+
"test/fixtures/responses/postcode_anywhere/canada.xml",
|
87
|
+
"test/fixtures/responses/postcode_anywhere/empty.xml",
|
88
|
+
"test/fixtures/responses/postcode_anywhere/success.xml",
|
89
|
+
"test/fixtures/responses/postcode_anywhere/uk.xml",
|
90
|
+
"test/fixtures/responses/yahoo/success.xml",
|
91
|
+
"test/fixtures/responses/yahoo/unknown_address.xml",
|
92
|
+
"test/mocks/uri.rb",
|
93
|
+
"test/test_helper.rb",
|
94
|
+
"test/unit/graticule/distance_test.rb",
|
95
|
+
"test/unit/graticule/geocoder/geocoder_us_test.rb",
|
96
|
+
"test/unit/graticule/geocoder/geocoders.rb",
|
97
|
+
"test/unit/graticule/geocoder/google_test.rb",
|
98
|
+
"test/unit/graticule/geocoder/host_ip_test.rb",
|
99
|
+
"test/unit/graticule/geocoder/local_search_maps_test.rb",
|
100
|
+
"test/unit/graticule/geocoder/mapquest_test.rb",
|
101
|
+
"test/unit/graticule/geocoder/meta_carta_test.rb",
|
102
|
+
"test/unit/graticule/geocoder/multi_test.rb",
|
103
|
+
"test/unit/graticule/geocoder/multimap_test.rb",
|
104
|
+
"test/unit/graticule/geocoder/postcode_anywhere_test.rb",
|
105
|
+
"test/unit/graticule/geocoder/yahoo_test.rb",
|
106
|
+
"test/unit/graticule/geocoder_test.rb",
|
107
|
+
"test/unit/graticule/location_test.rb"
|
109
108
|
]
|
110
109
|
s.homepage = %q{http://github.com/aub/graticule}
|
111
110
|
s.rdoc_options = ["--main", "README.rdoc", "--inline-source", "--line-numbers"]
|
112
111
|
s.require_paths = ["lib"]
|
113
|
-
s.rubygems_version = %q{1.
|
112
|
+
s.rubygems_version = %q{1.6.2}
|
114
113
|
s.summary = %q{API for using all the popular geocoding services.}
|
115
|
-
s.test_files = [
|
116
|
-
"test/mocks/uri.rb",
|
117
|
-
"test/test_helper.rb",
|
118
|
-
"test/unit/graticule/distance_test.rb",
|
119
|
-
"test/unit/graticule/geocoder/geocoder_us_test.rb",
|
120
|
-
"test/unit/graticule/geocoder/geocoders.rb",
|
121
|
-
"test/unit/graticule/geocoder/google_test.rb",
|
122
|
-
"test/unit/graticule/geocoder/host_ip_test.rb",
|
123
|
-
"test/unit/graticule/geocoder/local_search_maps_test.rb",
|
124
|
-
"test/unit/graticule/geocoder/mapquest_test.rb",
|
125
|
-
"test/unit/graticule/geocoder/meta_carta_test.rb",
|
126
|
-
"test/unit/graticule/geocoder/multi_test.rb",
|
127
|
-
"test/unit/graticule/geocoder/multimap_test.rb",
|
128
|
-
"test/unit/graticule/geocoder/postcode_anywhere_test.rb",
|
129
|
-
"test/unit/graticule/geocoder/yahoo_test.rb",
|
130
|
-
"test/unit/graticule/geocoder_test.rb",
|
131
|
-
"test/unit/graticule/location_test.rb"
|
132
|
-
]
|
114
|
+
s.test_files = ["test/mocks/uri.rb", "test/test_helper.rb", "test/unit/graticule/distance_test.rb", "test/unit/graticule/geocoder/geocoder_us_test.rb", "test/unit/graticule/geocoder/geocoders.rb", "test/unit/graticule/geocoder/google_test.rb", "test/unit/graticule/geocoder/host_ip_test.rb", "test/unit/graticule/geocoder/local_search_maps_test.rb", "test/unit/graticule/geocoder/mapquest_test.rb", "test/unit/graticule/geocoder/meta_carta_test.rb", "test/unit/graticule/geocoder/multi_test.rb", "test/unit/graticule/geocoder/multimap_test.rb", "test/unit/graticule/geocoder/postcode_anywhere_test.rb", "test/unit/graticule/geocoder/yahoo_test.rb", "test/unit/graticule/geocoder_test.rb", "test/unit/graticule/location_test.rb"]
|
133
115
|
|
134
116
|
if s.respond_to? :specification_version then
|
135
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
136
117
|
s.specification_version = 3
|
137
118
|
|
138
|
-
if Gem::Version.new(Gem::
|
119
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
139
120
|
else
|
140
121
|
end
|
141
122
|
else
|
@@ -31,7 +31,7 @@ module Graticule #:nodoc:
|
|
31
31
|
def initialize(client_id, password)
|
32
32
|
@password = password
|
33
33
|
@client_id = client_id
|
34
|
-
@url = URI.parse('http://geocode.
|
34
|
+
@url = URI.parse('http://geocode.access.mapquest.com/mq/mqserver.dll')
|
35
35
|
end
|
36
36
|
|
37
37
|
# Locates +address+ returning a Location
|
metadata
CHANGED
@@ -1,12 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aub-graticule
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 3
|
8
|
-
- 1
|
9
|
-
version: 0.3.1
|
4
|
+
prerelease:
|
5
|
+
version: 0.3.2
|
10
6
|
platform: ruby
|
11
7
|
authors:
|
12
8
|
- Brandon Keepers
|
@@ -14,7 +10,7 @@ autorequire:
|
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
12
|
|
17
|
-
date:
|
13
|
+
date: 2011-05-16 00:00:00 -04:00
|
18
14
|
default_executable: geocode
|
19
15
|
dependencies: []
|
20
16
|
|
@@ -27,7 +23,6 @@ extensions: []
|
|
27
23
|
extra_rdoc_files:
|
28
24
|
- README.txt
|
29
25
|
files:
|
30
|
-
- .gitignore
|
31
26
|
- CHANGELOG.txt
|
32
27
|
- LICENSE.txt
|
33
28
|
- Manifest.txt
|
@@ -128,23 +123,21 @@ rdoc_options:
|
|
128
123
|
require_paths:
|
129
124
|
- lib
|
130
125
|
required_ruby_version: !ruby/object:Gem::Requirement
|
126
|
+
none: false
|
131
127
|
requirements:
|
132
128
|
- - ">="
|
133
129
|
- !ruby/object:Gem::Version
|
134
|
-
segments:
|
135
|
-
- 0
|
136
130
|
version: "0"
|
137
131
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
132
|
+
none: false
|
138
133
|
requirements:
|
139
134
|
- - ">="
|
140
135
|
- !ruby/object:Gem::Version
|
141
|
-
segments:
|
142
|
-
- 0
|
143
136
|
version: "0"
|
144
137
|
requirements: []
|
145
138
|
|
146
139
|
rubyforge_project:
|
147
|
-
rubygems_version: 1.
|
140
|
+
rubygems_version: 1.6.2
|
148
141
|
signing_key:
|
149
142
|
specification_version: 3
|
150
143
|
summary: API for using all the popular geocoding services.
|
data/.gitignore
DELETED