gorilla-patch 0.0.12 → 0.0.12.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gorilla-patch/hash.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5880c867c3a8766fc62df237934174c7376343c4
4
- data.tar.gz: 3c8450ffe8ed2a3d18f8c236d882e814fa974000
3
+ metadata.gz: 07630668ea491e7029d5d237edd58cc1c599e055
4
+ data.tar.gz: 9815a6e21b0b9a5a2097661cf5625e7bd5e6064f
5
5
  SHA512:
6
- metadata.gz: 710ed823b3321d0710942c6b3361335874da17cb3cd009514325c66ad3ed467121d24ac1792b0766f8ddbe89bfd92f53892279c1f19baad7c58641421c4e937c
7
- data.tar.gz: a1cc7d3bfdff2a20db122742a70333de8720ae8488fa0984e7eb77669b62007940bf088a1bad443379002477f073e01f2da4bcce1152e775c011a3ed5c460fae
6
+ metadata.gz: 2c46c2c0a20ce6a0f1ff96bb1127895e38f683e016c7335279168eb240918b82427f8b7454e523d9c1a144a91d898e5b6a8a36ff93a5080af6c68c4d1afbb6e1
7
+ data.tar.gz: ad309fa57d59ea556049573e81b15029d71d50322b4eb63ae9f20ccbe49faff702f9c99c9538a2ba431f002f579658bcd8a5b8f2c358bce4feaabb3c396d2132
@@ -38,11 +38,11 @@ module GorillaPatch
38
38
  end
39
39
 
40
40
  def compact
41
- dup.compact!
41
+ select { |_key, value| !value.nil? }
42
42
  end
43
43
 
44
44
  def compact!
45
- delete_if { |_k, v| v.nil? }
45
+ reject! { |_key, value| value.nil? }
46
46
  end
47
47
 
48
48
  def slice(*keys)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gorilla-patch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Popov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-10 00:00:00.000000000 Z
11
+ date: 2016-03-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Refine Ruby Core classes.
14
14
  email: alex.wayfer@gmail.com