kungfuig 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kungfuig/aspector.rb +2 -2
- data/lib/kungfuig/prepender.rb +0 -2
- data/lib/kungfuig/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bc5b787ab92031c371117733c47452bea13267a
|
4
|
+
data.tar.gz: e5726f3b9fcbb9cec43119881b55889054d71269
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f35f35a15ad71043f721b6e37e3ebb0c56e06bd9a8bf5810ecdf17ff7047f2749724d6072657199f50def0f58b4b2946b097743f5c99f440f37130a0f7339ab9
|
7
|
+
data.tar.gz: f72df9d8e4c102b0b9855e1e097e4eb20caa225bfac21b651d04d184c026ac8346c332100bccebfb652cc9c4285156ba87cafb477e1cfe52ee2f6c5beec91421
|
data/lib/kungfuig/aspector.rb
CHANGED
@@ -18,7 +18,7 @@ module Kungfuig
|
|
18
18
|
# NOT YET IMPLEMENTED FIXME MOVE TO PREPENDER
|
19
19
|
[values_inc, values_exc].map do |v|
|
20
20
|
[*v].map(&:to_sym)
|
21
|
-
end.reduce(&:-)
|
21
|
+
end.reduce(&:-) - [:'*']
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
@@ -60,7 +60,7 @@ module Kungfuig
|
|
60
60
|
Kungfuig::Prepender.new(to, m).after(&cb)
|
61
61
|
end unless after.nil?
|
62
62
|
|
63
|
-
klazz.aspects
|
63
|
+
klazz.is_a?(Module) ? klazz.aspects : { promise: klazz }
|
64
64
|
end
|
65
65
|
module_function :attach
|
66
66
|
|
data/lib/kungfuig/prepender.rb
CHANGED
@@ -104,7 +104,6 @@ module Kungfuig
|
|
104
104
|
|
105
105
|
def hook
|
106
106
|
status = {}
|
107
|
-
|
108
107
|
λ = (hash = to_hash).delete(:lambdas)
|
109
108
|
|
110
109
|
p = Module.new do
|
@@ -130,7 +129,6 @@ module Kungfuig
|
|
130
129
|
end
|
131
130
|
klazz.send(:include, Kungfuig) unless klazz.ancestors.include? Kungfuig
|
132
131
|
klazz.send(:prepend, p)
|
133
|
-
|
134
132
|
rescue => e
|
135
133
|
status[:rescued] = e
|
136
134
|
raise MalformedTarget.new e.message, "#{@klazz}##{@method}" if AGRESSIVE_ERRORS
|
data/lib/kungfuig/version.rb
CHANGED