Coder Social home page Coder Social logo

Comments (11)

maksimf avatar maksimf commented on August 19, 2024 1

@mvpgomes thank you for this! I've submitted a PR: #160

from ruby-client.

maksimf avatar maksimf commented on August 19, 2024 1

@mvpgomes ok, I'll let you steal my thunder this time :D
But please, target development branch

from ruby-client.

mvpgomes avatar mvpgomes commented on August 19, 2024

@maksimf thank you, I already created a PR too #159 💃

from ruby-client.

metaskills avatar metaskills commented on August 19, 2024

At CustomInk we have quite a few applications that are in debt with Faraday pegged at ~> 0.8. Most of our newer internal client gems test Faraday from that version up to 0.11 IIRC using the Appraisal gem. Given that, two questions:

  • Is there a version of this gem that can use an older Faraday gem?
  • If not, is there any appetite to building this gem in such a way that works and is test with older Faraday gems?

from ruby-client.

maksimf avatar maksimf commented on August 19, 2024

Let me investigate on that

from ruby-client.

maksimf avatar maksimf commented on August 19, 2024

@metaskills After some research I've figured that we can't use faraday_middleware at 0.8 now, because we need FaradayMiddleware::Gzip. I think I'll find the solution how to deal with it though. I'll keep you posted here

from ruby-client.

metaskills avatar metaskills commented on August 19, 2024

because we need FaradayMiddleware::Gzip

Is that true? I was looking at the source (https://github.com/lostisland/faraday_middleware/blob/master/lib/faraday_middleware/gzip.rb) and it has the following comments:

# This middleware is NOT necessary when these adapters are used:
# - net_http on Ruby 1.9+
# - net_http_persistent on Ruby 2.0+
# - em_http

from ruby-client.

maksimf avatar maksimf commented on August 19, 2024

from ruby-client.

maksimf avatar maksimf commented on August 19, 2024

Hey @metaskills! I got rid of faraday_middleware completely and now we depend on faraday >= 0.8, so you should be fine, please confirm

from ruby-client.

metaskills avatar metaskills commented on August 19, 2024

I can confirm that we can now bundle the latest 4.2.0 to our legacy application(s).

from ruby-client.

maksimf avatar maksimf commented on August 19, 2024

Awesome!

from ruby-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.