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