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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d7f9a97f500edb6d6bf35a4cb678989571aac2a
4
- data.tar.gz: 7b15f8867b76dd007cfda00c17275bb4a1d45057
3
+ metadata.gz: 1bc5b787ab92031c371117733c47452bea13267a
4
+ data.tar.gz: e5726f3b9fcbb9cec43119881b55889054d71269
5
5
  SHA512:
6
- metadata.gz: 1b7646e393a547a7916291e4fd3e2a4d22fd6d1807cb6f5c67a9b3d2bdaccbcc817ed661aed83a2ccf7cee08b46ec09b3689d4317662755defacb8489ceb2a89
7
- data.tar.gz: 2907858a439b6818f99b5fb783d3603bb2fe7ebd9bf0dd2c1637de93cc2a07cb23e4e9b53319ba89415e89efed67de8b16ad5ec0906c0e633607584a6006cdfc
6
+ metadata.gz: f35f35a15ad71043f721b6e37e3ebb0c56e06bd9a8bf5810ecdf17ff7047f2749724d6072657199f50def0f58b4b2946b097743f5c99f440f37130a0f7339ab9
7
+ data.tar.gz: f72df9d8e4c102b0b9855e1e097e4eb20caa225bfac21b651d04d184c026ac8346c332100bccebfb652cc9c4285156ba87cafb477e1cfe52ee2f6c5beec91421
@@ -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
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Kungfuig
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kungfuig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kantox LTD