🃏 Sort Ruby & JRuby versions
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
spec
.gitignore
.rspec
.travis.yml
CHANGELOG.md
CONTRIBUTING.md
Gemfile
LICENSE.txt
README.md
Rakefile
ruby_version_sorter.gemspec

README.md

RubyVersionSorter

Gem Version Build Status

Sort Ruby Versions for human! Works for Ruby and JRuby.

Installation

Add this line to your application's Gemfile:

gem 'ruby_version_sorter'

# or if you prefer double quote:

gem "ruby_version_sorter"

And then execute:

$ bundle

Or install it yourself as:

$ gem install ruby_version_sorter

Usage

> RubyVersionSorter.sort ["2.0.0", "2.0.0-rc1", "2.0.0-rc2", "2.0.0-preview1"]
=> ["2.0.0-preview1", "2.0.0-rc1", "2.0.0-rc2", "2.0.0"]

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/JuanitoFatas/ruby_version_sorter.

License

The gem is available as open source under the terms of the MIT License.