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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4e48f751b56beafeaeb5589f3653168b7f372070
4
- data.tar.gz: 3c01cf72c2403bcfe306a6b215beac8887e24cca
3
+ metadata.gz: 76a29b277f47baf8fb8b49880ed74957a27a3272
4
+ data.tar.gz: cf0deea08ce6253918497921c6f74eecdb86809a
5
5
  SHA512:
6
- metadata.gz: 27d9cb1aa59575d1dc956b6ab83fa76e0475751326d9f3d57bd59457b2385994d92f9d3086ec4b8f164f598c67e6afd74996328cc3eda48139f59dc5df1fc571
7
- data.tar.gz: ca38189bc277721251b59bda6ea330515bd9cb876adb5f78df549536b5e701f40e3979d4a92b5fc4825b85bb59d66852b020c0af572df3cfd17ebba64ce4354f
6
+ metadata.gz: 4070e75f2028955918127abace8a977fe23a028078f41ee31c158f5f57a772df88665676f50841f86c3bf9fd9a5b114dd79391677cab1a02c9b9ff0a4d129939
7
+ data.tar.gz: 390b6fc9bc0b615d7dcc90cd0fb77ba335a01e544076bad037f88c3bf74dd1c569c4dd24b636b6292eb28330d511db84935c2a68a65f9b4f3cb8a7c52e2bbfe5
@@ -6,7 +6,13 @@ class Cistern::Hash
6
6
  end
7
7
 
8
8
  def self.except(hash, *keys)
9
- hash.dup.except!(*keys)
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)
@@ -1,3 +1,3 @@
1
1
  module Cistern
2
- VERSION = "1.0.1.pre3"
2
+ VERSION = "1.0.1.pre4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cistern
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1.pre3
4
+ version: 1.0.1.pre4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Lane