HomePhorge

maint: Fix pacman provider to work with Ruby 1.9
107b38a94f8bUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

maint: Fix pacman provider to work with Ruby 1.9

Ruby 1.9 doesn't allow the lambda to walk up the directory structure to
require the spec helper This is the same issue as with commit:
f6da3339f59bbd9243a03dc1e417b1fed7955c7e

Also, you can't call each on a string in Ruby 1.9 directly since it
doesn't implicitly do a split on \n like it did in older Rubies, but
each_line works all the way back to 1.8.5

Reviewed-by: Nick Lewis <nick@puppetlabs.com>

Details

Provenance
Matt Robinson <matt@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU7f826bfc1352: Merge branch '2.7.x'
Branches
Unknown
Tags
Unknown

Event Timeline

Matt Robinson <matt@puppetlabs.com> committed rPU107b38a94f8b: maint: Fix pacman provider to work with Ruby 1.9 (authored by Matt Robinson <matt@puppetlabs.com>).May 24 2011, 6:54 PM