keylime 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/keylime.gemspec +1 -1
- data/lib/keylime/credential.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a21114a6aa5f7156a2e35579e1403489f4a9c0b2b4d7444ef5a0479fb5cf4dd
|
4
|
+
data.tar.gz: c2c3eb6b3c5dccc744d160e7ebd3a3e9115aacd08a84e690c288e833a365e59d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41f817258287dd2d1e2f5d9f4fcd1292b47aeca9e66eff4e5ec0269be281851cd960627387dd16e66bdef2dddeb2b12fa359154beec3adbc5207e8b357dab9af
|
7
|
+
data.tar.gz: 6987ae38b09ee19ede33a889ed025bb136aa97b61f1cb4aefc182a317737f5ac243882db05d6a305fa637669ed864a94390670c73a6c4904143b5a5a58cf7a47
|
data/keylime.gemspec
CHANGED
data/lib/keylime/credential.rb
CHANGED
@@ -86,7 +86,7 @@ module Keylime
|
|
86
86
|
def where(fields = {})
|
87
87
|
fields = stringify(fields)
|
88
88
|
entries.select do |x|
|
89
|
-
fields.all? { |k, v| x[k] == v }
|
89
|
+
fields.all? { |k, v| x.fields[k] == v }
|
90
90
|
end
|
91
91
|
end
|
92
92
|
|
@@ -103,7 +103,7 @@ module Keylime
|
|
103
103
|
raise('No fields given') if fields.empty?
|
104
104
|
fields = stringify(fields)
|
105
105
|
new = entries.select do |x|
|
106
|
-
fields.any? { |k, v| x[k] != v }
|
106
|
+
fields.any? { |k, v| x.fields[k] != v }
|
107
107
|
end
|
108
108
|
write_file! new
|
109
109
|
end
|