HomePhorge

Hash references on string now raise errors, not return nil.
252c884284faUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Hash references on string now raise errors, not return nil.

Under Ruby 1.8 the syntax "foo"[:bar] would return nil, while Ruby 1.9 is
strict: it enforces that only numeric index arguments are acceptable and
raises an error when that precept is violated.

This means that a whole pile of specs that used to pass strings where
structured objects were accepted now blow up - because you can't request
arbitrary nonsense against their array dereference interface.

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
rPU9d5a9dec5092: Action definition requires at least one argument.
Branches
Unknown
Tags
Unknown

Event Timeline

Daniel Pittman <daniel@puppetlabs.com> committed rPU252c884284fa: Hash references on string now raise errors, not return nil. (authored by Daniel Pittman <daniel@puppetlabs.com>).Mar 30 2012, 9:15 PM