rail-locator-api 0.1.22 → 0.1.24

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: 26c888695c95854ab878b21e11f61be31c289e73c5d74708dc731dd258a3f0e4
4
- data.tar.gz: 4ba18e21877cedb2d2fc690d63381caee050a15a13129add7c2d8fd6f2faddd9
3
+ metadata.gz: 290c5d8b74fbc188890e90edae5bc52673ebd73663839f24077f947faf531c54
4
+ data.tar.gz: eb9419b7a0be176f397c2b6277b5e2e9d803ee3955086d5c906a137c57d32875
5
5
  SHA512:
6
- metadata.gz: 4ec8a39a99fc81ba75fe3e301f656af57127e1764a65a5b8cadf4f7f04f924b2c69c4567072147bbcdcd10c072f3f02143a0f91485ba028622aed0039942f781
7
- data.tar.gz: 6deb44f8328b466ce4c20dae3edbe8307a5ab0897b2b90e66c98162bfa47b7256cd8e409a1394a0334fe8377db27ab5afe6e71ac0fa29e82566ee2a8e94fe1ac
6
+ metadata.gz: dc3072113e79d02dcb84e6c58c39c8e4a8f80d42fc644df8b39bad886fa9ae79eca9cb6d531ae835d7218d5a4ece3f7348aec08e43d7b1370cdc32bf5b3f32fa
7
+ data.tar.gz: b675718f4cee3bbe363e9f65eb018e513e480a9ff406843403e0b8e4892b1a7c5eb86943d54f4dcff1e46bdeccea8785d82f35ff31b4295b03e9776292b17893
@@ -143,17 +143,17 @@ module RailLocatorApi
143
143
  request.headers['Authorization'] = "Bearer #{RailLocatorApi::Request.access_token}"
144
144
  end
145
145
  if [:api_key].include?(self.api_auth_method)
146
- request.headers['X-API-KEY'] = "#{RailLocatorApi::Request.api_key}"
146
+ request.headers['X-Api-Key'] = "#{RailLocatorApi::Request.api_key}"
147
147
  if self.api_user_id.present?
148
- request.headers['X-USER-ID'] = self.api_user_id.to_s
148
+ request.headers['X-User-Id'] = self.api_user_id.to_s
149
149
  end
150
150
  end
151
151
  request.headers['User-Agent'] = "RailLocatorApi/#{RailLocatorApi::VERSION} Ruby gem"
152
152
  if @request_builder.without_ratelimit
153
- request.headers['X-Request-Without-Ratelimit'] = "1"
153
+ request.headers['X-Is-Request-Without-RateLimit'] = "true"
154
154
  end
155
155
  if @request_builder.is_allow_access_to_coordinates
156
- request.headers['X_IS_ALLOW_ACCESS_TO_COORDINATES'] = "1"
156
+ request.headers['X-Is-Allow-Access-To-Coordinates'] = "true"
157
157
  end
158
158
  request.headers.merge!(headers) if headers
159
159
  request.body = MultiJson.dump(body) if body
@@ -1,3 +1,3 @@
1
1
  module RailLocatorApi
2
- VERSION = "0.1.22"
2
+ VERSION = "0.1.24"
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: 0.1.22
4
+ version: 0.1.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Osetrov