nutella_lib 0.4.20 → 0.4.21

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0fb621dfc6b34d3974b40b76e7a2ceaabb154034
4
- data.tar.gz: 2d11f31335d790eab2995c7bbfe87a401e559808
3
+ metadata.gz: e3e2b54d460a5de2326d5e2e6e641c6bd5f9a540
4
+ data.tar.gz: 84027a63602c644b706d3d093c41b5857e56bb12
5
5
  SHA512:
6
- metadata.gz: 494b6dbb531808a913cdcfa9a21b71ff069ce16ed8c81b80494038d466448569b50ba4b3d783ec879720db36422b260eaad4485b8d546973be4de1b0aa6de349
7
- data.tar.gz: 27820fe5693a86b97576f31a9932a106e2f89405e1c1d9b859bc4680f392a61c23a95913eb5f6d2728966dd3e7d6b4cc2beb8f5d7b007fec9d59e308f964a611
6
+ metadata.gz: 8fd668e508c18553d0b6c5b5c6b57888ba318d5b7d396d41b7de4fde5a53c199f8769723dae7ef03615354ff86e4b0bf7216b9f095bd5795cb0f30150eab3b87
7
+ data.tar.gz: a3de70457d6da41e92125e2c2edfbe386bee3e92f98c6639177827a22de03b9f43f43e4caba4b4a089c756f310a5d9da9e375b9196639be1d7d57040eaf76dad
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.20
1
+ 0.4.21
@@ -23,9 +23,9 @@ class MongoPersistedHash
23
23
  @s = Mutex.new
24
24
 
25
25
  Thread.new {
26
- while sleep 1
26
+ while sleep 1.0
27
27
  @s.synchronize {
28
- if(!defined? @r)
28
+ if(defined? @r)
29
29
  @collection.find({'_id' => @doc_id}).find_one_and_replace(@r, :upsert => :true)
30
30
  end
31
31
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nutella_lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.20
4
+ version: 0.4.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Gnoli