instiki/vendor/plugins/bundler/gems/bundler-1.0.15/bin/bundle
Jacques Distler 9e909d5be3 Update Rails, rails_xss and Bundler
Update Bundler to 1.0.15.
Update Rails to 2.3.12.
Update rails_xss plugin.

The latter two were the
source of a considerable
amount of grief, as rails_xss
is now MUCH stricter about what
string methods can be used.

Also made it possible to use
rake 0.9.x with Instiki. But
you probably REALLY want to use

 ruby bundle exec rake ...

instead of just saying

 rake ....
2011-06-15 00:43:38 -05:00

23 lines
560 B
Ruby
Executable file

#!/usr/bin/env ruby
# Check if an older version of bundler is installed
require 'bundler'
$:.each do |path|
if path =~ %r'/bundler-0.(\d+)' && $1.to_i < 9
abort "Please remove older versions of bundler. This can be done by running `gem cleanup bundler`."
end
end
require 'bundler/cli'
begin
Bundler::CLI.start
rescue Bundler::BundlerError => e
Bundler.ui.error e.message
Bundler.ui.debug e.backtrace.join("\n")
exit e.status_code
rescue Interrupt => e
Bundler.ui.error "\nQuitting..."
Bundler.ui.debug e.backtrace.join("\n")
exit 1
end