Chris@1115: begin Chris@1115: require "rubygems" Chris@1115: require "bundler" Chris@1115: rescue LoadError Chris@1115: $stderr.puts "Redmine requires Bundler. Please install it with `gem install bundler`." Chris@1115: exit 1 Chris@1115: end Chris@1115: Chris@1115: if Gem::Version.new(Bundler::VERSION) < Gem::Version.new("1.0.21") Chris@1115: $stderr.puts "Redmine requires Bundler 1.0.21 (you're using #{Bundler::VERSION}).\nPlease install a newer version with `gem install bundler`." Chris@1115: exit 1 Chris@1115: end Chris@1115: Chris@1115: begin Chris@1115: ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", __FILE__) Chris@1115: Bundler.setup Chris@1115: rescue Bundler::GemNotFound Chris@1115: $stderr.puts "Some gems may need to be installed or updated.\nPlease run `bundle install --without development test`." Chris@1115: exit 1 Chris@1115: end