Module: Guava

Defined in:
lib/guava/version.rb

Overview

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

Constant Summary collapse

VERSION =
Guava.version
GEM_RELEASE =
Guava.release

Class Method Summary collapse

Class Method Details

.releaseObject



12
13
14
# File 'lib/guava/version.rb', line 12

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

.release_version(release = Guava.release) ⇒ Object



16
17
18
19
20
# File 'lib/guava/version.rb', line 16

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

.versionObject



8
9
10
# File 'lib/guava/version.rb', line 8

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