Code Monkey home page Code Monkey logo

Comments (5)

hurricup avatar hurricup commented on July 17, 2024 1

Any updates on bundle install handling?

from asdf-ruby.

 avatar commented on July 17, 2024

Actually, asdf-ruby is doing it for us.
I'm running Ubuntu 16.04 and I'm able to use a gem right after I've installed it.
Try to update asdf-ruby.

from asdf-ruby.

AlexWayfer avatar AlexWayfer commented on July 17, 2024

I'm tired to reinstall all rubies and gems, so let's wait for #61.

from asdf-ruby.

mattbrictson avatar mattbrictson commented on July 17, 2024

So, I've ran bundle, which installed needed dependencies, but I can't exec rspec

Agreed, I am seeing the same thing.

I have found that:

  • asdf-ruby does automatically reshim if you install a gem via gem install ...
  • it does not automatically reshim if you install gems via bundle install

Looking at the code, it appears this is because asdf-ruby has only partially implemented the solution that rbenv uses. You can see that in asdf-ruby, it hooks into gem install:

Gem.post_install do |installer|
if installer.spec.executables.any? && installer.bin_dir == Gem.default_bindir
installer.spec.executables.each do |executable|
`asdf reshim ruby #{RUBY_VERSION} bin/#{executable}`
end
end
end

But it does not hook into bundler like rbenv does here:

https://github.com/rbenv/rbenv/blob/1c772d5ff21bbee52e0c6cdf128c5cffaf8feea8/rbenv.d/exec/gem-rehash/rubygems_plugin.rb#L14-L35

from asdf-ruby.

AlexWayfer avatar AlexWayfer commented on July 17, 2024

@mattbrictson nice catch! Thank you.

from asdf-ruby.

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.