Mercurial > hg > soundsoftware-site
annotate config/preinitializer.rb @ 1459:cf78a7ade302 luisf
Merge from branch "bug_794"
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Mon, 11 Nov 2013 18:25:50 +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 |