Module: Opencontrol::Version

Defined in:
lib/opencontrol/version.rb

Overview

This module holds the Opencontrol Linter version information.

Constant Summary collapse

STRING =
'0.1.5'.freeze
MSG =
'%<version>s (using Parser %<parser_version>s, running on ' \
'%<ruby_engine>s %<ruby_version>s %<ruby_platform>s)'.freeze

Class Method Summary collapse

Class Method Details

.version(debug = false) ⇒ Object



11
12
13
14
15
16
17
18
19
20
# File 'lib/opencontrol/version.rb', line 11

def self.version(debug = false)
  if debug
    require 'kwalify'
    format(MSG, version: STRING, parser_version: Kwalify::VERSION,
                ruby_engine: RUBY_ENGINE, ruby_version: RUBY_VERSION,
                ruby_platform: RUBY_PLATFORM)
  else
    STRING
  end
end