]> gitweb.fluxo.info Git - puppet-stdlib.git/commit
Make the range function work with integers
authorErik Dalén <dalen@spotify.com>
Wed, 12 Nov 2014 15:02:05 +0000 (16:02 +0100)
committerErik Dalén <dalen@spotify.com>
Wed, 12 Nov 2014 15:02:05 +0000 (16:02 +0100)
commitce995e15d5c266fd6d7fa781284771a5a5d5b00e
treea711edba883b2df23a0b346f133ebad69fa86bff
parente61f402283774883d7b7c7d0f04dec7c457c968c
Make the range function work with integers

This is needed for the future parser which actually treats numbers as
numbers and strings as strings. With this patch you can use range(1,5)
instead of having to quote them like range('1','5').
lib/puppet/parser/functions/range.rb
spec/functions/range_spec.rb