HomePhorge

Ruby 1.8.5 compatibility changes in tests and code.
c65236dc47a6Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Ruby 1.8.5 compatibility changes in tests and code.

A handful of methods, like Array#count and String#start_with? don't exist in
older versions of Ruby, and have sufficiently complex semantics that
rebuilding them seems less than worthwhile.

This rewrites the small points of code to avoid those methods, retaining
compatibility with 1.8.5 and 1.8.6 across the board.

Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>

Details

Provenance
Daniel Pittman <daniel@puppetlabs.com>Authored on
Nick Lewis <nick@puppetlabs.com>Committed on Oct 21 2011, 7:21 PM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU6c3762307410: Add `lines` alias for `each_line` in Ruby 1.8.5.
Branches
Unknown
Tags
Unknown

Event Timeline

Nick Lewis <nick@puppetlabs.com> committed rPUc65236dc47a6: Ruby 1.8.5 compatibility changes in tests and code. (authored by Daniel Pittman <daniel@puppetlabs.com>).Oct 21 2011, 7:21 PM