Sha256: e5db09227a0205ad59eb465745fe6573a2c33bb588349484b159e262890bd855
Contents?: true
Size: 1.14 KB
Versions: 2
Compression:
Stored size: 1.14 KB
Contents
Ruby Version ============ **ruby-version** wraps the `RUBY_VERSION` and `RUBY_ENGINE` constant and allows the elegant Ruby version number matching on all major Ruby platforms. Usage is simple: require "ruby-version" Ruby::Version > "1.8.7" # will return true for 1.9.2 and false for 1.8.3 Or for the ruby engine name: Ruby::Engine::NAME # will return "ruby" typically (works on 1.8 too of sure) Ruby::Engine == "ruby" # or something else # will return appropriate boolean [](http://travis-ci.org/martinkozak/ruby-version) Contributing ------------ 1. Fork it. 2. Create a branch (`git checkout -b 20101220-my-change`). 3. Commit your changes (`git commit -am "Added something"`). 4. Push to the branch (`git push origin 20101220-my-change`). 5. Create an [Issue][9] with a link to your branch. 6. Enjoy a refreshing Diet Coke and wait. Copyright --------- Copyright © 2011-2012 [Martin Kozák][10]. See `LICENSE.txt` for further details. [9]: http://github.com/martinkozak/ruby-version/issues [10]: http://www.martinkozak.net/
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-version-0.4.3 | README.md |
ruby-version-0.4.2 | README.md |