google_places 0.13.0 → 0.14.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
- Y2Q1MzllMGVjMzA3MWFjOTk0NjU5YWNkZjY4NjBiMTcxYTQwNmJiOQ==
4
+ MTljYTFkZGJiNTgzYjA4OTJkYWY1NTA5OTgxYTZhMDRjZTY0ZDM0Yw==
5
5
  data.tar.gz: !binary |-
6
- YTVhNGU1M2IzMzg0YTdkYmFhN2RjZTJkMDJjNTM4NDk2MGVmZWU5Yw==
6
+ Zjg0ZGViNzgzMDlmMzQ0YmVjMzdkZjU5ZGNiZGJiMjBlY2NjYjY0OA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZjA2OWFkYzMyYWM2Mjc3NGZhNjUzYzFiNjE5OTJiNzhkOTRmNzBkNWMyNTdm
10
- ZjNiN2VhYTI3MzVmY2MxNjExMDliYzUxOWYzMmZmNzNlYmIyYzY2NTBhZDVl
11
- MWNjZTZkMjk4YTNlMDRkNTA0MzMwYjEzNzliNGFmMjg1NjI5OWU=
9
+ OTY4NWIwNmFhZWRkMmQyNWE0MGYxM2FhMTcwM2NiYmIzMmUyMzljZmRiZDdi
10
+ ZDZiMDc1YTk3ZjI5ODFjMDUwM2QzZjBjMTE4NzFmZTEwM2QxNmU4MzI1NWI3
11
+ MGM2N2VlOGQzMjlkODhiZjFhNDhlYThhYjA4MTk0YjdjNDdjMzU=
12
12
  data.tar.gz: !binary |-
13
- MjQzMTM4MTQ2Njg0ZGU0OTNjNjhkZTQ5MTU5NDNkMGJhYjAxMDNhY2YxMTc5
14
- NWM1NTliNTc2Mzk3NDdkZGNlMmE0NTg3NmY3MjlkODdmZDYzYTUyOTllOTI3
15
- NjdmYjhjMDA5MDkzZTA0MWIxYTE0ODg5MDY0MzI5NTU4MjdhNTM=
13
+ YTU3M2I0YTJkMDRjMjhhYWI3MDE1MDRlMDQ1MGQxNTZjMjc0NDQ4OWZhNWFh
14
+ ZDdjNDJkNDEzZDg0MDU3OWIyNTQ5NWYwNzU3NTA5ZTE2ZGNkMjZmMjA2YmQ4
15
+ Njk1Yzg3NzJiYjVhYjVhNDMzMTliM2M4Nzk5NzAwMmEwMDg3NWM=
data/README.rdoc CHANGED
@@ -74,6 +74,14 @@ Search by name *and* type:
74
74
 
75
75
  @client.spots(-33.8670522, 151.1957362, :name => 'italian', :types => 'restaurant')
76
76
 
77
+ Search in a radius (in meters):
78
+
79
+ @client.spots(-33.8670522, 151.1957362, :radius => 100)
80
+
81
+ Get results in specific language:
82
+
83
+ @client.spots(-33.8670522, 151.1957362, :language => 'en')
84
+
77
85
  === Retrieving a single spot
78
86
 
79
87
  First register a new Client:
@@ -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.13.0'
6
+ s.version = '0.14.0'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Marcel de Graaf"]
9
9
  s.email = ["mail@marceldegraaf.net"]
@@ -236,7 +236,10 @@ module GooglePlaces
236
236
  results = []
237
237
 
238
238
  self.multi_pages_request(method, multipage_request, options) do |result|
239
- results << self.new(result) if (result['types'] & exclude) == []
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
+ # 'types', then we do not want to filter out places with a missing 'types' property from the results set.
242
+ results << self.new(result) if result['types'].nil? || (result['types'] & exclude) == []
240
243
  end
241
244
 
242
245
  results
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google_places
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcel de Graaf