Skip to content
This repository has been archived by the owner on May 21, 2021. It is now read-only.

Latest commit

 

History

History
67 lines (49 loc) · 1.35 KB

README.md

File metadata and controls

67 lines (49 loc) · 1.35 KB

noisrev

  • This repository is archived
  • No longer maintained
  • All versions have been yanked from https://rubygems.org/ for releasing valuable namespace for others

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

License

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