HomePhorge

Calling map on string now fails, rather than yielding the string.
8023c169a221Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Calling map on string now fails, rather than yielding the string.

In Ruby 1.8 "foo".map would yield "foo" once, while in Ruby 1.9 it is not
defined as a method.

Various parts of our testing code stub other methods and return strings where
arrays of strings are appropriate; this historically worked because of that
1.8 shim, and no longer does.

The same is true of String#each, which fails in the same way.

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

Details

Provenance
Daniel Pittman <daniel@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU76da03e02554: Syck specific YAML parser tests can only run with the old engine.
Branches
Unknown
Tags
Unknown

Event Timeline

Daniel Pittman <daniel@puppetlabs.com> committed rPU8023c169a221: Calling map on string now fails, rather than yielding the string. (authored by Daniel Pittman <daniel@puppetlabs.com>).Mar 30 2012, 9:15 PM