graticule 0.2.9 → 0.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.txt +3 -0
- data/lib/graticule/location.rb +4 -0
- data/lib/graticule/version.rb +1 -1
- data/test/unit/graticule/location_test.rb +7 -0
- metadata +2 -2
data/CHANGELOG.txt
CHANGED
data/lib/graticule/location.rb
CHANGED
data/lib/graticule/version.rb
CHANGED
@@ -62,5 +62,12 @@ module Graticule
|
|
62
62
|
assert_equal "1600 Pennsylvania Avenue, NW\nWashington, DC 20500\nlatitude: 38.898748, longitude: -77.037684",
|
63
63
|
@washington_dc.to_s(:country => false, :coordinates => true)
|
64
64
|
end
|
65
|
+
|
66
|
+
def test_blank?
|
67
|
+
assert Location.new.blank?
|
68
|
+
[:latitude, :longitude, :street, :locality, :region, :postal_code, :country].each do |attr|
|
69
|
+
assert !Location.new(attr => 'Foo').blank?
|
70
|
+
end
|
71
|
+
end
|
65
72
|
end
|
66
73
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graticule
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Keepers
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-04-
|
12
|
+
date: 2009-04-17 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|