Mercurial > hg > soundsoftware-site
annotate config/preinitializer.rb @ 1136:51d7f3e06556 redmine-2.2-integration
Fix "uninitialized constant Redmine::Scm::Adapters::CommandFailed" (see https://www.chiliproject.org/projects/chiliproject/repository/revisions/cbcce704006c6827b4a3134a2dda9de7c47f18ae)
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Thu, 10 Jan 2013 11:01:47 +0000 |
parents | 433d4f72a19b |
children |
rev | line source |
---|---|
Chris@1115 | 1 begin |
Chris@1115 | 2 require "rubygems" |
Chris@1115 | 3 require "bundler" |
Chris@1115 | 4 rescue LoadError |
Chris@1115 | 5 $stderr.puts "Redmine requires Bundler. Please install it with `gem install bundler`." |
Chris@1115 | 6 exit 1 |
Chris@1115 | 7 end |
Chris@1115 | 8 |
Chris@1115 | 9 if Gem::Version.new(Bundler::VERSION) < Gem::Version.new("1.0.21") |
Chris@1115 | 10 $stderr.puts "Redmine requires Bundler 1.0.21 (you're using #{Bundler::VERSION}).\nPlease install a newer version with `gem install bundler`." |
Chris@1115 | 11 exit 1 |
Chris@1115 | 12 end |
Chris@1115 | 13 |
Chris@1115 | 14 begin |
Chris@1115 | 15 ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", __FILE__) |
Chris@1115 | 16 Bundler.setup |
Chris@1115 | 17 rescue Bundler::GemNotFound |
Chris@1115 | 18 $stderr.puts "Some gems may need to be installed or updated.\nPlease run `bundle install --without development test`." |
Chris@1115 | 19 exit 1 |
Chris@1115 | 20 end |