Replies: 3 comments 14 replies
-
Hi! Thanks for all your work on getting Faraday 2.0 ready. I'm wanting to try 2.0.0.alpha.pre.1 on a personal project, as suggested in the release notes. But my project also requires Any suggestions? |
Beta Was this translation helpful? Give feedback.
-
I am still a bit stuck on how to use the 2.0 alpha. It looks like the require "bundler/inline"
gemfile do
source "https://rubygems.org"
gem "faraday", "2.0.0.alpha.pre.1"
gem "faraday-net_http"
end
conn = Faraday.new do |builder|
builder.adapter :net_http
end
conn.get("https://github.com/") This blows up:
Digging through the faraday source, I see that it falls back to an adapter named A couple points of confusion here:
|
Beta Was this translation helpful? Give feedback.
-
One more question: what is the status of If I try this code: require "bundler/inline"
gemfile do
source "https://rubygems.org"
gem "faraday", "2.0.0.alpha.pre.2"
gem "faraday-net_http_persistent"
end
conn = Faraday.new do |builder|
builder.adapter :net_http_persistent
end
conn.get("https://github.com/") Then I get this exception:
So it looks like there is an implicit, undeclared dependency on the If I then explicitly add
It is not clear to me what that means. Any idea what is causing this? Perhaps |
Beta Was this translation helpful? Give feedback.
-
Faraday 2.0.0.alpha-1
This is the first alpha release for the upcoming Faraday 2.0 major release 🎉 .
Please note, this version is not production ready, but we'd appreciate everyone feedback if you have the chance to try it in your personal projects 🙌.
To learn more about how to safely upgrade to Faraday 2.0 and update your code, please checkout our UPGRADING guide!
And you have any feedback, please feel free to join us in Discussions 💬 !
This discussion was created from the release v2.0.0.alpha-1.
Beta Was this translation helpful? Give feedback.
All reactions