infopark-politics 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODI1OGFjMGU1NWIxMjg2OWUwZWJjNzg0OWNiNzdlZDYzMWQ0YmJkMw==
4
+ OWM4NzBmMTlmNTc2NGI4OTJmNzcxYzdhZWI4Yjg2MDIxOGIyMWU2Yg==
5
5
  data.tar.gz: !binary |-
6
- MjlhZDk4NzRkNDE0ZTQ4OGEwNDJmZmQyNmY0YmY3YWQwODE1M2ZlZA==
6
+ MjVlOGE0ZWU2ZjI0Yzk4NmZmMjg3MTVjOTU3ZWQ1Mzk5NzA3OGE1Mw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NWFlYjEzZjQ0OTkxN2E2ZjUxYTYyOTUwMGM5ZTQ5NDVjNzFlMzMyMGZlZjIx
10
- NzA3Mjk2ODA0M2I4MWVmNjlhNmI0ZTQ3NWRjMmQ3ZmVjYTRiYWQ4YjA1Y2Zk
11
- YjY4ZWE5YzRlYWVkYmU2YWUzNzM4Nzk2MTZlOTI0MWQxMzU3MzQ=
9
+ OWRhMGJkYmI2OTE3NmFhOTE3YjRmYjc0ZDM4MGE0MTZiYWY1N2UxYmUxM2U1
10
+ MzRmY2M4YzllN2EwYTI4MzFhNTYzNjg3YzA2OTYyMzZhOGRlMTM1ZjgxM2Mz
11
+ MjQ4ZTgzZmNhZDU1ZTY4ZGM1MWJkMmNjODQ1NmZkZDkxM2JiZTg=
12
12
  data.tar.gz: !binary |-
13
- N2NlN2JmOGExNGJiMjM3NzE5ZTBlMWE2M2Y1MTk3NDU4M2U2Y2NmNzA2YTYy
14
- Mjk4MzBkYTU4OTk4MTVhODA1M2QyMjgzZDhlNDA2ZGYzZmE4ZDBmZGRlY2U1
15
- YmM5NjQ0YzQ2MTIyZTU3ZDkyN2U1ZDZmYzQ0N2Y4OGQzM2RmNzk=
13
+ NDVlODk5YzQ2NmY0ZGI1YTIyYjJiYjljOGJkNWU1MzJmZjM5YzRiNDc3NzFk
14
+ NjY1ZWNkNmQ1YmZiMjZkMzQ2MjU2NzhjNDE2ZTkxMjZmNjZmN2M3M2VhNWNh
15
+ NjU5YjI3OTVlZjRkOWQ5MmQ4ZjRmZWY1NDY3NjU1NDc5ZTBjOTE=
@@ -6,7 +6,7 @@ end
6
6
 
7
7
  Gem::Specification.new do |gem|
8
8
  gem.name = "infopark-politics"
9
- gem.version = "0.5.1"
9
+ gem.version = "0.5.2"
10
10
  gem.summary = "Algorithms and Tools for Distributed Computing in Ruby."
11
11
  gem.description = ""
12
12
  gem.authors = ["Mike Perham", "Tilo Prütz"]
@@ -220,7 +220,8 @@ module Politics
220
220
  end
221
221
 
222
222
  def cleanup
223
- if leader?
223
+ log.debug("cleanup: uri: #{uri}, leader_uri: #{leader_uri}, until_next_iteration: #{until_next_iteration}")
224
+ if uri == leader_uri
224
225
  @memcache_client.delete(token)
225
226
  @memcache_client.delete(restart_flag)
226
227
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infopark-politics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Perham
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-04-29 00:00:00.000000000 Z
12
+ date: 2014-05-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec