y_support 2.0.29 → 2.0.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/y_support/abstract_algebra.rb +1 -0
- data/lib/y_support/core_ext/hash/misc.rb +1 -1
- data/lib/y_support/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fafe4c9f6a40e514b259838ea5180f75217f7cb2
|
4
|
+
data.tar.gz: 4534223fbf66588c2ced7d5686b4b9262c9058e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd540b2512452d40ebcf756b14b4e9964dabcbbeff28c0883c4d18d1e669ed0091260c42cd2d356297e57d4ccfd318f2b4ffeafbc84447df4202e237ba87d1e8
|
7
|
+
data.tar.gz: 6f6babbe0d375bd9ab298b94ccfd6a088e8d623b0b07dc452b71f9fe6a52e4087d4581a0a77c3190d57c52f06af055ed315d954dd74d3993c28f5cc2d7adfc55
|
@@ -68,7 +68,7 @@ class Hash
|
|
68
68
|
def slice matcher
|
69
69
|
case matcher
|
70
70
|
when Array then select { |key, _| matcher.include? key }
|
71
|
-
else select { |key, _| matcher === key } end
|
71
|
+
else self.class[ select { |key, _| matcher === key } ] end
|
72
72
|
end
|
73
73
|
|
74
74
|
# Makes hash keys accessible as methods. If the hash keys collide with
|
data/lib/y_support/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: y_support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.30
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- boris
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|