Per benchmarks/check_inclusion, this: (class << host; self; end) < mod is faster than this: (class << host; self; end).included_modules.include?(mod) The faster version doesn't work in Ruby 1.8, so we use the slower version in Ruby 1.8, but the faster version in 1.9:w
- Fixes #576.
This allows us to simplify the filter_applies? method on metadata, and gives us a small performance boost by not evaluating procs that would always return false. - Closes #556.
This change ensures that RSpec's at_exit handler doesn't mask (override) any nonzero exit status, which can happen when Ruby is on it's way out due to an uncaught exception ($!) such as a SyntaxError. Please see this bug report for more information: sunaku/tork#31 (comment)