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