diff options
author | Kir Shatrov <shatrov@me.com> | 2013-08-14 22:50:22 +0400 |
---|---|---|
committer | Kir Shatrov <shatrov@me.com> | 2013-08-16 13:05:07 +0400 |
commit | e73084e8dc4a8c14c493a7b23e5fbe12a37cfc88 (patch) | |
tree | 073f0f0dd84b88aff35735a8a6327825d2c0131b /bin | |
parent | e4dbd8f9e7e7e0bf289b2d5ef2122fd60843e428 (diff) | |
download | bundler-e73084e8dc4a8c14c493a7b23e5fbe12a37cfc88.tar.gz |
`bundler` bin for those who confuse it with `bundle`
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/bundle | 2 | ||||
-rwxr-xr-x | bin/bundler | 10 |
2 files changed, 11 insertions, 1 deletions
@@ -5,7 +5,7 @@ Signal.trap("INT") { exit 1 } require 'bundler' # Check if an older version of bundler is installed -$:.each do |path| +$LOAD_PATH.each do |path| if path =~ %r'/bundler-0.(\d+)' && $1.to_i < 9 err = "Looks like you have a version of bundler that's older than 0.9.\n" err << "Please remove your old versions.\n" diff --git a/bin/bundler b/bin/bundler new file mode 100755 index 00000000..35941a2a --- /dev/null +++ b/bin/bundler @@ -0,0 +1,10 @@ +#!/usr/bin/env ruby + +require 'bundler' +require 'bundler/cli' + +ui = Bundler::UI::Shell.new +ui.error "It's recommended to use Bundler through 'bundle' binary instead of 'bundler'" + +bin = "#{File.dirname(__FILE__)}/bundle #{ARGV.join(" ")}" +exec bin |