unleashed 0.1.11 → 0.1.13

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: 4cdea89c1db61c6f9af7c6c076d44b61c8c8b544700eaab32b2f0b7adba4f71e
4
- data.tar.gz: a7f23ff31284340aab544858de1a1421bf46a060a550c0b5ff943644b09fcf21
3
+ metadata.gz: e7d32b1d247ccea9399690a692565cf43b06a61990e59c2a73643d0d08889559
4
+ data.tar.gz: e32d0170f365f79bacf4bccced4f0af0722b91ca4b8ad5234f76917002c74898
5
5
  SHA512:
6
- metadata.gz: 9acacc13ac8da33f97fb58da6df5ea72a1f4a7d2b80d663e03e42d34db7542cc0b567c015f794597468aef3a36545bd1c769c04f374b1bb99aa9c85718d7e0f9
7
- data.tar.gz: f9dcd61b442996136c02b2019c52d2d5f6d5eac5e83422e37becee4910aed7c25acb9278a1fac455ebc103fe4f742738c26cabedc4f18e6968bd275feb0198b8
6
+ metadata.gz: 2d7db5fbec3130bc8fc3cf461e52a7b1847fd2130afd861f2e88e52787b8ee892f3764d22a1f8d6c31886e6b5a5da6993e44934f14b7c7caa6b52cc7199de1bc
7
+ data.tar.gz: e4e850bf51a3379bd72451a6cf334a940cd4d00ca204c7e9a54eb5337f52de9b1cb36a78d46d5175e0f2528cc4036ae2073a74a4b2c1828bafd9c0f72f149b85
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [0.1.13] - 2019-12-05
6
+
7
+ - Update version.
8
+
9
+ ## [0.1.12] - 2019-12-05
10
+
11
+ - Update some cases to show errors.
12
+
5
13
  ## [0.1.11] - 2019-12-04
6
14
 
7
15
  - Add `Payment Term`
@@ -45,8 +45,8 @@ module Unleashed
45
45
  message << json_response['description'] if json_response.key?('description')
46
46
  message << json_response['Description'] if json_response.key?('Description')
47
47
 
48
- if json_response.key?('errors')
49
- message << json_response['errors'].map { |attribute, content| "#{attribute}: #{content}" }.join(', ')
48
+ if json_response.key?('Items') && json_response['Items'].is_a?(Array)
49
+ message << json_response['Items'].map { |attribute, content| "#{attribute}: #{content}" }.join(', ')
50
50
  end
51
51
 
52
52
  message
@@ -2,7 +2,7 @@ module Unleashed
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 11
5
+ TINY = 13
6
6
 
7
7
  STRING = "#{MAJOR}.#{MINOR}.#{TINY}".freeze
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unleashed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nhan Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-04 00:00:00.000000000 Z
11
+ date: 2019-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday