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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 569639365499c9f31295a0a3d97ae21a2ce63ef9e02ac83df7ec33593925166c
|
4
|
+
data.tar.gz: fd2648fa715dba0b099a58d6aa2a4d5c946ac200ca1526e27f4cadf18a7c5b9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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::
|
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
|