I have a project that built in 2.0.2. I want to update to 2.1 so I built a 2.1 empty project and ran meld against the two files to diff and merge them. (by the way, I just fell in love with meld, finally a merge tool that works in my left brained head) anyway the 2.1 file has a line that says the following. load(preinitializer_path) if File.exist?(preinitializer_path) the 2.0.2 file is identical except is uses File.exists? with an "s" on the end of exist load(preinitializer_path) if File.exists?(preinitializer_path) As Cecil the sea sick, sea serpent would say "What the heck?" --~--~---------~--~----~------------~-------~--~----~ 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
2008-Jun-06 06:51 UTC
Re: Strange diff in 2.1 boot.rb -- exist? vs exists?
On Jun 6, 5:17 am, Ruby Freak <twscann...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> anyway the 2.1 file has a line that says the following. > > load(preinitializer_path) if File.exist?(preinitializer_path) > > the 2.0.2 file is identical except is uses File.exists? with an "s" on > the end of exist > > load(preinitializer_path) if File.exists?(preinitializer_path) > > As Cecil the sea sick, sea serpent would say "What the heck?"File.exist? and File.exists? are identical in 1.8. File.exists? is deprecated in 1.9 Fred --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---