Code Monkey home page Code Monkey logo

Comments (7)

kbrock avatar kbrock commented on June 8, 2024

I think this intentionally blows up when it does not know the gem. The gem is not available (yet) so it complains.

Do you want to be able to override gems that are not part of the gemfile at all and have them act like a gem command? I do something like that in my own Gemfiles

from bundler-inject.

agrare avatar agrare commented on June 8, 2024

Didn't we add ensure_gem for this?

from bundler-inject.

Fryguy avatar Fryguy commented on June 8, 2024

No, this is a different issue from ensure_gem.

from bundler-inject.

Fryguy avatar Fryguy commented on June 8, 2024

Though that being said, maybe ensure_gem would work for this case? If so, we should document that.

from bundler-inject.

agrare avatar agrare commented on June 8, 2024

If the issue is that the gem you're trying to override isn't in the main Gemfile but rather brought in by another gem, then I use ensure_gem for this all the time...basically anytime I need to override a provider sdk gem.

from bundler-inject.

agrare avatar agrare commented on June 8, 2024

Maybe that's an "undocumented" use case of ensure_gem but it 100% works 😄

from bundler-inject.

Fryguy avatar Fryguy commented on June 8, 2024

Ok, interesting - yeah then we should at least document it in the README, and then we can close this, or change it to a feature request.

from bundler-inject.

Related Issues (7)

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.