HomePhorge

maint: Deal with [].to_s problem in 1.9.2
2958b057de83Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

maint: Deal with [].to_s problem in 1.9.2

[].to_s evaluates to "[]" in 1.9.2, unlike in previous Rubies where it
evaluates to "". This caused puppet resource to fail to strip some
empty values. This commit changes the way we check for empty values to
make it more ruby-version-agnostic.

Paired-with: Nick Lewis <nick@puppetlabs.com>

Details

Provenance
Max Martin <max@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUf09b2a9f4631: Merge branch '2.6.x' into 2.7.x
Branches
Unknown
Tags
Unknown

Event Timeline

Max Martin <max@puppetlabs.com> committed rPU2958b057de83: maint: Deal with [].to_s problem in 1.9.2 (authored by Max Martin <max@puppetlabs.com>).Oct 3 2011, 9:01 PM