<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,9 @@
 = Changelog
 
+== 0.2.5 (2009-02-04)
+
+* Gracefully handle MemCache::MemCacheErrors.  Just sleep until memcached comes back.
+
 == 0.2.4 (2009-01-28)
 
 * Reduce leader token expiration time to discourage a get/set race condition. (Brian Dainton)</diff>
      <filename>History.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 Gem::Specification.new do |s|
-	s.name = &quot;politics&quot;
-	s.version = &quot;0.2.4&quot;
+	s.name = &quot;mperham-politics&quot;
+	s.version = &quot;0.2.5&quot;
 	s.authors = &quot;Mike Perham&quot;
 	s.email = &quot;mperham@gmail.com&quot;
 	s.homepage = &quot;http://github.com/mperham/politics/&quot;</diff>
      <filename>politics.gemspec</filename>
    </modified>
    <modified>
      <diff>@@ -16,4 +16,4 @@ end
 
 $:.unshift(File.dirname(__FILE__) + '/../lib')
 require File.dirname(__FILE__) + '/../lib/init'
-#Politics::log.level = Logger::WARN
\ No newline at end of file
+Politics::log.level = Logger::WARN
\ No newline at end of file</diff>
      <filename>test/test_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -34,6 +34,17 @@ class TokenWorkerTest &lt; Test::Unit::TestCase
       end
     end
 
+    should 'handle unexpected MemCache errors' do
+      @worker.expects(:nominate)
+      @worker.expects(:leader?).raises(MemCache::MemCacheError)
+      Politics::log.expects(:error).times(3)
+
+      @worker.register_worker('testing')
+      @worker.process do
+        assert false
+      end
+    end
+
     should 'process if they are leader' do
       @worker.expects(:nominate)
       @worker.expects(:leader?).returns(true)</diff>
      <filename>test/token_worker_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>38a432af969d986dd896df7c2844e904394a68b5</id>
    </parent>
  </parents>
  <author>
    <name>Mike Perham</name>
    <email>mperham@gmail.com</email>
  </author>
  <url>http://github.com/mperham/politics/commit/2aa5b7edfe9307d18f35c102def7a696b11cbc53</url>
  <id>2aa5b7edfe9307d18f35c102def7a696b11cbc53</id>
  <committed-date>2009-02-05T08:45:53-08:00</committed-date>
  <authored-date>2009-02-05T08:45:53-08:00</authored-date>
  <message>Release 0.2.5 with memcache error handling</message>
  <tree>3a5c4596ac3d57f1362de5435aa40c137f80304f</tree>
  <committer>
    <name>Mike Perham</name>
    <email>mperham@gmail.com</email>
  </committer>
</commit>
