-
-
Notifications
You must be signed in to change notification settings - Fork 179
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
Remove the dependency on Faraday #60
Comments
I would like to switch to net::http, we can remove faraday once we implement a proper redirect: |
In older issues I saw you also had ideas to remove faraday. Did you start with this? |
I started working on #55, but got hanged up because of the redirect issue. |
+1 Perhaps a simpler solution is enough: We only need to support HTTP GET, right? |
I've been looking into this. I'm guessing issue #55 is caused by the standard Wouldn't it be easier to use It supports a lot of stuff, for example:
|
This module was originally written to handle both windows/linux. A native ruby solution worked better than being dependent on a package that I could not install in windows. Both wget/curl can be implemented as providers to supplement the default provider (or even default providers on Linux). The util portion can be moved to download method so the default provider can be the parent provider with the download method replaced with your preferred solution on platforms where it's suitable. |
Sorry. Forgot about Windows for a moment ;-). I'll have my stab at making a provider for unix wget. |
For our use case it is difficult to get an extra gem installed. At the moment, this means we cannot use the module. I would like to use at least the types (and providers) in this module, but they are 'hard wired' using faraday.
I've looked at the code and it seems you are using faraday mostly as an easy way to call NET:HTTP. I could try and make a PR removing Faraday from the provider. Is this beneficial? Am I missing something in the reasoning for Faraday?
The text was updated successfully, but these errors were encountered: