titan 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.1.1 (November 26, 2010)
2
+
3
+ - Features
4
+
5
+ * Synchronize a thread after changing its id by default
6
+
1
7
  ## 0.1.0 (November 26, 2010)
2
8
 
3
9
  !!! Cleaned up the API. Now, everything is available through Titan::Thread.
data/lib/titan/thread.rb CHANGED
@@ -28,7 +28,7 @@ module Titan
28
28
  end
29
29
 
30
30
  Process.detach(@pid)
31
- Thread.add(self)
31
+ Titan::Thread.add(self)
32
32
  end
33
33
 
34
34
  #
@@ -48,6 +48,13 @@ module Titan
48
48
  false
49
49
  end
50
50
 
51
+ def id=(id)
52
+ @@threads.delete(@id)
53
+ @id = id
54
+ @@threads[id] = self
55
+ Titan::Thread.save_threads
56
+ end
57
+
51
58
  class << self
52
59
  def add(thread)
53
60
  load_threads
data/lib/titan/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Titan
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Stefan Sprenger