Running
Helpers for finding out which version of Ruby (MRI 1.8, MRI 1.9, Rubinius, etc) you are using.
Install / Use
/learn @kyledrake/RunningREADME
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.
Related Skills
node-connect
351.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
