Remove deprecation warnings for Ruby 2.0

Basically just wrapping Enumerator.new so it always gets a block.