Project

running

0.0
No commit activity in last 3 years
No release in over 3 years
Helpers for finding out which version of Ruby (MRI 1.8, MRI 1.9, Rubinius, etc) you are using. Use cases include testing with code features only available on certain platforms.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Running

Helpers for finding out which version of Ruby (MRI 1.8, MRI 1.9, Rubinius, etc) you are using. Use cases include testing with code features only available on certain platforms.

This code was extracted from Bundler, so that it could be used generally by the Ruby community. If you have a missing interpreter you'd like to add, please send a pull request.

Currently the following methods are present:

Running.ruby?
Running.ruby_18?
Running.ruby_19?

# MRI
Running.mri?
Running.mri_18?
Running.mri_19?

# Rubinius
Running.rbx?

# JRuby
Running.jruby?

# MagLev
Running.maglev?

# Windows
Running.mswin?
Running.mingw?
Running.mingw_18?
Running.mingw_19?

TODO

  • A way to ask which is being run would probably be useful.