atol 0.6 → 0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/atol-rb.gemspec +1 -1
- data/lib/atol/config.rb +1 -0
- data/lib/atol/errors.rb +9 -27
- data/lib/atol/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75f129f8ca6618beca5e44db35155e882818694663ee505b9800fedb4767d380
|
4
|
+
data.tar.gz: 9035482fef46d4db6fbf99781251274fd12be69c6894074d97061b6b49d7976f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da49ef69b1c04f79adb7de75e49e45da3a33d313433de6589d3c92a55aa7fcac7df6cae0a9e0304ef85d54fbdd3349cb38f9581430d58af600d73a00ee9ea653
|
7
|
+
data.tar.gz: 2c6ec17732b8172fdc1e2780dbaef84f13caf843020fa2c1a470a8bfea88686e2215c135f5bcbd16d6afec7084d08c6f03683103902a772631f48917f9955c9a
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
atol (0.
|
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 (
|
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 (~>
|
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.
|
83
|
+
1.17.3
|
data/atol-rb.gemspec
CHANGED
@@ -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', '~>
|
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'
|
data/lib/atol/config.rb
CHANGED
data/lib/atol/errors.rb
CHANGED
@@ -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
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
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
|
data/lib/atol/version.rb
CHANGED
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.
|
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-
|
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: '
|
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: '
|
54
|
+
version: '13.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|