annotate .svn/pristine/ca/cae05f836fa0aba3f92054c65c73c78f356b7faf.svn-base @ 1298:4f746d8966dd redmine_2.3_integration

Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author Chris Cannam
date Fri, 14 Jun 2013 09:28:30 +0100
parents 622f24f53b42
children
rev   line source
Chris@1295 1 begin
Chris@1295 2 require "rubygems"
Chris@1295 3 require "bundler"
Chris@1295 4 rescue LoadError
Chris@1295 5 $stderr.puts "Redmine requires Bundler. Please install it with `gem install bundler`."
Chris@1295 6 exit 1
Chris@1295 7 end
Chris@1295 8
Chris@1295 9 if Gem::Version.new(Bundler::VERSION) < Gem::Version.new("1.0.21")
Chris@1295 10 $stderr.puts "Redmine requires Bundler 1.0.21 (you're using #{Bundler::VERSION}).\nPlease install a newer version with `gem install bundler`."
Chris@1295 11 exit 1
Chris@1295 12 end
Chris@1295 13
Chris@1295 14 begin
Chris@1295 15 ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", __FILE__)
Chris@1295 16 Bundler.setup
Chris@1295 17 rescue Bundler::GemNotFound
Chris@1295 18 $stderr.puts "Some gems may need to be installed or updated.\nPlease run `bundle install --without development test`."
Chris@1295 19 exit 1
Chris@1295 20 end