rail-locator-api 1.0.3 → 1.0.5

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: b4a726cfc7a14de090e557440dacde6fd3a6760f0355565947c01b5edfb976e7
4
- data.tar.gz: d5e3cf4ad33a9fc54933624442a10edd4cc01c4e0665786df60af6caa6d02dba
3
+ metadata.gz: 569639365499c9f31295a0a3d97ae21a2ce63ef9e02ac83df7ec33593925166c
4
+ data.tar.gz: fd2648fa715dba0b099a58d6aa2a4d5c946ac200ca1526e27f4cadf18a7c5b9f
5
5
  SHA512:
6
- metadata.gz: 7df97c52ccd282b6c56e62e08d7d86cefdd38da1c1c85e6d7a354da4324c55d65ad830168dacbf3547d12ca807328ebe2f01d95c63d1a0fdb62ce9e181459c42
7
- data.tar.gz: 50008e39cc789fe2cebf3502950bb48a5e58fe9054cb9c3332573e1ccf9059e56b95108e353b9e17d6e5586b9fa2060b83815037dade8e2b8077a2a0c61c3959
6
+ metadata.gz: b211c1e8e849c76bfabc1c51f570bf6e96322a2d10a20a1a5de65b935581d590a3b42f546fd72f7a908126769736d1da7f334b8a5216e93de072c0153c397e93
7
+ data.tar.gz: 3578726800a2f69fb2091893989038e7533e21c725100f506a575c968588cfb0c6dc308f0caf17bf9bf3490cdbdda3b6853fe80a1598f091d713e3656786127f
@@ -19,6 +19,6 @@ RailLocatorApi.setup do |config|
19
19
  config::Request.debug = false
20
20
  config::Request.debug_options = { headers: true, bodies: false, errors: false, log_level: :info } # https://lostisland.github.io/faraday/middleware/logger
21
21
 
22
- config::Requst.language = defined?(I18n) ? I18n.locale : :ru
22
+ config::Request.language = defined?(I18n) ? I18n.locale : :ru
23
23
  end
24
24
  end
@@ -227,6 +227,8 @@ module RailLocatorApi
227
227
  lk_api_url
228
228
  when "app"
229
229
  app_api_url
230
+ when "union"
231
+ union_api_url
230
232
  else
231
233
  base_api_url
232
234
  end + @request_builder.path
@@ -243,5 +245,9 @@ module RailLocatorApi
243
245
  def app_api_url
244
246
  "https://rail-locator.com/"
245
247
  end
248
+
249
+ def union_api_url
250
+ "http://192.168.88.174:8000/api/"
251
+ end
246
252
  end
247
253
  end
@@ -1,3 +1,3 @@
1
1
  module RailLocatorApi
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.5"
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.3
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Osetrov