google_places 0.16.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Gemfile.lock +3 -3
- data/google_places.gemspec +1 -1
- data/lib/google_places/spot.rb +4 -3
- data/spec/google_places/spot_spec.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTE5ZWJhNmZlZmNlNWZhNzE3NzRmMzVkZGRhNWFiYzRlZWMyNDBmZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MjRjMzg5MTU3YTUyNTdjZmY4OWNiYjI0NDBlODNlNjAyMjU2ZDQ1ZQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZWQ2YWY0ZjUyZjk0YTEzYzExYzIxZDkzMmU3OWI3ZWEyYTI0ZTQxMDI5YWQ4
|
10
|
+
MWMxMjhkZjBhZmE1OTk5OWIxY2VmMWNmN2M2YzAzMDI1YjdhZDRjOGE4Y2Mx
|
11
|
+
OTYwZWU4YjIxNTk0MDVlNjU2NDhhNzVhYzI4ZWI3NDBmZGZlMmI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YjA3NThhZTExNDYzMGNkZmQ4N2JkZTgyYTcwODQ4ODJkOTc0MzE4YmExM2Nj
|
14
|
+
NTRiNjExYzc4OTdlNGVkOTg2ZmNiOTFjYTkyZDAwM2ZiZDFlYWJmYWZiNjVi
|
15
|
+
ZWUwMzM1NDlkM2M0NzkzZDRiZDE5MTEyMWI4YzU1NTE0Y2I0OTE=
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
google_places (0.
|
4
|
+
google_places (0.16.0)
|
5
5
|
httparty
|
6
6
|
|
7
7
|
GEM
|
@@ -12,8 +12,8 @@ GEM
|
|
12
12
|
httparty (0.11.0)
|
13
13
|
multi_json (~> 1.0)
|
14
14
|
multi_xml (>= 0.5.2)
|
15
|
-
multi_json (1.7.
|
16
|
-
multi_xml (0.5.
|
15
|
+
multi_json (1.7.9)
|
16
|
+
multi_xml (0.5.5)
|
17
17
|
rspec (2.11.0)
|
18
18
|
rspec-core (~> 2.11.0)
|
19
19
|
rspec-expectations (~> 2.11.0)
|
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, :price_level
|
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, :opening_hours
|
6
6
|
|
7
7
|
# Search for Spots at the provided location
|
8
8
|
#
|
@@ -236,8 +236,8 @@ module GooglePlaces
|
|
236
236
|
results = []
|
237
237
|
|
238
238
|
self.multi_pages_request(method, multipage_request, options) do |result|
|
239
|
-
# Some places returned by Google do not have a 'types' property. If the user specified 'types', then
|
240
|
-
# this is a non-issue because those places will not be returned. However, if the user did not specify
|
239
|
+
# Some places returned by Google do not have a 'types' property. If the user specified 'types', then
|
240
|
+
# this is a non-issue because those places will not be returned. However, if the user did not specify
|
241
241
|
# 'types', then we do not want to filter out places with a missing 'types' property from the results set.
|
242
242
|
results << self.new(result) if result['types'].nil? || (result['types'] & exclude) == []
|
243
243
|
end
|
@@ -299,6 +299,7 @@ module GooglePlaces
|
|
299
299
|
@country = address_component(:country, 'long_name')
|
300
300
|
@rating = json_result_object['rating']
|
301
301
|
@price_level = json_result_object['price_level']
|
302
|
+
@opening_hours = json_result_object['opening_hours']
|
302
303
|
@url = json_result_object['url']
|
303
304
|
@cid = json_result_object['url'].to_i
|
304
305
|
@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 price_level).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 opening_hours).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.17.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-
|
11
|
+
date: 2013-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
126
|
rubyforge_project:
|
127
|
-
rubygems_version: 2.0.
|
127
|
+
rubygems_version: 2.0.5
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
130
|
summary: A Ruby wrapper around the Google Places API.
|