gillbus 0.14.10 → 0.14.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gillbus/base_response.rb +2 -0
- data/lib/gillbus/version.rb +1 -1
- data/test/error_test.rb +1 -0
- data/test/responses/error.xml +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 761c261acd525b888b76b115057f5edd0fd8401c
|
4
|
+
data.tar.gz: bc354c6591bb038c09fb0e10508f3c7c4dfaba74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a4219ef3b72d0216e54a3d5e6f09629fc2dfc7d932a22b9a1ccc313f8dcab1f6b22eedabf0bac59094e255ad5c23397c13a1c31a4326a47b75cd7cf855a23b3
|
7
|
+
data.tar.gz: 50634f51d28469754f202cc9943bb3a04447b0300d571f3771bca791d1efd33909fa68013c1271c8896704573ab03180eb57042a7ba1b8005039585f5431f1ba
|
@@ -11,6 +11,7 @@ class Gillbus
|
|
11
11
|
|
12
12
|
attr_accessor :error_code
|
13
13
|
attr_accessor :error_message
|
14
|
+
attr_accessor :external_error_message
|
14
15
|
|
15
16
|
def error?
|
16
17
|
! error_code.nil?
|
@@ -21,6 +22,7 @@ class Gillbus
|
|
21
22
|
if data["MESSAGE"]
|
22
23
|
instance.error_code = data["MESSAGE"]["CODE"].to_i
|
23
24
|
instance.error_message = data["MESSAGE"]["TEXT"]
|
25
|
+
instance.external_error_message = data["MESSAGE"]["EXT_TEXT"]
|
24
26
|
else
|
25
27
|
super(data, instance)
|
26
28
|
end
|
data/lib/gillbus/version.rb
CHANGED
data/test/error_test.rb
CHANGED
@@ -18,6 +18,7 @@ class ErrorTest < Minitest::Test
|
|
18
18
|
assert error_response.error?
|
19
19
|
assert_equal 4, error_response.error_code
|
20
20
|
assert_equal "Session not created error!", error_response.error_message
|
21
|
+
assert_equal "We'r fucked", error_response.external_error_message
|
21
22
|
end
|
22
23
|
|
23
24
|
def test_malformed_errorness
|
data/test/responses/error.xml
CHANGED
@@ -1 +1 @@
|
|
1
|
-
<DATA><MESSAGE><CODE>4</CODE><TEXT>Session not created error!</TEXT></MESSAGE></DATA>
|
1
|
+
<DATA><MESSAGE><CODE>4</CODE><TEXT>Session not created error!</TEXT><EXT_TEXT>We'r fucked</EXT_TEXT></MESSAGE></DATA>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gillbus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexey "codesnik" Trofimenko
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-06-
|
12
|
+
date: 2017-06-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_xml
|
@@ -309,4 +309,3 @@ test_files:
|
|
309
309
|
- test/session_login_test.rb
|
310
310
|
- test/test_helper.rb
|
311
311
|
- test/tickets_booking_test.rb
|
312
|
-
has_rdoc:
|