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
$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.)
66
+
exit1
67
+
end
68
+
69
+
class << self
70
+
defrubygems_version
71
+
Gem::RubyGemsVersionrescuenil
72
+
end
73
+
74
+
defgem_version
75
+
ifdefined?RAILS_GEM_VERSION
76
+
RAILS_GEM_VERSION
77
+
elsifENV.include?('RAILS_GEM_VERSION')
78
+
ENV['RAILS_GEM_VERSION']
79
+
else
80
+
parse_gem_version(read_environment_rb)
81
+
end
82
+
end
83
+
84
+
defload_rubygems
85
+
require'rubygems'
86
+
min_version='1.3.1'
87
+
unlessrubygems_version >= min_version
88
+
$stderr.puts%Q(Rails requires RubyGems >= #{min_version} (you have #{rubygems_version}). Please `gem update --system` and try again.)
0 commit comments