mperham-politics 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/History.rdoc CHANGED
@@ -1,5 +1,9 @@
1
1
  = Changelog
2
2
 
3
+ == 0.2.3 (2009-01-12)
4
+
5
+ * FIx invalid result check in previous change. (Brian Dainton)
6
+
3
7
  == 0.2.2 (2009-01-07)
4
8
 
5
9
  * Fix invalid leader? logic in TokenWorker which could allow
@@ -146,7 +146,7 @@ module Politics
146
146
  # if we are now leader.
147
147
  def nominate
148
148
  result = memcache_client.add(token, worker_name, iteration_length)
149
- @leader = (result == 'STORED')
149
+ @leader = (result =~ /\ASTORED/)
150
150
  end
151
151
 
152
152
  def leader?
@@ -1,5 +1,5 @@
1
1
  module Politics
2
2
  module Version
3
- STRING = "0.2.2"
3
+ STRING = "0.2.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mperham-politics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Perham
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-12-22 00:00:00 -08:00
12
+ date: 2009-01-11 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency