rail-locator-api 0.1.22 → 0.1.23
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: 9988790e6c871a9ed969535f78ce48c313e68154fdc8a8a3844eee6b14350535
|
4
|
+
data.tar.gz: 26e58f6cbf89f73a7bddd60532325a5ed6571a899031db465d79252b524cdfd7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ad0802d88fe40ee719a4610efe1aa8d6db485014a240dc1e724cfbb8ce69574bdf9bd56f99ac23391ffe16a210d614b0438e0a2a077865cc51ebed4dd3b9492
|
7
|
+
data.tar.gz: e4a92fa709070d8d2f7130e3214e34a5efe5fc43a2b9707e74a069030689947ece8eb159ce54644b5fdbea65ba4d7dd35df71a43df6d6f86dfa0eec47551bbcc
|
@@ -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-Ratelimit'] = "
|
153
|
+
request.headers['X-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'] = "
|
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
|