google_places 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/google_places.gemspec +1 -1
- data/lib/google_places/spot.rb +2 -1
- data/spec/google_places/spot_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZmNiN2I5Nzc1NWEyODVjZTljYWMwMDZiODZmMmYzNTFhYmQ5MDBlNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWVlMzEwYTM0ZjE3NzIyN2U4YTIwNDU0ZjQ1ZDhhYTM5NTIxNzRkMg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NjVmNTVhMzU5MWNjYTcyZjFjZjVlYzJmODRmMjJlNWZkM2M4MzYwOWNmNGI5
|
10
|
+
YzAxYWM3MDNlMzJlMDBhNzc5OTkzMmYyMTA4MTMyNzM0NmJlMThiMmZkM2My
|
11
|
+
NzlkNjJjZmMyNWQ0YmE2MWRkMjA2NzY2NjdjN2E2NDRlYmNmMDg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTQ2ZTk3ZDAxZTM2ZDNhY2Q4ODlhOTI5MmJiYmJiNGQ3MmU3ZjViODVmMzk2
|
14
|
+
MzE2ZGNiYzBhMTNkZThjYmE3Zjk1MDlkZmFkZTYwYWM3N2E0ZDcyNThhYmUy
|
15
|
+
M2EwMWE4OWNkMDAxNmZlYWU3MzM2NDgzODkyYmM2OWFlY2VkMGE=
|
data/google_places.gemspec
CHANGED
data/lib/google_places/spot.rb
CHANGED
@@ -2,7 +2,7 @@ require 'google_places/review'
|
|
2
2
|
|
3
3
|
module GooglePlaces
|
4
4
|
class Spot
|
5
|
-
attr_accessor :lat, :lng, :name, :icon, :reference, :vicinity, :types, :id, :formatted_phone_number, :international_phone_number, :formatted_address, :address_components, :street_number, :street, :city, :region, :postal_code, :country, :rating, :url, :cid, :website, :reviews, :aspects, :zagat_selected, :zagat_reviewed, :photos, :review_summary, :nextpagetoken
|
5
|
+
attr_accessor :lat, :lng, :name, :icon, :reference, :vicinity, :types, :id, :formatted_phone_number, :international_phone_number, :formatted_address, :address_components, :street_number, :street, :city, :region, :postal_code, :country, :rating, :url, :cid, :website, :reviews, :aspects, :zagat_selected, :zagat_reviewed, :photos, :review_summary, :nextpagetoken, :price_level
|
6
6
|
|
7
7
|
# Search for Spots at the provided location
|
8
8
|
#
|
@@ -298,6 +298,7 @@ module GooglePlaces
|
|
298
298
|
@postal_code = address_component(:postal_code, 'long_name')
|
299
299
|
@country = address_component(:country, 'long_name')
|
300
300
|
@rating = json_result_object['rating']
|
301
|
+
@price_level = json_result_object['price_level']
|
301
302
|
@url = json_result_object['url']
|
302
303
|
@cid = json_result_object['url'].to_i
|
303
304
|
@website = json_result_object['website']
|
@@ -190,7 +190,7 @@ describe GooglePlaces::Spot do
|
|
190
190
|
it 'should be a Spot' do
|
191
191
|
@spot.class.should == GooglePlaces::Spot
|
192
192
|
end
|
193
|
-
%w(reference vicinity lat lng name icon types id formatted_phone_number international_phone_number formatted_address address_components street_number street city region postal_code country rating url types website).each do |attribute|
|
193
|
+
%w(reference vicinity lat lng name icon types id formatted_phone_number international_phone_number formatted_address address_components street_number street city region postal_code country rating url types website price_level).each do |attribute|
|
194
194
|
it "should have the attribute: #{attribute}" do
|
195
195
|
@spot.respond_to?(attribute).should == true
|
196
196
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google_places
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcel de Graaf
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|