Giter Site home page Giter Site logo

Comments (4)

amro avatar amro commented on August 20, 2024

Can you explain what you mean by the gemspec should specify the same Ruby Version? I don't want to specify version 0.11.0 absolutely. I could specify it as a minimum but not as the absolute version, in case people want or need to use newer versions of HTTParty.

I've been considering dropping the dependency all together. I've not had time just yet.

from gibbon.

mig-hub avatar mig-hub commented on August 20, 2024

Well the gemspec settings of HTTParty specifies a minimum Ruby version. This is why it was failing in my configuration.

To be honest since your gem does not give a specific (or minimum httparty version), Gem should try the last one but fallback to a lower version of httparty if the last one failed because of Ruby version. Maybe there is an option for this, I don't know.

The idea is that in the current state of your gemspec, Gibbon IS dependent on Ruby 1.9.3 because httparty is. If you give this version of Ruby in the gemspec, my install would instead load a previous version of Gibbon which is compatible with Ruby 1.9.2.

I agree this is not a good option because anyway the previous versions of Gibbon are probably set with an undefined version of httparty as well. It would solve nothing. I did not think about this at the time.

Regarding the other option (defining the gem version), I never suggested you should give an absolute version. Of course the minimum version is better. I was just mentioning the version in order to let you know which one worked. I don't know the internals of Gem, but maybe when the minimum is specified, it tries to fallback to this one because it is known to work.

All in all dependency management is a hard thing to deal with and I certainly did not want to force anything, I was just trying to help.

Thank you.

from gibbon.

amro avatar amro commented on August 20, 2024

I see, sorry for misunderstanding. I say I support 1.9.x so I'd definitely like to fix it. I'm just not sure how -- that's why I asked. Setting a minimum Ruby version of 1.9.3 would prevent others from running into this but it doesn't really fix your problem. I'll look into whether one can specify dependencies by Ruby version as soon as I get a chance..

from gibbon.

amro avatar amro commented on August 20, 2024

Closing this - as it's no longer relevant. Apologies for not figuring out a worth while solution. Gibbon v2 is out now.

from gibbon.

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.