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 +4 -4
- data/README.md +33 -1
- data/lib/ibm_cloud_sdk_core/api_exception.rb +1 -1
- data/lib/ibm_cloud_sdk_core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2f1a58243a7408312fa23e3d7628a6fea40359e2565ce9966da37b0655663b9c
|
|
4
|
+
data.tar.gz: 5f51521d8185cefa9f6101debb7da0214de20338d9c8d71d1997c9565fab8cd3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f5675f25b359c9109b57e40a12f187a5c859f6737f8f40ce53e4104c03e9d7d2f2ce16b19afde24a314469a2766615b591772a72e53704c0656b6c0e2e7b19b5
|
|
7
|
+
data.tar.gz: 2c6bf48c17328e76044178406ab364a5bb01ef23b10ff416e85972452bc0ac6130dbc4212f42110797de80bee6f390d67e96b36714e9ebc777900139832b89e7
|
data/README.md
CHANGED
|
@@ -1,3 +1,35 @@
|
|
|
1
|
+
[](https://travis-ci.com/IBM/ruby-sdk-core)
|
|
2
|
+
[](https://codecov.io/gh/IBM/ruby-sdk-core)
|
|
3
|
+
[](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
|
|
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
|
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.
|
|
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-
|
|
11
|
+
date: 2019-04-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: concurrent-ruby
|