googlemaps-services 1.4.0 → 1.4.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c7ef65d4e04d36a5429f201972fe84cd62ec063d
4
- data.tar.gz: c2805471af22dd29286cc3bde204a29676860f58
3
+ metadata.gz: a3494fea87eb2b5a0ac69240dfd10fff6f2fe5ba
4
+ data.tar.gz: 540519f3574cb08fe8f4857960c51328241f0285
5
5
  SHA512:
6
- metadata.gz: a5fe169d40fcadc8be9ea7e3d4de6c59f9d3a85ced23e9d28252e756b6f0c7275d66fbf0536e8655a3bac8835a2a194cd23ade000236c8666e9f1f1c837278a3
7
- data.tar.gz: 913240e8c1c994ee6fd0f1bf37a92596412ff93be5e1b0ac06e85b7244209a6445a2a0dc3ddcfc93df218dce4e047ed052f240344bf57245423d335defd6b0ff
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: 1,
49
- connect_timeout: 1, read_timeout: 1,retry_timeout: 60, request_headers: {},
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
@@ -1,5 +1,5 @@
1
1
  module GoogleMaps
2
2
  module Services
3
- VERSION = '1.4.0'.freeze
3
+ VERSION = '1.4.5'.freeze
4
4
  end
5
5
  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.0
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-04-19 00:00:00.000000000 Z
11
+ date: 2017-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri