diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-01-29 12:33:20 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-01-29 12:33:20 -0800 |
commit | ff22c54d16dc06b41df9eca54c8296d6d6a81a95 (patch) | |
tree | f64e8e3d7c6fe3b45387f4330433091733e18575 | |
parent | ce84bf9ef456b965c4af9c052fc828e089e6cde1 (diff) | |
download | bundler-ff22c54d16dc06b41df9eca54c8296d6d6a81a95.tar.gz |
use options hash to pass options instead
-rw-r--r-- | lib/bundler/inline.rb | 4 | ||||
-rw-r--r-- | spec/runtime/inline_spec.rb | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/bundler/inline.rb b/lib/bundler/inline.rb index 4de025a5a4..b9b2d1705b 100644 --- a/lib/bundler/inline.rb +++ b/lib/bundler/inline.rb @@ -27,7 +27,9 @@ # # puts Pod::VERSION # => "0.34.4" # -def gemfile(install = false, ui = nil, &gemfile) +def gemfile(install = false, options = {}, &gemfile) + ui = options[:ui] + require "bundler" old_root = Bundler.method(:root) def Bundler.root diff --git a/spec/runtime/inline_spec.rb b/spec/runtime/inline_spec.rb index 8356e37536..894af4be7d 100644 --- a/spec/runtime/inline_spec.rb +++ b/spec/runtime/inline_spec.rb @@ -102,7 +102,7 @@ describe "bundler/inline#gemfile" do puts "CONFIRMED!" end end - gemfile(true, MyBundlerUI.new) do + gemfile(true, ui: MyBundlerUI.new) do source "https://rubygems.org" gem "activesupport", :require => true end |