google_places 0.16.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTAyNjgwZDU1NDE4N2FjOTZjNjEyNjI5YTc0MjA3MmY3YjRkNzFlMw==
4
+ ZTE5ZWJhNmZlZmNlNWZhNzE3NzRmMzVkZGRhNWFiYzRlZWMyNDBmZQ==
5
5
  data.tar.gz: !binary |-
6
- ZWQyZWM4NzMzOTRjNTAwZmM2NTNiNTFlZGZiNDE2MDNhNzIyYmUzMA==
6
+ MjRjMzg5MTU3YTUyNTdjZmY4OWNiYjI0NDBlODNlNjAyMjU2ZDQ1ZQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- N2YwZDczMGU5YWZjNDUyMGZmYmY0NWJhMmMxNGExOGM1ZjJkODMzZGZhYWYy
10
- Yjg3NDMzMzU5YjAyMTU1OGFiY2UxM2M4Y2I3YTgxMzk3NTM1ZDllOTkxYzcy
11
- MDZiNGRhMzFlY2QzYjI5OTcxMjg5ZmU2ZDcwMGQyYTJlZWJkZGQ=
9
+ ZWQ2YWY0ZjUyZjk0YTEzYzExYzIxZDkzMmU3OWI3ZWEyYTI0ZTQxMDI5YWQ4
10
+ MWMxMjhkZjBhZmE1OTk5OWIxY2VmMWNmN2M2YzAzMDI1YjdhZDRjOGE4Y2Mx
11
+ OTYwZWU4YjIxNTk0MDVlNjU2NDhhNzVhYzI4ZWI3NDBmZGZlMmI=
12
12
  data.tar.gz: !binary |-
13
- NTk4OTJmY2EzNTMwN2FjNjNjYTZiY2Q1ZjZhYjE3NTg2NGU5NWY2MjkxMGI3
14
- MGZlYjUyZDU3ZWZiNThmMDRlNGYyMTJkNjI5MWRmNWY3M2M3MmQ4OTJkYmE5
15
- ZDU2ODIxNjhiZjZmZGM0N2VhZGVjZDQzNDc4ZjNhNTE0ZDIyMDQ=
13
+ YjA3NThhZTExNDYzMGNkZmQ4N2JkZTgyYTcwODQ4ODJkOTc0MzE4YmExM2Nj
14
+ NTRiNjExYzc4OTdlNGVkOTg2ZmNiOTFjYTkyZDAwM2ZiZDFlYWJmYWZiNjVi
15
+ ZWUwMzM1NDlkM2M0NzkzZDRiZDE5MTEyMWI4YzU1NTE0Y2I0OTE=
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- google_places (0.15.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.7)
16
- multi_xml (0.5.4)
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)
@@ -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.16.0'
6
+ s.version = '0.17.0'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Marcel de Graaf"]
9
9
  s.email = ["mail@marceldegraaf.net"]
@@ -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.16.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-07-08 00:00:00.000000000 Z
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.3
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.