Module: Evoker::VERSION

Defined in:
lib/evoker/version.rb

Overview

Version information

Constant Summary collapse

MAJOR =

Major version number

0
MINOR =

Minor version number

0
TINY =

Tiny version number

10
STRING =

Full version number as string

[MAJOR, MINOR, TINY].join('.')

Class Method Summary collapse

Class Method Details

.require_version(major, minor = 0, tiny = 0) ⇒ Object

Raise an error if Evoker version is older than required.


17
18
19
20
21
# File 'lib/evoker/version.rb', line 17

def VERSION.require_version(major, minor=0, tiny=0)
  unless ([MAJOR, MINOR, TINY] <=> [major, minor, tiny]) >= 0
    raise "Evoker version #{MAJOR}.#{MINOR}.#{TINY} is below required #{major}.#{minor}.#{tiny}"
  end
end