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.
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "google_places"
6
- s.version = '0.0.1'
6
+ s.version = '0.0.2'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Marcel de Graaf"]
9
9
  s.email = ["mail@marceldegraaf.net"]
@@ -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/search/json?reference=CoQBeAAAAO-prCRp9Atcj_rvavsLyv-DnxbGkw8QyRZb6Srm6QHOcww6lqFhIs2c7Ie6fMg3PZ4PhicfJL7ZWlaHaLDTqmRisoTQQUn61WTcSXAAiCOzcm0JDBnafqrskSpFtNUgzGAOx29WGnWSP44jmjtioIsJN9ik8yjK7UxP4buAmMPVEhBXPiCfHXk1CQ6XRuQhpztsGhQU4U6-tWjTHcLSVzjbNxoiuihbaA&sensor=false&key=AIzaSyATGBjcfrRXQtNEMMyt8Fw7tSGEY8PQwv0
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: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
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-16 00:00:00 +02:00
18
+ date: 2011-05-17 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency