bridge_client 0.3.0 → 0.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
  SHA1:
3
- metadata.gz: 721ad5a24a0faa531d3e34082dbeef8d60f08e5a
4
- data.tar.gz: 6bd706137b0ffa2352dd6f99434f404590a433bf
3
+ metadata.gz: a08b234d093718b7e5e443b873f5f94a127b6214
4
+ data.tar.gz: a7b91b12666151d758fc5bf6559aa88cdc280faa
5
5
  SHA512:
6
- metadata.gz: cea70d8eb81b773b332b5632da0f562bd518b13097c601193048ec7afe6212104796c4634946a1dc80d8a17d4d0b8fc6e458dfce83c7357dd652bced0d44a2d4
7
- data.tar.gz: 91fa0a7cc9ec61e8b25f7d366468810798bb3f75267554e474003c4868999b138e8c654bf838b92e748b338d96618bf74c550117bc90814f788f9b7565bf6316
6
+ metadata.gz: 793cd3442f7e86d5b6ece631f847539f01d2f6cdd927c893f6325686d135bd56f72a1ee6ac8734068331c37f4169b0db1bf2704cee4d3a799a10f967beafda59
7
+ data.tar.gz: 64b754518883ffa542eb9819e44dd0d22ba4e29feae8d6be3d600e7d172b163d6c5cdb425621cc42d01a3a7f6cde0b6edd14a6134e7b57ef31004fecb17c8bd7
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ ## [0.4.0] - 2017-04-05
8
+ ### Added
9
+ - Expose response's `code` (as `code_str`) and `message`
10
+
7
11
  ## [0.3.0] - 2017-03-31
8
12
  ### Changed
9
13
  - Use `api_client_base` `~> 1.0`
@@ -5,6 +5,8 @@ module BridgeClient
5
5
  attribute :hash, String, lazy: true, default: :default_hash
6
6
  attribute :result_xdr, String, lazy: true, default: :default_result_xdr
7
7
  attribute :ledger, Integer, lazy: true, default: :default_ledger
8
+ attribute :code_str, String, lazy: true, default: :default_code_str
9
+ attribute :message, String, lazy: true, default: :default_message
8
10
 
9
11
  private
10
12
 
@@ -24,5 +26,13 @@ module BridgeClient
24
26
  body[:ledger]
25
27
  end
26
28
 
29
+ def default_code_str
30
+ body[:code]
31
+ end
32
+
33
+ def default_message
34
+ body[:message]
35
+ end
36
+
27
37
  end
28
38
  end
@@ -1,3 +1,3 @@
1
1
  module BridgeClient
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bridge_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ramon Tayag
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-31 00:00:00.000000000 Z
11
+ date: 2017-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_config