nutella_lib 0.4.14 → 0.4.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/util/mongo_persisted_hash.rb +2 -2
- data/nutella_lib.gemspec +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7ef7a4e82679694f31081f594d9e9de200b398d3
|
|
4
|
+
data.tar.gz: 7eb2f270c94ae0e3bd32890e9b3d2bd1f4713366
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 28372d4e7ad8834ee1deb77d86cbe94e7ad5a8b31af7ff79a2eb6110d90b5b7c268923092f2de438f0a15490900c1b462430ad9ccab1711f5c9b6cf67368010b
|
|
7
|
+
data.tar.gz: d0228b452466f8ee7b26033a7c5d83e55a7b1d87c85bab06f10be6c5203a17f29d0672d7256836ff66c8ce1d060f1ce285bf79442af10a9068f8b157921100d5
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.15
|
|
@@ -111,12 +111,12 @@ class MongoPersistedHash
|
|
|
111
111
|
|
|
112
112
|
def load_hash
|
|
113
113
|
r = @collection.find({_id: @doc_id}).limit(1).first
|
|
114
|
-
r.nil? ? {_id
|
|
114
|
+
r.nil? ? {'_id' => @doc_id} : r
|
|
115
115
|
end
|
|
116
116
|
|
|
117
117
|
|
|
118
118
|
def store_hash(hash)
|
|
119
|
-
@collection.find({_id
|
|
119
|
+
@collection.find({'_id' => @doc_id}).find_one_and_replace(hash, :upsert => :true)
|
|
120
120
|
end
|
|
121
121
|
|
|
122
122
|
|
data/nutella_lib.gemspec
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: nutella_lib 0.4.
|
|
5
|
+
# stub: nutella_lib 0.4.15 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "nutella_lib"
|
|
9
|
-
s.version = "0.4.
|
|
9
|
+
s.version = "0.4.15"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib"]
|