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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 21bf152d406847460914cf19ddd6255c42abffde
4
- data.tar.gz: 9756e4bb926d7ce5b5d7e72ebfddf76863e9beaf
3
+ metadata.gz: 761c261acd525b888b76b115057f5edd0fd8401c
4
+ data.tar.gz: bc354c6591bb038c09fb0e10508f3c7c4dfaba74
5
5
  SHA512:
6
- metadata.gz: 562463245dd334801714fe562a6e095e11530bb2a2d5c419b4d1b9d86458bbed5749e78806d9478de58376579b802bc65845385ec8d7c0d824f6ed0d8bc387f9
7
- data.tar.gz: '097a38c545e6343959d4f6fdaeaa2c06bf6c7bfa56095ce2fe65e04c9850ea833c83a8a003e6c94149d5b7ce2184e1e779d47778ec8921d7ef26dd5c8f0a9d53'
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
@@ -1,3 +1,3 @@
1
1
  class Gillbus
2
- VERSION = "0.14.10"
2
+ VERSION = "0.14.11"
3
3
  end
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
@@ -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.10
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-26 00:00:00.000000000 Z
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: