Path's issue with bundler, to change or not to change?

后端 未结 4 890
被撕碎了的回忆
被撕碎了的回忆 2021-01-15 02:47

I\'m trying to setup a new rails 3 project with bundler, but i ran into issues with bundler. I\'m on rails 3.0.3 with ruby 1.8.7

When trying to do

$          


        
4条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-15 03:00

    I too face the same issue and resolved it with the help of this link github:bundler

    Modified a line in the file lib/bundler/resolver.rb which is reside inside bundler gem. Remove * mark from the line d = Gem::Dependency.new(base.first.name, *reqs)

    like this:

    reqs = [dep.requirement.as_list, base.first.version.to_s].flatten.compact
    d = Gem::Dependency.new(base.first.name, *reqs)
    

    to

    reqs = [dep.requirement.as_list, base.first.version.to_s].flatten.compact
    d = Gem::Dependency.new(base.first.name, reqs)
    

    *modifying content of a gem directly is not a good practice. Posted this just to show another way to resolve this issue.

提交回复
热议问题