Module: Utilise

Defined in:
lib/utilise/version.rb,
lib/utilise/augment/bool.rb,
lib/utilise/augment/hash.rb,
lib/utilise/augment/time.rb,
lib/utilise/augment/crash.rb,
lib/utilise/augment/modify.rb,
lib/utilise/augment/matchers.rb

Overview

Utilise

Defined Under Namespace

Modules: Augment

Constant Summary collapse

VERSION =

The current gem version

'1.3.0'.freeze
DATE =

The version update date

'2018-08-15'.freeze
MSG =

Debug output message

'Version %<version>s %<date>s (running on %<engine>s-%<ruby>s)'.freeze

Class Method Summary collapse

Class Method Details

.version(debug = false) ⇒ Object

Outputs the current gem version



13
14
15
16
17
18
19
20
21
22
23
# File 'lib/utilise/version.rb', line 13

def version(debug = false)
  if debug
    format(MSG,
           version: VERSION,
           date: DATE,
           engine: RUBY_ENGINE,
           ruby: RUBY_VERSION)
  else
    VERSION
  end
end