ibm_cloud_sdk_core 1.0.0.rc5 → 1.0.0.rc6

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: b9c7da492c8982e07c8966dcc43b5e8ed71d1b411d4b103d6da08eec6e305308
4
- data.tar.gz: 121ff83d131e1a37a6eba6798cf73683b70dc8766ca380b3e03b9b7accaced75
3
+ metadata.gz: 70da4a1a326ce6a6da58f9ffef52092c095948ccf16a22006e37d5f74f026cdd
4
+ data.tar.gz: 526ecd788ffbf7f886b039963095ed727de88dd75908246d1cb4285002b530d6
5
5
  SHA512:
6
- metadata.gz: a33cc16c974cd32dca5b7455e9fa4d49dca879f65af178702464e97cb751453ae47c4161b0d427cf2c760263216cc0fe7423ed0f15d8e51ca29f387df42fa261
7
- data.tar.gz: e37b37f437899f71ef9df009cf0210a5a7d14d273a111f40801efacf5065d6549b7226ae3ddf52c55942408221336b24f00ab428945ffe3d0f21cfd3d2ca4ab4
6
+ metadata.gz: 1a774cf1a504eb675526ce47fed47d7cdd8b83d7e7c97cead03eba2c2814b60544a22e48057d27d7ef262ee5b68560f2e288af291a689f4dd465bf0e5c753146
7
+ data.tar.gz: 0bd9c9505ff3016479562257419e525f13e1e6c26e5d2737b228d9f07f5642b9e5c90d3b79c3b619cb57a423b362c541cfbc8fdde91b9e7a2b95248335c76dd6
@@ -13,7 +13,7 @@ module IBMCloudSdkCore
13
13
  @error = response.reason
14
14
  unless response.body.empty?
15
15
  body_hash = JSON.parse(response.body.to_s)
16
- error_message = body_hash["errors"] && body_hash["errors"][0] ? body_hash["errors"][0].message : nil
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
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) }
@@ -108,7 +108,7 @@ module IBMCloudSdkCore
108
108
 
109
109
  raise ApiException.new(response: response)
110
110
  rescue OpenSSL::SSL::SSLError
111
- raise StandardError.new("If you're trying to call a service on ICP or Cloud Pak for Data, you may not have a valid SSL certificate. If you need to access the service without setting that up, try using the disable_ssl_verification option in your authentication configuration and/or setting disable_ssl_verification; on your service.")
111
+ raise StandardError.new("The connection failed because the SSL certificate is not valid. To use a self-signed certificate, set the disable_ssl_verification parameter in configure_http_client.")
112
112
  end
113
113
 
114
114
  # @note Chainable
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IBMCloudSdkCore
4
- VERSION = "1.0.0.rc5"
4
+ VERSION = "1.0.0.rc6"
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: 1.0.0.rc5
4
+ version: 1.0.0.rc6
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-09-23 00:00:00.000000000 Z
11
+ date: 2019-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby