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 +4 -4
- data/lib/rail-locator-api/api_request.rb +4 -4
- data/lib/rail-locator-api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 290c5d8b74fbc188890e90edae5bc52673ebd73663839f24077f947faf531c54
|
4
|
+
data.tar.gz: eb9419b7a0be176f397c2b6277b5e2e9d803ee3955086d5c906a137c57d32875
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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-
|
146
|
+
request.headers['X-Api-Key'] = "#{RailLocatorApi::Request.api_key}"
|
147
147
|
if self.api_user_id.present?
|
148
|
-
request.headers['X-
|
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-
|
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['
|
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
|