nutella_lib 0.4.25 → 0.4.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/util/mongo_persisted_hash.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 350677c1641ec7dac785c5d7e3284c52516ec5d2
|
4
|
+
data.tar.gz: 027633339d28cdf9ae0500e88aee307751291cd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89d086e0a255eadcd59b2dd340ff92847d8a701f05cc3540fe259b4a6e0e0974dc576aa2573bfb1500a3b6962f907af704fab783fe5404a68ac0185e461f8e6d
|
7
|
+
data.tar.gz: e607ac47e6dcc4937898b19ad4af36050911630965e3d725c80786816554ae504948fb8fda79386f4d6523cebe91de06d76884dd7fb9048e0bf913f7a6f58c7f
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.26
|
@@ -138,6 +138,7 @@ class MongoPersistedHash
|
|
138
138
|
@s.synchronize {
|
139
139
|
@r = hash
|
140
140
|
if(@auto_save and !@r.empty?)
|
141
|
+
@r['_id'] = @doc_id
|
141
142
|
@collection.find({'_id' => @doc_id}).find_one_and_replace(@r, :upsert => :true)
|
142
143
|
end
|
143
144
|
}
|
@@ -146,6 +147,7 @@ class MongoPersistedHash
|
|
146
147
|
def save
|
147
148
|
@s.synchronize {
|
148
149
|
if(defined? @r and !@r.empty?)
|
150
|
+
@r['_id'] = @doc_id
|
149
151
|
@collection.find({'_id' => @doc_id}).find_one_and_replace(@r, :upsert => :true)
|
150
152
|
end
|
151
153
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nutella_lib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.26
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alessandro Gnoli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mqtt
|