diff options
author | Samuel E. Giddins <segiddins@segiddins.me> | 2015-02-26 21:07:48 -0800 |
---|---|---|
committer | Samuel E. Giddins <segiddins@segiddins.me> | 2015-02-26 21:07:48 -0800 |
commit | 3fc5fa1cea753fcafc2141c6aa8593661da2eefa (patch) | |
tree | b3aaa0d148b9c9b3bb8bed5b62c925775c699932 | |
parent | d992a6df25aa383765a542938263708a4440e15e (diff) | |
download | bundler-3fc5fa1cea753fcafc2141c6aa8593661da2eefa.tar.gz |
[Inline] No. Tabs did NOT get committed. You saw nothing.
-rw-r--r-- | lib/bundler/inline.rb | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/lib/bundler/inline.rb b/lib/bundler/inline.rb index fb3df6d23c..b8c84f2c87 100644 --- a/lib/bundler/inline.rb +++ b/lib/bundler/inline.rb @@ -1,20 +1,20 @@ def gemfile(install = false, &blk) - require 'bundler' - old_root = Bundler.method(:root) - def Bundler.root - Pathname.pwd.expand_path - end - ENV['BUNDLE_GEMFILE'] ||= 'Gemfile' + require 'bundler' + old_root = Bundler.method(:root) + def Bundler.root + Pathname.pwd.expand_path + end + ENV['BUNDLE_GEMFILE'] ||= 'Gemfile' - builder = Bundler::Dsl.new - builder.instance_eval(&blk) - definition = builder.to_definition(nil, true) - def definition.lock(*); end - definition.validate_ruby! - Bundler::Installer.install(Bundler.root, definition, :system => true) if install - runtime = Bundler::Runtime.new(nil, definition) - runtime.setup_environment - runtime.setup.require + builder = Bundler::Dsl.new + builder.instance_eval(&blk) + definition = builder.to_definition(nil, true) + def definition.lock(file); end + definition.validate_ruby! + Bundler::Installer.install(Bundler.root, definition, :system => true) if install + runtime = Bundler::Runtime.new(nil, definition) + runtime.setup_environment + runtime.setup.require - Bundler.send(:define_singleton_method, :root, old_root) + Bundler.send(:define_singleton_method, :root, old_root) end |