rbm 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,11 +23,13 @@ module RBM
23
23
  binding = object.send(:binding)
24
24
 
25
25
  bm.report(name) do
26
- # TODO: figure out how to not eval each loop but still provide a better stack trace
27
-
28
26
  eval options[:init], binding, "init", 1 if options[:init]
29
27
  eval fragment[:prerun], binding, "#{fragment_name}_prerun", 1 if fragment[:prerun]
30
- options[:times].times { eval fragment[:fragment], binding, fragment_name, 1 }
28
+ eval <<-EVAL, binding, fragment_name, 0
29
+ #{options[:times]}.times do
30
+ #{fragment[:fragment]}
31
+ end
32
+ EVAL
31
33
  eval fragment[:postrun], binding, "#{fragment_name}_postrun", 1 if fragment[:postrun]
32
34
  eval options[:cleanup], binding, "cleanup", 1 if options[:cleanup]
33
35
  end
data/lib/rbm/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RBM
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rbm
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Samuel Kadolph