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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9a14dd3ae75e0c54fe96dc31a547317cb2baf98
4
- data.tar.gz: c7a00f011391a94f7a593f2b95a6ebd2d6237ec0
3
+ metadata.gz: 88d609ceb9bb193c8f9e9ee4d5a8dbb630df4af3
4
+ data.tar.gz: 0b17ef65ca99017bfb607768038a12a06630de9f
5
5
  SHA512:
6
- metadata.gz: dda2fe3386e96552e0a014b91627c0736edc8b3240838c17d9de4b891dbbcdb8d940857a5d0b8912b66d23460c774597134bb95fdb3c84dc0c463743e3dbb0c4
7
- data.tar.gz: b2501ed2afb9d5dce3f56c876c06e31fa7296105dfb3634d1fd6916f40d193e78a3e434bfe3b4520b80b6b3b5b6cb15d490cf0e9721048afc43183fe0453f4aa
6
+ metadata.gz: 63df0e7c2880d62ff5a63341edb415b27af0f9cba0498b2b027d8cc851aab808e91d5073c5da6706c5e150ea4d05cb6c779577867fc3038f5fe5cabbe7517536
7
+ data.tar.gz: 1a3117e59f97bf13f769c4516be6cb4c3a85a7c79b434a38e681e69825e3c2a93b0fa3614d00655e5c9a4193377b5d16f1bf47c12f570e5280af1c7b670f03f7
@@ -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
- block.call
7
-
8
- context = current_thread.pop_resugan_context
9
- context.invoke
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
 
@@ -1,3 +1,3 @@
1
1
  module Resugan
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resugan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph Emmanuel Dayo