my ruby&rails project has boot.rb file it contains next method
def rubygems_version
Gem::RubyGemsVersion rescue nil
end
this method is called in next code:
def load_rubygems
require ‘rubygems’
min_version = ‘1.3.1’
unless rubygems_version >= min_version
$stderr.puts %Q(Rails requires RubyGems >= #{min_version} (you
have #{rubygems_version}). Please gem update --system and try again.)
exit 1
end
Sometime when I open my project I have a window with next text “Rails
requires RubyGems >= 1.3.1 (you have 1.2.0). Please gem update --system and try again.”
Why Gem::RubyGemsVersion rescue nil gets “1.2.0” when I have “1.3.1”
version?? Any idea?
PS: This trouble doesn’t have any affect to work of project, but I
interest how(where) can I fix it?
PSS: start “gem update --system” says “Nothing to update”
PSSS: I’m novice in Ruby so please, expand your answer (: