geoplanet 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/geoplanet.gemspec +2 -2
- data/lib/geoplanet/place.rb +1 -1
- data/lib/geoplanet/version.rb +1 -1
- metadata +3 -3
data/geoplanet.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "geoplanet"
|
3
|
-
s.version = "0.2.
|
4
|
-
s.date = "
|
3
|
+
s.version = "0.2.4"
|
4
|
+
s.date = "2010-03-19"
|
5
5
|
s.summary = "A Ruby wrapper for the Yahoo! GeoPlanet API."
|
6
6
|
s.email = "carlosparamio@gmail.com"
|
7
7
|
s.homepage = "http://github.com/carlosparamio/geoplanet/"
|
data/lib/geoplanet/place.rb
CHANGED
@@ -23,7 +23,7 @@ module GeoPlanet
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def self.get_then_parse(url)
|
26
|
-
results = JSON.parse get(url)
|
26
|
+
results = JSON.parse get(url).to_s
|
27
27
|
return results['places']['place'].map{|attrs| Place.new attrs} if results['places']
|
28
28
|
return Place.new(results['place']) if results['place']
|
29
29
|
nil
|
data/lib/geoplanet/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geoplanet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carlos Paramio
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-03-19 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -47,7 +47,7 @@ files:
|
|
47
47
|
- lib/geoplanet/base.rb
|
48
48
|
- lib/geoplanet/place.rb
|
49
49
|
- lib/geoplanet/version.rb
|
50
|
-
has_rdoc:
|
50
|
+
has_rdoc: true
|
51
51
|
homepage: http://github.com/carlosparamio/geoplanet/
|
52
52
|
licenses: []
|
53
53
|
|