Noisrev

Version <-> Noisrev

View project onGitHub

noisrev

Description

Version <-> Noisrev

Features

  • Expression for library versions
  • Keeping compatibility with String
  • Pure Ruby :)

Usage

Setup

require 'noisrev'
require 'noisrev/core_ext' #=> Version = Noisrev

Keeping comparisons with String

'0.10.0' > '0.2.0')          #=> false
Version(0, 10, 0) > '0.2.0') #=> true
'0.2.0' > Version(0, 10, 0)) #=> false
'0.2.0' > Version(0, 1, 0))  #=> true

Dependency checker

RUBY_VERSION                           #=> '1.9.3'
version = Version.parse '0.0.1'
version.runnable?                      #=> true
version.depend :Ruby, '3.0.1'
version.runnable?                      #=> false
version.depend :Ruby, '1.9.2'..'3.0.2'
version.runnable?                      #=> true

Requirements

Build Status

Build Status

Install

$ gem install noisrev

Link

License

The MIT X11 License
Copyright (c) 2012 Kenichi Kamiya
See MIT-LICENSE for further details.