Faraday Gzip #1395
Replies: 2 comments 2 replies
-
The dependency method was a Faraday 1 way of postponing a require until the very last moment. A strategy to enable optional dependencies. Now with Faraday 2, we use explicit dependencies with regular require statements, at the top of the file. Nothing fancy. |
Beta Was this translation helpful? Give feedback.
-
Fantastic work @bodrovis 👏! Based on the feedback I saw from the community over the past weeks, I'd only suggest to relax the Apart from that, I can see tests are green, so nice work 👍! Next steps: you did the heavy lifting, it would only be right for you to release this gem on Rubygems so that everyone can start using it and take the credit for it. Once that's done, you can advertise your new gem in our |
Beta Was this translation helpful? Give feedback.
-
Hello again! So, I've started working on Faraday Gzip plugin, here's the repo https://github.com/bodrovis/faraday-gzip Everything seems to be working fine so far. I've tried it in my existing project and it works just like with faraday_middlware. However, I'm not sure I did everything correctly. For one thing, I'm not sure I should add zlib as a dependency like this: https://github.com/bodrovis/faraday-gzip/blob/master/faraday-gzip.gemspec#L36 Previously it was included like this https://github.com/lostisland/faraday_middleware/blob/704fd500c55c064a61e10e6d71e1f4cbecfa43d4/lib/faraday_middleware/gzip.rb#L16 but I'm not sure what's this
dependency
method. So, it would be cool if someone could review the code and perhaps adjust it.All in all, I'd be happy to transfer ownership of my repo.
Beta Was this translation helpful? Give feedback.
All reactions