gestalt 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/gestalt.gemspec +1 -1
  2. data/lib/gestalt.rb +6 -2
  3. metadata +2 -2
data/gestalt.gemspec CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  ## If your rubyforge_project name is different, then edit it and comment out
14
14
  ## the sub! line in the Rakefile
15
15
  s.name = 'gestalt'
16
- s.version = '0.0.8'
16
+ s.version = '0.0.9'
17
17
  s.date = '2010-05-12'
18
18
  s.rubyforge_project = 'gestalt'
19
19
 
data/lib/gestalt.rb CHANGED
@@ -5,7 +5,7 @@ require 'formatador'
5
5
 
6
6
  class Gestalt
7
7
 
8
- VERSION = '0.0.8'
8
+ VERSION = '0.0.9'
9
9
 
10
10
  attr_accessor :calls
11
11
 
@@ -95,8 +95,11 @@ class Gestalt
95
95
  end
96
96
  end
97
97
  )
98
- yield
98
+ begin
99
+ value = yield
99
100
  rescue StandardError, Interrupt
101
+ # noop
102
+ end
100
103
  Kernel.set_trace_func(nil)
101
104
  @stack.pop # pop Kernel#set_trace_func(nil)
102
105
  unless @stack.empty?
@@ -108,6 +111,7 @@ class Gestalt
108
111
  @calls << call
109
112
  end
110
113
  end
114
+ value
111
115
  end
112
116
 
113
117
  def self.profile(options = {}, &block)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 8
9
- version: 0.0.8
8
+ - 9
9
+ version: 0.0.9
10
10
  platform: ruby
11
11
  authors:
12
12
  - geemus (Wesley Beary)