resugan 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/resugan/object.rb +6 -6
- data/lib/resugan/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: 88d609ceb9bb193c8f9e9ee4d5a8dbb630df4af3
|
4
|
+
data.tar.gz: 0b17ef65ca99017bfb607768038a12a06630de9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63df0e7c2880d62ff5a63341edb415b27af0f9cba0498b2b027d8cc851aab808e91d5073c5da6706c5e150ea4d05cb6c779577867fc3038f5fe5cabbe7517536
|
7
|
+
data.tar.gz: 1a3117e59f97bf13f769c4516be6cb4c3a85a7c79b434a38e681e69825e3c2a93b0fa3614d00655e5c9a4193377b5d16f1bf47c12f570e5280af1c7b670f03f7
|
data/lib/resugan/object.rb
CHANGED
@@ -2,12 +2,12 @@ class Object
|
|
2
2
|
def resugan(namespace = '', &block)
|
3
3
|
current_thread = Thread.current
|
4
4
|
current_thread.push_resugan_context(namespace)
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
5
|
+
begin
|
6
|
+
block.call
|
7
|
+
ensure
|
8
|
+
context = current_thread.pop_resugan_context
|
9
|
+
context.invoke
|
10
|
+
end
|
11
11
|
context
|
12
12
|
end
|
13
13
|
|
data/lib/resugan/version.rb
CHANGED