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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c8350b0d60a7ecfa57ae8f2c794a4d9f1e52461e
4
- data.tar.gz: e88f23e2a3a4cb9af2e5e3b2e4e583370cfbbdf0
3
+ metadata.gz: 350677c1641ec7dac785c5d7e3284c52516ec5d2
4
+ data.tar.gz: 027633339d28cdf9ae0500e88aee307751291cd8
5
5
  SHA512:
6
- metadata.gz: 5ae8e248442adf73196a6c70cef6621a7e6affd28717786e7f9cfec32d6daa89db945ca613b0e177ee1f36304e2ac10136f694266da52f4b0b4d5d879cdbce06
7
- data.tar.gz: 6c801b3f4804aac7f64cf7437283fddb147325a1559877a683c36197f0aff67335b3bb69112d7620d86581ab4402c233cd661134004c443a6c39698574e4c74d
6
+ metadata.gz: 89d086e0a255eadcd59b2dd340ff92847d8a701f05cc3540fe259b4a6e0e0974dc576aa2573bfb1500a3b6962f907af704fab783fe5404a68ac0185e461f8e6d
7
+ data.tar.gz: e607ac47e6dcc4937898b19ad4af36050911630965e3d725c80786816554ae504948fb8fda79386f4d6523cebe91de06d76884dd7fb9048e0bf913f7a6f58c7f
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.25
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.25
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-03 00:00:00.000000000 Z
11
+ date: 2015-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mqtt