Installing a gem from Github with Bundler

后端 未结 4 777
野趣味
野趣味 2020-12-29 06:35

I am trying to use the instructions here to install a pre-released version of a gem with bundler.

The \"bundle install\" output lists the gem as getting installed, b

4条回答
  •  自闭症患者
    2020-12-29 07:00

    I would look at the load paths, and further debug from there, example:

    ...(master) $ irb
    irb(main):001:0> $LOAD_PATH.count
    => 8
    irb(main):004:0> require 'bundler/setup'
    => true
    irb(main):005:0> $LOAD_PATH.count
    => 112
    irb(main):006:0> 
    

    Bundler configures the load path for you, this means not all the gems are included on your load path by default.

    Additionally, from the bundler git help:

    Because Rubygems lacks the ability to handle gems from git, any gems installed from a git repository will not show up in gem list. They will, however, be available after running Bundler.setup.

    Best regards, hope this helps

    ED

提交回复
热议问题