Module: ActiveInteractor::Version

Defined in:
lib/active_interactor/version.rb

Overview

The ActiveInteractor version info

Author:

Since:

  • unreleased

Constant Summary collapse

MAJOR =

The ActiveInterctor major version number

Since:

  • unreleased

1
MINOR =

The ActiveInterctor minor version number

Since:

  • unreleased

2
PATCH =

The ActiveInterctor patch version number

Since:

  • unreleased

2
PRE =

The ActiveInterctor pre-release version

Since:

  • unreleased

nil
META =

The ActiveInterctor meta version

Since:

  • unreleased

nil

Class Method Summary collapse

Class Method Details

.gem_versionString

The ActiveInterctor rubygems version

Since:

  • unreleased



31
32
33
34
# File 'lib/active_interactor/version.rb', line 31

def self.gem_version
  pre_meta = PRE.nil? ? nil : [PRE, META].compact.join('.').freeze
  [MAJOR, MINOR, PATCH, pre_meta].compact.join('.').freeze
end

.semverString

The ActiveInterctor semver version

Since:

  • unreleased



38
39
40
41
42
43
# File 'lib/active_interactor/version.rb', line 38

def self.semver
  version = [MAJOR, MINOR, PATCH].join('.')
  version = "#{version}-#{PRE}" if PRE
  version = "#{version}+#{META}" if META
  version.freeze
end