graticule 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.txt
CHANGED
@@ -20,9 +20,9 @@ module Graticule #:nodoc:
|
|
20
20
|
private
|
21
21
|
|
22
22
|
def map_attributes(location)
|
23
|
-
mapping = {:street => :address, :locality => :city, :region => :state, :postal_code => :zip}
|
23
|
+
mapping = {:street => :address, :locality => :city, :region => :state, :postal_code => :zip, :country => :country}
|
24
24
|
mapping.keys.inject({}) do |result,attribute|
|
25
|
-
result[mapping[attribute]] = location.attributes[attribute]
|
25
|
+
result[mapping[attribute]] = location.attributes[attribute] unless location.attributes[attribute].blank?
|
26
26
|
result
|
27
27
|
end
|
28
28
|
end
|
data/lib/graticule/version.rb
CHANGED
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
|
|
3
3
|
specification_version: 1
|
4
4
|
name: graticule
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.2.
|
7
|
-
date: 2007-
|
6
|
+
version: 0.2.4
|
7
|
+
date: 2007-05-15 00:00:00 -04:00
|
8
8
|
summary: API for using all the popular geocoding services.
|
9
9
|
require_paths:
|
10
10
|
- lib
|