googlemaps-services 1.4.0 → 1.4.5
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 +4 -4
- data/lib/googlemaps/services/client.rb +2 -3
- data/lib/googlemaps/services/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a3494fea87eb2b5a0ac69240dfd10fff6f2fe5ba
|
|
4
|
+
data.tar.gz: 540519f3574cb08fe8f4857960c51328241f0285
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 213d91a65860f0099c8212e1ea5e76faeb8d93cb00643307622c1cc83ad5e0162aea7b3e6a058f3464fc57c148745dfdc07838deec617275f290c2fd2eb2b4ab
|
|
7
|
+
data.tar.gz: c62abf2be3df306fffa1e78bf1ccbcbf54ba4e015bb02aa873a409224e8a62f56f83232cb7dc3f262bffa12cfdb125309c4f7a8ef5fb11096c382cc844645aab
|
|
@@ -45,8 +45,8 @@ module GoogleMaps
|
|
|
45
45
|
# @return [Symbol] Response format. Either :json or :xml
|
|
46
46
|
attr_accessor :response_format
|
|
47
47
|
|
|
48
|
-
def initialize(key: nil, client_id: nil, client_secret: nil, write_timeout:
|
|
49
|
-
connect_timeout:
|
|
48
|
+
def initialize(key: nil, client_id: nil, client_secret: nil, write_timeout: 2,
|
|
49
|
+
connect_timeout: 5, read_timeout: 10, retry_timeout: 60, request_headers: {},
|
|
50
50
|
queries_per_second: 10, channel: nil, response_format: :json)
|
|
51
51
|
unless key || (client_secret && client_id)
|
|
52
52
|
raise StandardError, 'Must provide API key or enterprise credentials when creationg client.'
|
|
@@ -59,7 +59,6 @@ module GoogleMaps
|
|
|
59
59
|
if channel
|
|
60
60
|
raise StandardError, 'The channel argument must be used with a client ID.' unless client_id
|
|
61
61
|
|
|
62
|
-
|
|
63
62
|
unless /^[a-zA-Z0-9._-]*$/.match(channel)
|
|
64
63
|
raise StandardError, 'The channel argument must be an ASCII alphanumeric string. The period (.), underscore (_) and hyphen (-) characters are allowed.'
|
|
65
64
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: googlemaps-services
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Faissal Elamraoui
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-10-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|