Skip to content

Commit 6ca6c16

Browse files
committed
Updated boot.rb so it plays nice with 1.9.
1 parent dcb8afa commit 6ca6c16

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

config/boot.rb

+3-2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class VendorBoot < Boot
4444
def load_initializer
4545
require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
4646
Rails::Initializer.run(:install_gem_spec_stubs)
47+
Rails::GemDependency.add_frozen_gem_path
4748
end
4849
end
4950

@@ -67,7 +68,7 @@ def load_rails_gem
6768

6869
class << self
6970
def rubygems_version
70-
Gem::RubyGemsVersion if defined? Gem::RubyGemsVersion
71+
Gem::RubyGemsVersion rescue nil
7172
end
7273

7374
def gem_version
@@ -82,7 +83,7 @@ def gem_version
8283

8384
def load_rubygems
8485
require 'rubygems'
85-
min_version = '1.1.1'
86+
min_version = '1.3.1'
8687
unless rubygems_version >= min_version
8788
$stderr.puts %Q(Rails requires RubyGems >= #{min_version} (you have #{rubygems_version}). Please `gem update --system` and try again.)
8889
exit 1

0 commit comments

Comments
 (0)