Module: Corvus::Version

Defined in:
lib/corvus/version.rb

Overview

define the version of the gem

Since:

  • 0.0.1

Constant Summary collapse

MAJOR =

Since:

  • 0.0.1

0
MINOR =

Since:

  • 0.0.1

0
PATCH =

Since:

  • 0.0.1

11
STRING =

Since:

  • 0.0.1

[MAJOR, MINOR, PATCH].compact.join('.')
NAME =

Since:

  • 0.0.1

'Corvus'
"#{NAME} v%s"

Class Method Summary collapse

Class Method Details

.json_versionstring

format the version

Returns:

  • (string)

    a properly formated json version

Since:

  • 0.0.1



34
35
36
37
38
# File 'lib/corvus/version.rb', line 34

def json_version
  {
    'version' => STRING
  }.to_json
end

.versionstring

format the version

Returns:

  • (string)

    a properly formated version string

Since:

  • 0.0.1



27
28
29
# File 'lib/corvus/version.rb', line 27

def version
  format(BANNER, STRING)
end