rail-locator-api 1.0.21 → 1.0.22
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: a89affa906350df328eda936e774ca59ec04face936911a7882ea171f1d7e08c
|
4
|
+
data.tar.gz: cddc9e9f8e4401be3881d2729393f7281bacd83adacf509007801d31983cd165
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71218635555f286fceaad6790fb0ebf0e547d92f4161154043e411f471235f5bda18aeee32faaf85cf550f4db1d725044bb6ad8df83613914274a113f5d78de5
|
7
|
+
data.tar.gz: 59f18698cfa2a5f00594fcec92e31f56c0c52ed25fd241b1fb7a5dde08754cecc276abb4e6ba5bb22a27978ef3e6cfe1154012cba4eac565e86fceb0b943c70b
|
@@ -1,7 +1,8 @@
|
|
1
1
|
defaults: &defaults
|
2
2
|
API_ENDPOINT: "https://rail-scan.com"
|
3
3
|
UNION_ENDPOINT: "http://192.168.88.38:8000"
|
4
|
-
|
4
|
+
NOTIFY_ENDPOINT: "http://192.168.1.153:3003"
|
5
|
+
|
5
6
|
API_AUTH_METHOD: "api_key"
|
6
7
|
API_KEY: "***"
|
7
8
|
|
@@ -16,6 +17,7 @@ defaults: &defaults
|
|
16
17
|
production:
|
17
18
|
<<: *defaults
|
18
19
|
UNION_ENDPOINT: "http://192.168.1.88:3500"
|
20
|
+
NOTIFY_ENDPOINT: "http://192.168.1.153:3003"
|
19
21
|
development:
|
20
22
|
<<: *defaults
|
21
23
|
test:
|
@@ -126,6 +126,10 @@ module RailLocatorApi
|
|
126
126
|
@request_builder.union_endpoint
|
127
127
|
end
|
128
128
|
|
129
|
+
def notify_endpoint
|
130
|
+
@request_builder.notify_endpoint
|
131
|
+
end
|
132
|
+
|
129
133
|
def timeout
|
130
134
|
@request_builder.timeout
|
131
135
|
end
|
@@ -308,7 +312,7 @@ module RailLocatorApi
|
|
308
312
|
end
|
309
313
|
|
310
314
|
def notify_api_url
|
311
|
-
"
|
315
|
+
"#{RailLocatorApi.notify_endpoint}/"
|
312
316
|
end
|
313
317
|
end
|
314
318
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module RailLocatorApi
|
2
2
|
class Request
|
3
3
|
attr_accessor :access_token, :refresh_token, :api_user_id, :api_key, :api_user_email, :api_user_password,
|
4
|
-
:api_auth_method, :api_endpoint, :union_endpoint,
|
4
|
+
:api_auth_method, :api_endpoint, :union_endpoint, :notify_endpoint,
|
5
5
|
:timeout, :open_timeout, :proxy, :ssl_options, :faraday_adapter, :symbolize_keys, :debug, :debug_options,
|
6
6
|
:without_ratelimit, :is_allow_access_to_coordinates, :logger, :test, :language
|
7
7
|
|
@@ -135,7 +135,8 @@ module RailLocatorApi
|
|
135
135
|
|
136
136
|
class << self
|
137
137
|
attr_accessor :access_token, :refresh_token, :api_user_id, :api_key, :api_user_email, :api_user_password, :api_auth_method,
|
138
|
-
:timeout, :open_timeout, :api_endpoint, :union_endpoint, :
|
138
|
+
:timeout, :open_timeout, :api_endpoint, :union_endpoint, :notify_endpoint,
|
139
|
+
:proxy, :ssl_options, :faraday_adapter, :symbolize_keys,
|
139
140
|
:debug, :debug_options, :without_ratelimit, :is_allow_access_to_coordinates, :logger, :test, :language
|
140
141
|
|
141
142
|
def method_missing(sym, *args, &block)
|