From 8e2b8e729e28880c8deb1c65b6c7efb48b515e04 Mon Sep 17 00:00:00 2001 From: flippingbits Date: Mon, 6 Dec 2010 15:27:03 +0100 Subject: [PATCH] Bump to version 0.2.1: Titan::Thread#pid has to be an Integer --- CHANGELOG.md | 6 ++++++ lib/titan/thread.rb | 2 +- lib/titan/version.rb | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dce5db3..c1db35a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 0.2.1 (December 6, 2010) + +- Bug fixes + + * Titan::Titan#pid has to be an Integer + ## 0.2.0 (December 4, 2010) - Features diff --git a/lib/titan/thread.rb b/lib/titan/thread.rb index 0149317..3ccd223 100644 --- a/lib/titan/thread.rb +++ b/lib/titan/thread.rb @@ -112,7 +112,7 @@ def load_threads check_filesystem pid_files.each{ |pid_file| thread = Titan::Thread.new(:id => File.basename(pid_file, ".pid")) - thread.pid = File.read(File.expand_path(pid_file, TITAN_DIRECTORY)) + thread.pid = File.read(File.expand_path(pid_file, TITAN_DIRECTORY)).to_i @@threads[thread.id] = thread } end diff --git a/lib/titan/version.rb b/lib/titan/version.rb index 01fb6b0..eb73524 100644 --- a/lib/titan/version.rb +++ b/lib/titan/version.rb @@ -1,3 +1,3 @@ module Titan - VERSION = "0.2.0" + VERSION = "0.2.1" end