Module: Log4j2

Defined in:
lib/log4j-2/version.rb

Overview

-*- mode: ruby -*- vi: set ft=ruby :

Constant Summary collapse

VERSION =
Log4j2.version
GEM_RELEASE =
Log4j2.release

Class Method Summary collapse

Class Method Details

.releaseObject



12
13
14
# File 'lib/log4j-2/version.rb', line 12

def self.release
  File.read('release').chomp
end

.release_version(release = Log4j2.release) ⇒ Object



16
17
18
19
20
# File 'lib/log4j-2/version.rb', line 16

def self.release_version(release = Log4j2.release)
  release_version = [Log4j2.version]
  release_version << release unless release.nil?
  release_version.join('.').freeze
end

.versionObject



8
9
10
# File 'lib/log4j-2/version.rb', line 8

def self.version
  File.read('version').chomp
end