IBM-Cloud / ibm-cloud-sdk-ruby

Apache License 2.0
5 stars 14 forks source link

IBM-derived SDKs need requirement updates. #50

Open jaredm-ibm opened 3 years ago

jaredm-ibm commented 3 years ago

When trying to use the VPC gem with Ruby 2.7 the http gem returns an error.

[3] pry(main)> connection.client.class.name
=> "IbmVpc::VpcV1"
[4] pry(main)> connection.client.list_instances
FrozenError: can't modify frozen String: ""
from /Users/jaredmca.ibm.com/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/http-4.1.1/lib/http/response/body.rb:52:in `force_encoding'

For IBM derived sdks the Gems and the required ibm_cloud_sdk both have HTTP 4.1 as a dependency . This needs to be updated. The bug is fixed in HTTP 4.3 (https://github.com/httprb/http/pull/581), the latest is 4.4.1. There is already a PR in the upstream to fix this https://github.com/IBM/ruby-sdk-core/pull/33https://github.com/IBM/ruby-sdk-core/pull/33, but that won't trickle down to the VPC & GlobalTags Gems until they are also updated.

agrare commented 3 years ago

Fixed in https://github.com/IBM/vpc-ruby-sdk/pull/1, pending release