-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: update http gem dependency to 4.4.1 #33
Conversation
Signed-off-by: Moses Mendoza <mendoza.moses@gmail.com>
@repjarms @Mikemosca Could you guys please review/merge as appropriate? Thanks! |
A couple of points. Do we know for sure this http dependency upgrade in core is backward compatible? Will it break the existing ruby sdk 2.5/2.6 code base? Does the ruby sdk need an upgrade also to be compatible with core (I see a similar PR was put it for ruby sdk)? If so does this warrant a major release to sync up core and sdk? I guess we can just wing it should work. Maybe we need to do some testing on the new core before we create the release. It's up to you guys. I don't see the rush here as we state in the readme we only support 2.5 and 2.6 and ruby 2.7 has been not qualified. Perhaps more discussion and planning is needed for next week? |
Hi @Mikemosca, it looks like the ruby core automated builds are performed on 3 different versions of ruby (2.3.7, 2.4.5, and 2.5.3). |
ok, will talk to the bosses and create issue to verify the the new core. Perhaps we can fit it in next week |
I created a local core gem with the http upgrade and ran the ruby sdk tests and they passed. So it seems to be backward compatible. So will approve the change.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See new comment for next steps
🎉 This PR is included in version 1.1.3 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Hi there,
I was integrating with the Ruby SDK in a rails app, which runs ruby 2.7.2. I wasn't able to initialize an
IamAuthenticator
object in that lib and traced it down to the http gem. Relevant stack trace portion:I came across this fix that references the frozen string error. It was backported to http gem version 4.3.0. I updated the dependency in Ruby SDK but there too but it conflicted with the dependency in this project so I updated this one as well. After this fix (and the one in that repo, PR incoming) the code ran fine in rails on ruby 2.7.2 I'm running the project from gem sources in github at the moment, but here's a PR in case you want to update officially. This PR changes the dep to 4.4.x, but 4.1 -> 4.4 should be backwards-compatible. I'm not an expert at minitest but it seems all the tests pass with these changes (at least the ones triggered by
bundle exec rake
.Cheers