cistern 1.0.1.pre3 → 1.0.1.pre4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cistern/hash.rb +7 -1
- data/lib/cistern/version.rb +1 -1
- 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: 76a29b277f47baf8fb8b49880ed74957a27a3272
|
4
|
+
data.tar.gz: cf0deea08ce6253918497921c6f74eecdb86809a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4070e75f2028955918127abace8a977fe23a028078f41ee31c158f5f57a772df88665676f50841f86c3bf9fd9a5b114dd79391677cab1a02c9b9ff0a4d129939
|
7
|
+
data.tar.gz: 390b6fc9bc0b615d7dcc90cd0fb77ba335a01e544076bad037f88c3bf74dd1c569c4dd24b636b6292eb28330d511db84935c2a68a65f9b4f3cb8a7c52e2bbfe5
|
data/lib/cistern/hash.rb
CHANGED
@@ -6,7 +6,13 @@ class Cistern::Hash
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def self.except(hash, *keys)
|
9
|
-
|
9
|
+
Cistern::Hash.except!(hash.dup, *keys)
|
10
|
+
end
|
11
|
+
|
12
|
+
# Replaces the hash without the given keys.
|
13
|
+
def self.except!(hash, *keys)
|
14
|
+
hash.keys.each { |key| hash.delete(key) }
|
15
|
+
hash
|
10
16
|
end
|
11
17
|
|
12
18
|
def self.stringify_keys(object)
|
data/lib/cistern/version.rb
CHANGED