lib/fiveruns/dash/instrument.rb in fiveruns-dash-ruby-0.7.1 vs lib/fiveruns/dash/instrument.rb in fiveruns-dash-ruby-0.7.2
- old
+ new
@@ -69,10 +69,10 @@
#######
def self.instrument(obj, meth, options = {}, &handler)
handlers << handler unless handlers.include?(handler)
offset = handlers.size - 1
- identifier = "instrument_#{handler.hash}"
+ identifier = "instrument_#{handler.hash.abs}"
code = wrapping meth, identifier do |without|
if options[:exceptions]
<<-EXCEPTIONS
begin
#{without}(*args, &block)
\ No newline at end of file