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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MTljYTFkZGJiNTgzYjA4OTJkYWY1NTA5OTgxYTZhMDRjZTY0ZDM0Yw==
4
+ ZmNiN2I5Nzc1NWEyODVjZTljYWMwMDZiODZmMmYzNTFhYmQ5MDBlNA==
5
5
  data.tar.gz: !binary |-
6
- Zjg0ZGViNzgzMDlmMzQ0YmVjMzdkZjU5ZGNiZGJiMjBlY2NjYjY0OA==
6
+ ZWVlMzEwYTM0ZjE3NzIyN2U4YTIwNDU0ZjQ1ZDhhYTM5NTIxNzRkMg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- OTY4NWIwNmFhZWRkMmQyNWE0MGYxM2FhMTcwM2NiYmIzMmUyMzljZmRiZDdi
10
- ZDZiMDc1YTk3ZjI5ODFjMDUwM2QzZjBjMTE4NzFmZTEwM2QxNmU4MzI1NWI3
11
- MGM2N2VlOGQzMjlkODhiZjFhNDhlYThhYjA4MTk0YjdjNDdjMzU=
9
+ NjVmNTVhMzU5MWNjYTcyZjFjZjVlYzJmODRmMjJlNWZkM2M4MzYwOWNmNGI5
10
+ YzAxYWM3MDNlMzJlMDBhNzc5OTkzMmYyMTA4MTMyNzM0NmJlMThiMmZkM2My
11
+ NzlkNjJjZmMyNWQ0YmE2MWRkMjA2NzY2NjdjN2E2NDRlYmNmMDg=
12
12
  data.tar.gz: !binary |-
13
- YTU3M2I0YTJkMDRjMjhhYWI3MDE1MDRlMDQ1MGQxNTZjMjc0NDQ4OWZhNWFh
14
- ZDdjNDJkNDEzZDg0MDU3OWIyNTQ5NWYwNzU3NTA5ZTE2ZGNkMjZmMjA2YmQ4
15
- Njk1Yzg3NzJiYjVhYjVhNDMzMTliM2M4Nzk5NzAwMmEwMDg3NWM=
13
+ ZTQ2ZTk3ZDAxZTM2ZDNhY2Q4ODlhOTI5MmJiYmJiNGQ3MmU3ZjViODVmMzk2
14
+ MzE2ZGNiYzBhMTNkZThjYmE3Zjk1MDlkZmFkZTYwYWM3N2E0ZDcyNThhYmUy
15
+ M2EwMWE4OWNkMDAxNmZlYWU3MzM2NDgzODkyYmM2OWFlY2VkMGE=
@@ -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.14.0'
6
+ s.version = '0.15.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
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.14.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-21 00:00:00.000000000 Z
11
+ date: 2013-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty