rail-locator-api 1.0.29 → 1.0.31

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
  SHA256:
3
- metadata.gz: fd0edd76666a0e2c989d8a946760cfb7f25e033fb465ab098a16de9954ee29ba
4
- data.tar.gz: 4b76a953264943d3a1984d5114bbcd25b4fc53c9765f3a9a4d3d9d3015759ec8
3
+ metadata.gz: eb3d128305e23f86c0f793aa62e66ae7ca8fb19b5604633b6a1929fe1f7057be
4
+ data.tar.gz: 1ebe2cfceccab2318b20c373985fe6e5a8e8b490658e4cac64b00379f7df965a
5
5
  SHA512:
6
- metadata.gz: '0344942f521b8bdc3fa68223ccea4de9ab64a6d60042687ea6f5d7df37f70e3fb4f1e064c4affc8917104013e73fc0aefc954d578bf249ec63c0e56cba534be2'
7
- data.tar.gz: 00c9c402006d0d42ea99ec8d2e7b4af4f165701bf85426a3e3888686e662137be01bf6b1ed69425ad264c521742d0979145881a3ac4bc814a2976b380e5dc9ea
6
+ metadata.gz: e11d008ae9970c2654c71e87107aa543e6d1940549d9550049a100c62ef390b458273a1d89814bf8c5cb8188869d46df552f424e64948cd8fc8cde318862a673
7
+ data.tar.gz: ac318419206007d6192eba683e263dece27623d4365ee5c0ec31c1f3d0bce95631a60efb066c08ffd481b53376f27a213cc9658e2f9141684de8af936ef092ba
@@ -230,6 +230,7 @@ module RailLocatorApi
230
230
  def configure_request(request: nil, params: nil, headers: nil, body: nil)
231
231
  if request
232
232
  request.params.merge!(params) if params
233
+ request.headers ||= {}
233
234
  request.headers['Content-Type'] = 'application/json'
234
235
  if self.api_auth_method == :base64
235
236
  request.headers['Authorization'] = "Basic " + Base64::encode64("#{self.api_user_email}:#{self.api_user_password}")
@@ -1,3 +1,3 @@
1
1
  module RailLocatorApi
2
- VERSION = "1.0.29"
2
+ VERSION = "1.0.31"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rail-locator-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.29
4
+ version: 1.0.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Osetrov
@@ -59,7 +59,7 @@ dependencies:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: 1.3.6
62
- type: :runtime
62
+ type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements: