Check version

How do I check what version of Ruby I have, besides ruby -v? I'm trying
to figure out what version of 1.8.6 I have.

···

--
Posted via http://www.ruby-forum.com/.

On a command line type
ruby --version

~Jay

···

On Thu, Jul 3, 2008 at 11:52 AM, Pål Bergström <pal@palbergstrom.com> wrote:

How do I check what version of Ruby I have, besides ruby -v? I'm trying
to figure out what version of 1.8.6 I have.
--

Jayson Williams wrote:

···

On Thu, Jul 3, 2008 at 11:52 AM, P�l Bergstr�m <pal@palbergstrom.com> wrote:

On a command line type
ruby --version

~Jay

The same as ruby -v. I get "ruby 1.8.6 (2007-03-13 patchlevel 0)
[i686-darwin8.9.1]". How do I know what version of 1.8.6 I have? At
ruby-lang.org I see that they mention "Please upgrade to 1.8.5-p231".
How do I check that?
--
Posted via http://www.ruby-forum.com/\.

I think you have all the info you need. That "patchlevel" bit in
parens correlates to the p231 you saw on ruby-lang.org. You have
version 1.8.6-p0. My ruby -v reports 1.8.6 (2007-09-24 patchlevel 111)
that would be version 1.8.6-p111

~jay

···

On Thu, Jul 3, 2008 at 12:35 PM, Pål Bergström <pal@palbergstrom.com> wrote:

The same as ruby -v. I get "ruby 1.8.6 (2007-03-13 patchlevel 0)
[i686-darwin8.9.1]". How do I know what version of 1.8.6 I have? At
ruby-lang.org I see that they mention "Please upgrade to 1.8.5-p231".
How do I check that?
--

You also can use the following Ruby variables:

RUBY_FRAMEWORK_VERSION RUBY_PATCHLEVEL RUBY_PLATFORM
RUBY_RELEASE_DATE RUBY_VERSION RUBY_FRAMEWORK

HTH,
-Dana

···

--
Dana Merrick - System Administrator
Integrated Computer Solutions, Inc.
54B Middlesex Tpke, Bedford, MA 01730
617.621.0060 x112 - http://www.ics.com