From 66cd48416bd06af7c12d27ce918b7fdb719b5b5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Roche?= Date: Thu, 19 Apr 2012 22:41:41 +0200 Subject: [PATCH] added support for ruby 1.9 - each doesn't exists anymore on strings --- lib/cucumber-puppet/puppet.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cucumber-puppet/puppet.rb b/lib/cucumber-puppet/puppet.rb index 394e753..7f1ec57 100644 --- a/lib/cucumber-puppet/puppet.rb +++ b/lib/cucumber-puppet/puppet.rb @@ -69,7 +69,7 @@ def compile_catalog( node = nil ) # XXX could not find this in puppet catalog_resources.each do |resource| next unless resource[:alias] - resource[:alias].each do |a| + resource[:alias].each_line do |a| # "foo" -> "Package[foo]" @aliases["#{resource.type}[#{a}]"] = resource end