From: Mauricio Fernandez Date: 2006-04-29T16:05:33+09:00 Subject: Re: HTTP:Post and Ruby 1.8.2 On Sat, Apr 29, 2006 at 09:07:31AM +0900, Logan Capaldo wrote: > On Apr 28, 2006, at 7:58 PM, Jason Persampieri wrote: > >>Should I actually check the Ruby version? How would I actually do that? >>None of my searches paid off. > > Should you? That's debatable. Could you? Absolutely. > > % ruby -e 'p VERSION' > "1.8.4" Use RUBY_VERSION to make that future-proof: $ ruby19 -ve "p VERSION" ruby 1.9.0 (2006-02-24) [i686-linux] -e:1: uninitialized constant VERSION (NameError) $ ruby19 -ve "p RUBY_VERSION" ruby 1.9.0 (2006-02-24) [i686-linux] "1.9.0" $ ruby -ve "p RUBY_VERSION" ruby 1.8.4 (2005-12-24) [i686-linux] "1.8.4" -- Mauricio Fernandez - http://eigenclass.org - singular Ruby