gorilla-patch 0.0.12.1 → 0.0.13

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 +7 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 07630668ea491e7029d5d237edd58cc1c599e055
4
- data.tar.gz: 9815a6e21b0b9a5a2097661cf5625e7bd5e6064f
3
+ metadata.gz: e3bad21af39b97d1b27433be66347faaf33fc96b
4
+ data.tar.gz: 5e225aaf09630249aa8416dbec4dd2bc1e04f0bb
5
5
  SHA512:
6
- metadata.gz: 2c46c2c0a20ce6a0f1ff96bb1127895e38f683e016c7335279168eb240918b82427f8b7454e523d9c1a144a91d898e5b6a8a36ff93a5080af6c68c4d1afbb6e1
7
- data.tar.gz: ad309fa57d59ea556049573e81b15029d71d50322b4eb63ae9f20ccbe49faff702f9c99c9538a2ba431f002f579658bcd8a5b8f2c358bce4feaabb3c396d2132
6
+ metadata.gz: 78eb0d506cb867e637d5ea6900200dafbe9cabd6f3617606f570831e7a22659cec4a1bd028f93fdfd77146a0cd586f8f89060b6531450c85207cc62e4edb9c0b
7
+ data.tar.gz: d18a6eea064d54a4870057f57a97dcab8af8a09255013e92368bdc764c22666f39a53a1d91bd7f256e87e06d7ebe44a499ab420031a8413c5cf97dd09ca395c6
@@ -56,6 +56,13 @@ module GorillaPatch
56
56
  omit
57
57
  end
58
58
 
59
+ def slice_reverse!(*keys)
60
+ omit = slice!(*keys)
61
+ hash = dup
62
+ replace(omit)
63
+ hash
64
+ end
65
+
59
66
  def keys?(*keys)
60
67
  keys.all? { |k| key?(k) }
61
68
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gorilla-patch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12.1
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Popov