Skip to content
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

webflow-ruby is not compatible with http v5 #20

Closed
vfonic opened this issue May 24, 2021 · 5 comments
Closed

webflow-ruby is not compatible with http v5 #20

vfonic opened this issue May 24, 2021 · 5 comments

Comments

@vfonic
Copy link
Contributor

vfonic commented May 24, 2021

Hey,

I just ran bundle update and it updated 'http' gem from v4.4.1 to v5.

Seems like 'http' v5 does not have method request here:
https://github.com/penseo/webflow-ruby/blob/master/lib/webflow/client.rb#L130

Maybe the 'http' dependency version number should be restricted? Or some other method could be used to get request data?

PS This is their changelog: https://github.com/httprb/http/blob/master/CHANGES.md#500-2021-05-12

@phoet
Copy link
Contributor

phoet commented May 24, 2021

did you have issues with webmock maybe? bblimke/webmock#941 (comment)

@vfonic
Copy link
Contributor Author

vfonic commented May 25, 2021

@phoet indeed! It works with webmock 3.13.0, but doesn't work with 3.12.0

Do you think you should restrict webflow-ruby dependencies somehow so that other developers don't hit this issue?

@phoet
Copy link
Contributor

phoet commented May 25, 2021

i think this is a none-issue with all dependencies moving forward in the next weeks.

@phoet
Copy link
Contributor

phoet commented May 25, 2021

also, this project has a Gemfile.lock checked into the repo. i know that this goes against some recommendations for best practices, but this type of error is exactly why i do it. other developers are guaranteed to have a working environment out of the box.

@vfonic
Copy link
Contributor Author

vfonic commented May 25, 2021

How did it happen in my case then?

There is a http/webmock version combination that is not compatible. If someone has gem 'webmock', '3.12.0' in their Gemfile, it's possible that they install webflow-ruby and the gem doesn't work for them. But I guess that's a very rare case.

@vfonic vfonic closed this as completed May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants