ibm_cloud_sdk_core 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a4246cbde9bd7f851cb748bec1b534632334e64508202a822810d0e2bb2f5de6
4
- data.tar.gz: 5f388df8543fd24288f66edb14ce0e11394c3d76aa89de1830442d3b51b78fd2
3
+ metadata.gz: 2f1a58243a7408312fa23e3d7628a6fea40359e2565ce9966da37b0655663b9c
4
+ data.tar.gz: 5f51521d8185cefa9f6101debb7da0214de20338d9c8d71d1997c9565fab8cd3
5
5
  SHA512:
6
- metadata.gz: 57496087e3feb73ff6f6e8714ee22405cd43aaace2493af2c3b8d824b3ee198b3579a43c48f37b771bcbb9cca80b49c489c8659c9eba842673043b60b8c61287
7
- data.tar.gz: 512e10063200783cf8032a1b1545df28244b7aad50bd1d5ba1653c4f010b082c2f3f03080b0a1c41490410da5687879b9a16c9ad5e7ac8404f549a308f069ee0
6
+ metadata.gz: f5675f25b359c9109b57e40a12f187a5c859f6737f8f40ce53e4104c03e9d7d2f2ce16b19afde24a314469a2766615b591772a72e53704c0656b6c0e2e7b19b5
7
+ data.tar.gz: 2c6bf48c17328e76044178406ab364a5bb01ef23b10ff416e85972452bc0ac6130dbc4212f42110797de80bee6f390d67e96b36714e9ebc777900139832b89e7
data/README.md CHANGED
@@ -1,3 +1,35 @@
1
+ [![Build Status](https://travis-ci.com/IBM/ruby-sdk-core.svg?branch=master)](https://travis-ci.com/IBM/ruby-sdk-core)
2
+ [![codecov](https://codecov.io/gh/IBM/ruby-sdk-core/branch/master/graph/badge.svg)](https://codecov.io/gh/IBM/ruby-sdk-core)
3
+ [![Gem Version](https://badge.fury.io/rb/ibm_watson.svg)](https://rubygems.org/gems/ibm_cloud_sdk_core)
4
+
1
5
  # ruby-sdk-core
2
6
  This project contains the core functionality used by Ruby SDK's generated by the IBM OpenAPI 3 SDK Generator (openapi-sdkgen).
3
- Ruby code generated by openapi-sdkgen will depend on the classes contained in this project.
7
+ Ruby code generated by openapi-sdkgen will depend on the function contained in this project.
8
+
9
+ ## Installation
10
+
11
+ Install the gem:
12
+
13
+ ```bash
14
+ gem install ibm_cloud_sdk_core
15
+ ```
16
+
17
+ Inside of your Ruby program do:
18
+
19
+ ```ruby
20
+ require "ibm_cloud_sdk_core"
21
+ ```
22
+
23
+ ## Issues
24
+
25
+ If you encounter an issue with this project, you are welcome to submit a [bug report](https://github.com/IBM/ruby-sdk-core/issues).
26
+ Before opening a new issue, please search for similar issues. It's possible that someone has already reported it.
27
+
28
+ ## Open source @ IBM
29
+
30
+ Find more open source projects on the [IBM Github Page](http://github.com/IBM)
31
+
32
+ ## License
33
+
34
+ This library is licensed under Apache 2.0. Full license text is
35
+ available in [LICENSE](LICENSE).
@@ -15,7 +15,7 @@ module IBMCloudSdkCore
15
15
  body_hash = JSON.parse(response.body.to_s)
16
16
  error_message = body_hash["errors"] && body_hash["errors"][0] ? body_hash["errors"][0].message : nil
17
17
  @code = body_hash["code"] || body_hash["error_code"] || body_hash["status"]
18
- @error = error_message || body_hash["error"] || body_hash["message"]
18
+ @error = error_message || body_hash["error"] || body_hash["message"] || body_hash["errorMessage"]
19
19
  %w[code error_code status errors error message].each { |k| body_hash.delete(k) }
20
20
  @info = body_hash
21
21
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IBMCloudSdkCore
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ibm_cloud_sdk_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mamoon Raja
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-18 00:00:00.000000000 Z
11
+ date: 2019-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby