rail-locator-api 0.1.22 → 0.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 26c888695c95854ab878b21e11f61be31c289e73c5d74708dc731dd258a3f0e4
4
- data.tar.gz: 4ba18e21877cedb2d2fc690d63381caee050a15a13129add7c2d8fd6f2faddd9
3
+ metadata.gz: 9988790e6c871a9ed969535f78ce48c313e68154fdc8a8a3844eee6b14350535
4
+ data.tar.gz: 26e58f6cbf89f73a7bddd60532325a5ed6571a899031db465d79252b524cdfd7
5
5
  SHA512:
6
- metadata.gz: 4ec8a39a99fc81ba75fe3e301f656af57127e1764a65a5b8cadf4f7f04f924b2c69c4567072147bbcdcd10c072f3f02143a0f91485ba028622aed0039942f781
7
- data.tar.gz: 6deb44f8328b466ce4c20dae3edbe8307a5ab0897b2b90e66c98162bfa47b7256cd8e409a1394a0334fe8377db27ab5afe6e71ac0fa29e82566ee2a8e94fe1ac
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-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-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.23"
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.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Osetrov