livingsocial / bundler-patch

Update your gems conservatively to deal with vulnerable gems or just get more current.
MIT License
65 stars 3 forks source link

Not looking in target directory for .ruby-version if --gemfile? #49

Closed chrismo closed 7 years ago

chrismo commented 7 years ago
$ bundler-patch --gemfile /tmp/bundler/Gemfile  --use-target-ruby
/Users/chrismo/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-patch-1.1.0.pre2/lib/bundler/patch/target_bundle.rb:31:in `read': No such file or directory @ rb_sysopen - .ruby-version (Errno::ENOENT)
    from /Users/chrismo/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-patch-1.1.0.pre2/lib/bundler/patch/target_bundle.rb:31:in `ruby_version'
    from /Users/chrismo/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-patch-1.1.0.pre2/lib/bundler/patch/target_bundle.rb:42:in `ruby_bin'
    from /Users/chrismo/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-patch-1.1.0.pre2/lib/bundler/patch/target_bundle.rb:67:in `ruby_bin_exe'
    from /Users/chrismo/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-patch-1.1.0.pre2/lib/bundler/patch/cli.rb:72:in `patch'
    from /Users/chrismo/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-patch-1.1.0.pre2/lib/bundler/patch/cli.rb:45:in `execute'
    from /Users/chrismo/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-patch-1.1.0.pre2/bin/bundler-patch:10:in `<top (required)>'
    from /Users/chrismo/.rbenv/versions/2.3.3/bin/bundler-patch:22:in `load'
    from /Users/chrismo/.rbenv/versions/2.3.3/bin/bundler-patch:22:in `<main>'