rail-locator-api 0.1.10 → 0.1.11

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: 1e8ee95423576357296163d541a0abad84cc8cf68a74cd5b8c8521e072702d95
4
- data.tar.gz: dbebc92d092b24738e09a79bf299958cbf3daaa4e4730db96c6680125942112d
3
+ metadata.gz: f4116acecc37e9c45d4555f0edfa0a976a7d9b371d68cfa251d7cc9070e1972e
4
+ data.tar.gz: e82ea4484f36be5cec4666543a9bd83b82f6253a842be94fe03fd1adabeed9be
5
5
  SHA512:
6
- metadata.gz: e4bceb18f9885710cffbb3639dbf73fe99bd101b0619c103f61727ead8176f74bdced031f4f7fc2e7423988ce35212c23fc77e7d0bf6b44467113ca1992a7a5f
7
- data.tar.gz: 17ecbff6d988d0855757fbd29671634de3378d3dce65478ef2fb249b7a6540f1d93968bf0f2e2b10030f58d6fcaa078d61b67d0b8cc0a63f343d8a3a5c9773e5
6
+ metadata.gz: 74d3391f55d3815fe5170a1e87521b1c133622c4d5ad9c8b75595e1f5dc92a1c9c1014f5db0e5866dbcabce0f8e7399d00d5b01f5127d84888de27c48c160d3b
7
+ data.tar.gz: 7006b7960aa5bb4ea79108d30b548039352c376eb534c4832bfbc309d5966c9b366bd81e0726e0b4f87a2e51311bcffccd430420f9f11ad5f32c9631cc51e7da
@@ -1,5 +1,5 @@
1
1
  defaults: &defaults
2
- API_ENDPOINT: "http://soap.ctm.ru:8112"
2
+ API_ENDPOINT: "https://soap.ctm.ru:8112"
3
3
 
4
4
  API_AUTH_METHOD: "api_key"
5
5
  API_KEY: "***"
@@ -143,7 +143,7 @@ module RailLocatorApi
143
143
 
144
144
  def rest_client(suffix=nil)
145
145
  client = Faraday.new("#{self.api_url}#{suffix.present? ? "/#{suffix}": ""}", proxy: self.proxy,
146
- ssl: { version: self.ssl_options }) do |faraday|
146
+ ssl: self.ssl_options) do |faraday|
147
147
  faraday.request :gzip
148
148
  faraday.response :raise_error
149
149
  faraday.adapter adapter
@@ -1,3 +1,3 @@
1
1
  module RailLocatorApi
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.11"
3
3
  end
@@ -16,7 +16,7 @@ module RailLocatorApi
16
16
  payload = "grant_type=#{RailLocatorApi.keycloak_grant_type}&client_id=#{RailLocatorApi.keycloak_client_id}&client_secret=#{RailLocatorApi.keycloak_client_secret}&code=#{RailLocatorApi::Request.api_key}&redirect_uri=#{RailLocatorApi.keycloak_redirect_uri}"
17
17
  end
18
18
  connection = Faraday.new(RailLocatorApi.keycloak_token_url, proxy: nil,
19
- ssl: { version: "TLSv1_2" }) do |faraday|
19
+ ssl: RailLocatorApi::Request.ssl_options || { version: "TLSv1_2" }) do |faraday|
20
20
  faraday.adapter Faraday.default_adapter
21
21
  faraday.response :logger, ::Logger.new(STDOUT), bodies: true
22
22
  end
@@ -31,7 +31,7 @@ module RailLocatorApi
31
31
  def refresh_access_token
32
32
  payload = "grant_type=refresh_token&client_id=#{RailLocatorApi.keycloak_client_id}&client_secret=#{RailLocatorApi.keycloak_client_secret}&refresh_token=#{RailLocatorApi::Request.refresh_token}&redirect_uri=#{RailLocatorApi.keycloak_redirect_uri}"
33
33
  connection = Faraday.new(RailLocatorApi.keycloak_token_url, proxy: nil,
34
- ssl: { version: "TLSv1_2" }) do |faraday|
34
+ ssl: RailLocatorApi::Request.ssl_options || { version: "TLSv1_2" }) do |faraday|
35
35
  faraday.adapter Faraday.default_adapter
36
36
  faraday.response :logger, ::Logger.new(STDOUT), bodies: true
37
37
  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.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Osetrov