filt 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/filt.rb +2 -1
  2. metadata +3 -3
data/lib/filt.rb CHANGED
@@ -17,12 +17,13 @@ module Filters
17
17
  return unless send(hook)
18
18
  end
19
19
  end unless @@before_hooks[method] || @@after_hooks[method]
20
- send("__#{method}",*args,&block)
20
+ returnable = send("__#{method}",*args,&block)
21
21
  @@after_hooks.keys.each do |hook|
22
22
  unless (@@after_hooks[hook][:except]||[]).include?(method) || (@@after_hooks[hook][:only] && !@@after_hooks[hook][:only].include?(method))
23
23
  return unless send(hook)
24
24
  end
25
25
  end unless @@before_hooks[method] || @@after_hooks[method]
26
+ return returnable
26
27
  end
27
28
  end
28
29
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: filt
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors: []
13
13