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: cc1c377fe9719da985f224959f006d358b76d0bc85aab6e9737de9a097e81450
4
- data.tar.gz: 917cdfc733017888b4829aa3007da9de5555a3116e48deffc2f9802a53da8bb1
3
+ metadata.gz: a89affa906350df328eda936e774ca59ec04face936911a7882ea171f1d7e08c
4
+ data.tar.gz: cddc9e9f8e4401be3881d2729393f7281bacd83adacf509007801d31983cd165
5
5
  SHA512:
6
- metadata.gz: fcce3b114dbc2c91cbdb0ffb27f35c21e0822825bedde860d13f79a991d25cb481b46a57e0c3bce72c4b9870124aa376adbfc5ef6dd2d89fbf04c4f6c8cebc61
7
- data.tar.gz: 4dee6a39a4bcb85826412de25a0733e55661a0922cd45e7fb37e4ada3dc79b1b700437d1316a73a270386f2aa623bc48431f09d770492c223ed4aeaa74ddb5f6
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
- "http://192.168.1.153:3003/"
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, :proxy, :ssl_options, :faraday_adapter, :symbolize_keys,
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)
@@ -1,3 +1,3 @@
1
1
  module RailLocatorApi
2
- VERSION = "1.0.21"
2
+ VERSION = "1.0.22"
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.21
4
+ version: 1.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Osetrov