HomePhorge

Ruby 1.8.5 compatibility changes in tests and code.
3bdeb3a4a666Unpublished

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 22 2011, 12:51 AM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU6866d4b6606f: Add `lines` alias for `each_line` in Ruby 1.8.5.
Branches
Unknown
Tags
Unknown

Event Timeline

Nick Lewis <nick@puppetlabs.com> committed rPU3bdeb3a4a666: Ruby 1.8.5 compatibility changes in tests and code. (authored by Daniel Pittman <daniel@puppetlabs.com>).Oct 22 2011, 12:51 AM