conductor 0.5.11 → 0.5.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/conductor.rb +7 -4
  3. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.11
1
+ 0.5.12
@@ -11,10 +11,13 @@ class Conductor
11
11
  MINIMUM_LAUNCH_DAYS = 7
12
12
  DBG = false
13
13
 
14
- @@VERSION = "0.1.0"
15
- @@MAJOR_VERSION = "1.0"
16
- cattr_reader :VERSION
17
- cattr_reader :MAJOR_VERSION
14
+ module Version
15
+ version = Gem::Specification.load(File.expand_path("../conductor.gemspec", File.dirname(__FILE__))).version.to_s.split(".").map { |i| i.to_i }
16
+ MAJOR = version[0]
17
+ MINOR = version[1]
18
+ PATCH = version[2]
19
+ STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
20
+ end
18
21
 
19
22
  cattr_writer :cache
20
23
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 11
9
- version: 0.5.11
8
+ - 12
9
+ version: 0.5.12
10
10
  platform: ruby
11
11
  authors:
12
12
  - Noctivity