Hello, 1) gem -v shows next: "1.3.1" 2) 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 (: -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 13 Jan 2009, at 23:18, Rred Cat wrote:> > Hello,Do you have more than one install of ruby (eg one in /usr/bin, the other in /usr/local/bin ?) Fred> > > 1) gem -v shows next: "1.3.1" > 2) 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 (: > -- > Posted via http://www.ruby-forum.com/. > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung wrote:> On 13 Jan 2009, at 23:18, Rred Cat wrote: > >> >> Hello, > > Do you have more than one install of ruby (eg one in /usr/bin, the > other in /usr/local/bin ?) > > FredHello Fred, I think that was not present. link (Ruby) and executable (Ruby1.8) was presented in /usr/bin, but /usr/local/bin is empty. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
try installing the gem "rubygems-update" and then call "sudo update_gems". --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I had something similar, check your installations and paths... Cheers, Sazima On Jan 13, 9:18 pm, Rred Cat <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hello, > > 1) gem -v shows next: "1.3.1" > 2) 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 (: > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Jan 14, 7:23 am, Rred Cat <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Frederick Cheung wrote: > > On 13 Jan 2009, at 23:18, Rred Cat wrote: > > >> Hello, > > > Do you have more than one install of ruby (eg one in /usr/bin, the > > other in /usr/local/bin ?) > > > Fred > > Hello Fred, > I think that was not present. > link (Ruby) and executable (Ruby1.8) was presented in /usr/bin, but > /usr/local/bin is empty.They could be in other places - those were just examples. Comparing the output of which gem and which ruby might be enlightening. Fred> -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---