hooked 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -0
- data/lib/hooked/hook.rb +2 -2
- data/lib/hooked/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
data/lib/hooked/hook.rb
CHANGED
@@ -13,9 +13,9 @@ module Hooked
|
|
13
13
|
@container, @block = container, block
|
14
14
|
end
|
15
15
|
|
16
|
-
def call(context)
|
16
|
+
def call(context, hookable = nil)
|
17
17
|
raise RuntimeError, "No container set for hook `#{name}'" unless container
|
18
|
-
container.instance_exec(context, &@block)
|
18
|
+
container.instance_exec(context, hookable, &@block)
|
19
19
|
end
|
20
20
|
|
21
21
|
def before?
|
data/lib/hooked/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 1
|
9
|
+
version: 0.1.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Lars Gierth
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-12-
|
17
|
+
date: 2010-12-27 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|