mobj 2.8.0 → 2.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/ext/hash.rb +2 -1
- data/lib/ext/object.rb +1 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjZlOTBhNjE0NjZlMmU4M2FiNzkwMGFmNjBmNzhhZDY2ZmJjODZjMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OGY1YmQwNmYwMzc2NzVjYWRlZGY1OWYwN2RlODQ1ZGQyYWRkYzIwOA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzE4MzMxNDZmZjUzYWE3NDE0YThjM2ZmODQ5ZDAyOWM3MmRmYmUxMTM1YTM3
|
10
|
+
ZGVhOWYzNjhjYzFhYmQ2ZTI2MTkyMzQ4ODM0YzJlMDAwZTVkMzM0NDExNzZh
|
11
|
+
ZGU4ZDZjMzgzMGM3ODNjMzUyODMyMWVkZDhlOTJlNzdhZmE2OGQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NTI4OTAwNjIwMDVlMGIyYzc3YWE3NGE2OGM3YjQ3NDRlNzAwODNlODkxYWY4
|
14
|
+
NDJiMjY3YWE2MzQ4OTk5Yzg2ZGM5MTg4YTMyNzU3MTY1ODljY2Q0MDFjYTky
|
15
|
+
YTBjYzQwYWNiMzkzOWY1MmIxYWU5NjE5MzFlNzliMDBmMGQyZjY=
|
data/lib/ext/hash.rb
CHANGED
@@ -67,9 +67,10 @@ module Mobj
|
|
67
67
|
|
68
68
|
alias :mlookup :[]
|
69
69
|
alias :mdef :default
|
70
|
+
alias :mfetch :fetch
|
70
71
|
|
71
72
|
def [](*fkeys)
|
72
|
-
fkeys.map { |key| mlookup(key) ||
|
73
|
+
fkeys.map { |key| mlookup(key) || mfetch(key.sym) { mfetch(key.to_s) { mfetch(ki(key).sym) { mfetch(ki(key).to_s) { mdef(key) } } } } }.sequester
|
73
74
|
end
|
74
75
|
end
|
75
76
|
|
data/lib/ext/object.rb
CHANGED