You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifload_error.message =~ /Could not find RubyGem rails/
66
-
STDERR.puts%(Missing the Rails #{version} gem. Please `gem install -v=#{version} rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.)
67
-
exit1
68
-
else
69
-
raise
70
-
end
71
-
end
72
-
73
-
class << self
74
-
defrubygems_version
75
-
Gem::RubyGemsVersionrescuenil
76
-
end
77
-
78
-
defgem_version
79
-
ifdefined?RAILS_GEM_VERSION
80
-
RAILS_GEM_VERSION
81
-
elsifENV.include?('RAILS_GEM_VERSION')
82
-
ENV['RAILS_GEM_VERSION']
83
-
else
84
-
parse_gem_version(read_environment_rb)
85
-
end
86
-
end
87
-
88
-
defload_rubygems
89
-
min_version='1.3.2'
90
-
require'rubygems'
91
-
unlessrubygems_version >= min_version
92
-
$stderr.puts%Q(Rails requires RubyGems >= #{min_version} (you have #{rubygems_version}). Please `gem update --system` and try again.)
0 commit comments