atol 0.6 → 0.7

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: 119dc88de00bf035348579ccd3ffbab19cb111c5954813d4e5360f7b8369238f
4
- data.tar.gz: 5125f41067697b72eaa47003793b15ae4da7a316b356341a81a0990708205d1d
3
+ metadata.gz: 75f129f8ca6618beca5e44db35155e882818694663ee505b9800fedb4767d380
4
+ data.tar.gz: 9035482fef46d4db6fbf99781251274fd12be69c6894074d97061b6b49d7976f
5
5
  SHA512:
6
- metadata.gz: 4e49e4297082df0394093304e521dd1b7611ade9b57898e87a4c2a6a4af83c7cc1e1881a46406f4ab89716d69605b3c3f62a80d04141032600851435fea63dc6
7
- data.tar.gz: f5194d22d0e9011c265f41ddfac571920de839eca6d73cb2afaf9a6a78ee883ed5a0f88351f218522a99669d6569086ea2c44177d284bed646f35dde2efa1103
6
+ metadata.gz: da49ef69b1c04f79adb7de75e49e45da3a33d313433de6589d3c92a55aa7fcac7df6cae0a9e0304ef85d54fbdd3349cb38f9581430d58af600d73a00ee9ea653
7
+ data.tar.gz: 2c6ec17732b8172fdc1e2780dbaef84f13caf843020fa2c1a470a8bfea88686e2215c135f5bcbd16d6afec7084d08c6f03683103902a772631f48917f9955c9a
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- atol (0.6)
4
+ atol (0.7)
5
5
  anyway_config (~> 1.0)
6
6
 
7
7
  GEM
@@ -29,7 +29,7 @@ GEM
29
29
  powerpack (0.1.1)
30
30
  public_suffix (3.0.1)
31
31
  rainbow (3.0.0)
32
- rake (10.5.0)
32
+ rake (13.0.1)
33
33
  rspec (3.7.0)
34
34
  rspec-core (~> 3.7.0)
35
35
  rspec-expectations (~> 3.7.0)
@@ -74,10 +74,10 @@ DEPENDENCIES
74
74
  atol!
75
75
  bundler (~> 1.15)
76
76
  coveralls
77
- rake (~> 10.0)
77
+ rake (~> 13.0)
78
78
  rspec (~> 3.0)
79
79
  rubocop
80
80
  webmock (~> 3.0)
81
81
 
82
82
  BUNDLED WITH
83
- 1.16.4
83
+ 1.17.3
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.add_dependency 'anyway_config', '~> 1.0'
26
26
 
27
27
  spec.add_development_dependency 'bundler', '~> 1.15'
28
- spec.add_development_dependency 'rake', '~> 10.0'
28
+ spec.add_development_dependency 'rake', '~> 13.0'
29
29
  spec.add_development_dependency 'rspec', '~> 3.0'
30
30
  spec.add_development_dependency 'rubocop', '~> 0.52'
31
31
  spec.add_development_dependency 'webmock', '~> 3.0'
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'anyway'
4
4
  require 'net/http'
5
+ require 'atol/version'
5
6
 
6
7
  module Atol
7
8
  class Config < Anyway::Config
@@ -7,46 +7,28 @@ module Atol
7
7
  class ConfigExpectedError < StandardError; end
8
8
  class UnknownOperationError < StandardError; end
9
9
  class BadJSONError < StandardError; end
10
- class IncomingBadRequestError < StandardError; end
11
10
  class IncomingOperationNotSupportError < StandardError; end
12
11
  class IncomingMissingTokenError < StandardError; end
13
- class IncomingNotExistTokenError < StandardError; end
14
12
  class IncomingExpiredTokenError < StandardError; end
15
13
  class IncomingExistExternalIdError < StandardError; end
16
14
  class GroupCodeToTokenError < StandardError; end
17
- class IsNullExternalIdError < StandardError; end
18
15
  class EmptyClientContactError < StandardError; end
19
16
  class EmptySellItemsError < StandardError; end
20
- class IncomingQueueTimeoutError < StandardError; end
21
17
  class IncomingValidationError < StandardError; end
22
- class IncomingQueueError < StandardError; end
23
- class StateBadRequestError < StandardError; end
24
- class StateMissingTokenError < StandardError; end
25
- class StateNotExistTokenError < StandardError; end
26
- class StateExpiredTokenError < StandardError; end
27
18
  class StateMissingUuidError < StandardError; end
28
19
  class StateNotFoundError < StandardError; end
29
20
  class ZeroItemQuantityError < StandardError; end
30
21
 
31
22
  ERRORS = Hash[
32
- 1 => BadJSONError,
33
- 2 => IncomingBadRequestError,
34
- 3 => IncomingOperationNotSupportError,
35
- 4 => IncomingMissingTokenError,
36
- 5 => IncomingNotExistTokenError,
37
- 6 => IncomingExpiredTokenError,
38
- 7 => IncomingQueueTimeoutError,
39
- 8 => IncomingValidationError,
40
- 9 => IncomingQueueError,
41
- 10 => IncomingExistExternalIdError,
42
- 11 => StateBadRequestError,
43
- 12 => StateMissingTokenError,
44
- 13 => StateNotExistTokenError,
45
- 14 => StateExpiredTokenError,
46
- 15 => StateMissingUuidError,
47
- 16 => StateNotFoundError,
48
- 22 => GroupCodeToTokenError,
49
- 23 => IsNullExternalIdError,
23
+ 0 => BadJSONError,
24
+ 10 => IncomingMissingTokenError,
25
+ 11 => IncomingExpiredTokenError,
26
+ 20 => GroupCodeToTokenError,
27
+ 30 => StateMissingUuidError,
28
+ 31 => IncomingOperationNotSupportError,
29
+ 32 => IncomingValidationError,
30
+ 33 => IncomingExistExternalIdError,
31
+ 34 => StateNotFoundError,
50
32
  -3804 => ZeroItemQuantityError
51
33
  ].freeze
52
34
  end
@@ -3,6 +3,6 @@
3
3
  module Atol
4
4
  module Version
5
5
  API = 'v4'
6
- LIB = '0.6'
6
+ LIB = '0.7'
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atol
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.6'
4
+ version: '0.7'
5
5
  platform: ruby
6
6
  authors:
7
7
  - GeorgeGorbanev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-19 00:00:00.000000000 Z
11
+ date: 2020-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: anyway_config
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '10.0'
47
+ version: '13.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '10.0'
54
+ version: '13.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement