google_places 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/google_places.gemspec +1 -1
- data/lib/google_places/spot.rb +5 -5
- data/spec/vcr_cassettes/single_spot.yml +32 -32
- metadata +4 -4
data/google_places.gemspec
CHANGED
data/lib/google_places/spot.rb
CHANGED
@@ -32,11 +32,11 @@ module GooglePlaces
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def initialize(json_result_object)
|
35
|
-
@reference = json_result_object['reference']
|
36
|
-
@vicinity = json_result_object['vicinity']
|
37
|
-
@lat = json_result_object['geometry']['location']['lat']
|
38
|
-
@lng = json_result_object['geometry']['location']['lng']
|
39
|
-
@name = json_result_object['name']
|
35
|
+
@reference = json_result_object['reference']
|
36
|
+
@vicinity = json_result_object['vicinity']
|
37
|
+
@lat = json_result_object['geometry']['location']['lat']
|
38
|
+
@lng = json_result_object['geometry']['location']['lng']
|
39
|
+
@name = json_result_object['name']
|
40
40
|
@icon = json_result_object['icon']
|
41
41
|
end
|
42
42
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :get
|
5
|
-
uri: https://maps.googleapis.com:443/maps/api/place/
|
5
|
+
uri: https://maps.googleapis.com:443/maps/api/place/details/json?reference=CoQBeAAAAO-prCRp9Atcj_rvavsLyv-DnxbGkw8QyRZb6Srm6QHOcww6lqFhIs2c7Ie6fMg3PZ4PhicfJL7ZWlaHaLDTqmRisoTQQUn61WTcSXAAiCOzcm0JDBnafqrskSpFtNUgzGAOx29WGnWSP44jmjtioIsJN9ik8yjK7UxP4buAmMPVEhBXPiCfHXk1CQ6XRuQhpztsGhQU4U6-tWjTHcLSVzjbNxoiuihbaA&sensor=false&key=AIzaSyATGBjcfrRXQtNEMMyt8Fw7tSGEY8PQwv0
|
6
6
|
body:
|
7
7
|
headers:
|
8
8
|
response: !ruby/struct:VCR::Response
|
@@ -22,37 +22,6 @@
|
|
22
22
|
- Accept-Language
|
23
23
|
cache-control:
|
24
24
|
- private
|
25
|
-
body: |
|
26
|
-
{
|
27
|
-
"status": "INVALID_REQUEST",
|
28
|
-
"results": [ ],
|
29
|
-
"html_attributions": [ ]
|
30
|
-
}
|
31
|
-
|
32
|
-
http_version: "1.1"
|
33
|
-
- !ruby/struct:VCR::HTTPInteraction
|
34
|
-
request: !ruby/struct:VCR::Request
|
35
|
-
method: :get
|
36
|
-
uri: https://maps.googleapis.com:443/maps/api/place/details/json?reference=CoQBeAAAAO-prCRp9Atcj_rvavsLyv-DnxbGkw8QyRZb6Srm6QHOcww6lqFhIs2c7Ie6fMg3PZ4PhicfJL7ZWlaHaLDTqmRisoTQQUn61WTcSXAAiCOzcm0JDBnafqrskSpFtNUgzGAOx29WGnWSP44jmjtioIsJN9ik8yjK7UxP4buAmMPVEhBXPiCfHXk1CQ6XRuQhpztsGhQU4U6-tWjTHcLSVzjbNxoiuihbaA&sensor=false&key=AIzaSyATGBjcfrRXQtNEMMyt8Fw7tSGEY8PQwv0
|
37
|
-
body:
|
38
|
-
headers:
|
39
|
-
response: !ruby/struct:VCR::Response
|
40
|
-
status: !ruby/struct:VCR::ResponseStatus
|
41
|
-
code: 200
|
42
|
-
message: OK
|
43
|
-
headers:
|
44
|
-
content-type:
|
45
|
-
- application/json; charset=UTF-8
|
46
|
-
x-xss-protection:
|
47
|
-
- 1; mode=block
|
48
|
-
server:
|
49
|
-
- mafe
|
50
|
-
date:
|
51
|
-
- Mon, 16 May 2011 20:56:23 GMT
|
52
|
-
cache-control:
|
53
|
-
- private
|
54
|
-
vary:
|
55
|
-
- Accept-Language
|
56
25
|
body: |
|
57
26
|
{
|
58
27
|
"status": "OK",
|
@@ -98,3 +67,34 @@
|
|
98
67
|
}
|
99
68
|
|
100
69
|
http_version: "1.1"
|
70
|
+
- !ruby/struct:VCR::HTTPInteraction
|
71
|
+
request: !ruby/struct:VCR::Request
|
72
|
+
method: :get
|
73
|
+
uri: https://maps.googleapis.com:443/maps/api/place/search/json?reference=CoQBeAAAAO-prCRp9Atcj_rvavsLyv-DnxbGkw8QyRZb6Srm6QHOcww6lqFhIs2c7Ie6fMg3PZ4PhicfJL7ZWlaHaLDTqmRisoTQQUn61WTcSXAAiCOzcm0JDBnafqrskSpFtNUgzGAOx29WGnWSP44jmjtioIsJN9ik8yjK7UxP4buAmMPVEhBXPiCfHXk1CQ6XRuQhpztsGhQU4U6-tWjTHcLSVzjbNxoiuihbaA&sensor=false&key=AIzaSyATGBjcfrRXQtNEMMyt8Fw7tSGEY8PQwv0
|
74
|
+
body:
|
75
|
+
headers:
|
76
|
+
response: !ruby/struct:VCR::Response
|
77
|
+
status: !ruby/struct:VCR::ResponseStatus
|
78
|
+
code: 200
|
79
|
+
message: OK
|
80
|
+
headers:
|
81
|
+
content-type:
|
82
|
+
- application/json; charset=UTF-8
|
83
|
+
x-xss-protection:
|
84
|
+
- 1; mode=block
|
85
|
+
server:
|
86
|
+
- mafe
|
87
|
+
date:
|
88
|
+
- Tue, 17 May 2011 06:05:29 GMT
|
89
|
+
cache-control:
|
90
|
+
- private
|
91
|
+
vary:
|
92
|
+
- Accept-Language
|
93
|
+
body: |
|
94
|
+
{
|
95
|
+
"status": "INVALID_REQUEST",
|
96
|
+
"results": [ ],
|
97
|
+
"html_attributions": [ ]
|
98
|
+
}
|
99
|
+
|
100
|
+
http_version: "1.1"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google_places
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Marcel de Graaf
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-05-
|
18
|
+
date: 2011-05-17 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|