api_six_client 1.3.0 → 1.4.0

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: dd36ec4d129e75145e125183cc544adc31692f3dc24d4d03262b232d75e2040e
4
- data.tar.gz: b78b1b6d2e482e2cd6fc4a524dcb4b748ed5014b508eb43ae61d110ac3c17f3f
3
+ metadata.gz: e29c22b37f5f45718d28451acc4b121cbee82ccab46b33afd10d8661c3e8f98f
4
+ data.tar.gz: 40d0e3cf604dac049944dfbcead979f625023431a4f8c2d93b1f5d294a319426
5
5
  SHA512:
6
- metadata.gz: 300c27ce6399958c58707ec63b08b3c0228d254a117b619e811a7bc1e7ff879216d703e48b6b1bb22aaec19b90da21c229808e3b4297700783d4d7f450d3a76e
7
- data.tar.gz: 28cafdda86f08a0882c4c4cf15a08fe4be9ce4c65ab33c4bb7cbac8b828c4e66c4a16d47b534e0cc52878d9bee569ebdd37a85b2a313457193dceb4e7c686f6e
6
+ metadata.gz: 8c6873c326400959d429b9bef130fce0fb1d15db722ffbf8512f0a7be79e117574962660796fc153a4745c34cee310d3550676f89c625c7b036ce83a82585686
7
+ data.tar.gz: 7d29214ac8301acabd8b3e097fb019e89de0055dcd9e08e2662cb935b4ace0f644479725deb74cd3a9d8340f6ff982baa859897a94f8ded287d2a6e6c6294478
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- api_six_client (1.3.0)
4
+ api_six_client (1.4.0)
5
5
  faraday (~> 2)
6
6
 
7
7
  GEM
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ApiSixClient
4
+ class BaseV2Int < Base
5
+ def initialize(endpoint: nil, auth_token: nil)
6
+ @endpoint = ApiSixClient.config.endpoint_v2_int
7
+ @auth_token = ApiSixClient.config.auth_token_v2_int
8
+
9
+ raise Errors::EndpointIsEmpty unless @endpoint
10
+ raise Errors::AuthTokenIsEmpty unless @auth_token
11
+ end
12
+ end
13
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ApiSixClient
4
- VERSION = "1.3.0"
4
+ VERSION = "1.4.0"
5
5
  end
@@ -17,20 +17,22 @@ module ApiSixClient
17
17
  end
18
18
 
19
19
  class Brg < Base; end
20
- class Brg_P3 < Base; end
21
20
  class Gbk < Base; end
22
- class Kms < Base; end
23
- class Lyr < Base; end
24
21
  class Mat < Base; end
25
22
  class Val < Base; end
26
23
  class Prj < Base; end
27
- class Prj_P3 < Base; end
28
24
  class Fin < Base; end
29
25
  class Olc < Base; end
30
- class Eno < Base; end
31
- class Uas < Base; end
26
+ class Brg_P3 < Base; end
27
+ class Prj_P3 < Base; end
28
+
29
+ class Kms < BaseV2; end
30
+ class Lyr < BaseV2; end
31
+ class Eno < BaseV2; end
32
+ class Uas < BaseV2; end
32
33
 
33
- class AuthInt < BaseInt; end
34
34
  class OlcInt < BaseInt; end
35
- class UasInt < BaseInt; end
35
+
36
+ class AuthInt < BaseV2Int; end
37
+ class UasInt < BaseV2Int; end
36
38
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_six_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugene Dobrorodnov
@@ -44,6 +44,7 @@ files:
44
44
  - lib/api_six_client/base.rb
45
45
  - lib/api_six_client/base_int.rb
46
46
  - lib/api_six_client/base_v2.rb
47
+ - lib/api_six_client/base_v2_int.rb
47
48
  - lib/api_six_client/config.rb
48
49
  - lib/api_six_client/errors.rb
49
50
  - lib/api_six_client/version.rb