HomePhorge

Fix Ruby 1.8.5-incompatible code in spec setup
042925dfca3bUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Fix Ruby 1.8.5-incompatible code in spec setup

The Range#step method in Ruby 1.8.5 expects to be passed a block, to
which it will yield each stepped element. In 1.8.7, it will simply
return an Enumerator (which we then enumerate) if no block is provided,
but in 1.8.5, it will try to yield anyway and fail because there
is no block.

Reviewed-By: Josh Cooper <josh@puppetlabs.com>

Details

Provenance
Nick Lewis <nick@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU3265b2c2c280: Updating CHANGELOG for 2.7.8 release
Branches
Unknown
Tags
Unknown

Event Timeline

Nick Lewis <nick@puppetlabs.com> committed rPU042925dfca3b: Fix Ruby 1.8.5-incompatible code in spec setup (authored by Nick Lewis <nick@puppetlabs.com>).Dec 10 2011, 12:36 AM