To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / ca / cae05f836fa0aba3f92054c65c73c78f356b7faf.svn-base @ 1297:0a574315af3e
History | View | Annotate | Download (649 Bytes)
| 1 | 1296:038ba2d95de8 | Chris | begin |
|---|---|---|---|
| 2 | require "rubygems" |
||
| 3 | require "bundler" |
||
| 4 | rescue LoadError |
||
| 5 | $stderr.puts "Redmine requires Bundler. Please install it with `gem install bundler`." |
||
| 6 | exit 1 |
||
| 7 | end |
||
| 8 | |||
| 9 | if Gem::Version.new(Bundler::VERSION) < Gem::Version.new("1.0.21")
|
||
| 10 | $stderr.puts "Redmine requires Bundler 1.0.21 (you're using #{Bundler::VERSION}).\nPlease install a newer version with `gem install bundler`."
|
||
| 11 | exit 1 |
||
| 12 | end |
||
| 13 | |||
| 14 | begin |
||
| 15 | ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", __FILE__)
|
||
| 16 | Bundler.setup |
||
| 17 | rescue Bundler::GemNotFound |
||
| 18 | $stderr.puts "Some gems may need to be installed or updated.\nPlease run `bundle install --without development test`." |
||
| 19 | exit 1 |
||
| 20 | end |