summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-01-29 12:33:20 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-01-29 12:33:20 -0800
commitff22c54d16dc06b41df9eca54c8296d6d6a81a95 (patch)
treef64e8e3d7c6fe3b45387f4330433091733e18575
parentce84bf9ef456b965c4af9c052fc828e089e6cde1 (diff)
downloadbundler-ff22c54d16dc06b41df9eca54c8296d6d6a81a95.tar.gz
use options hash to pass options instead
-rw-r--r--lib/bundler/inline.rb4
-rw-r--r--spec/runtime/inline_spec.rb2
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