Closed Ajedi32 closed 8 years ago
No idea why the build is failing. The tests run fine on my computer, I'm having weird issues with my proxy so I can't check Travis.
Okay, proxy issues resolved. The failure seems to be unrelated to my change. Apparently require 'json'
is failing on Ruby 1.8.7.
Okay, so #53 fixes the failure in the build here.
Unfortunately, it seems that these changes actually do fail on 1.8.7, even with the fix in #53. I guess in Ruby 1.8.7, you can't explicitly return from a block that's inside a lambda? Do you want to continue supporting 1.8.7?
Thank you for the PR. I reimplemented this a little for simplicity.
Allow explicit returns in timed blocks. Previously, metrics would not be sent if you explicitly returned from a method from inside a timed block. E.g.