]> gitweb.fluxo.info Git - puppet-stdlib.git/commit
Fix backwards compatibility from #511
authorMorgan Haskel <morgan@puppetlabs.com>
Mon, 21 Sep 2015 17:56:08 +0000 (10:56 -0700)
committerMorgan Haskel <morgan@puppetlabs.com>
Mon, 21 Sep 2015 18:11:21 +0000 (11:11 -0700)
commit799c38e14e1583e676e2b25a9c1782fd40e29fff
treeca2f93dd6d459eac114f1e0b5cac05ac02d519cd
parent9b1932c538354c1b360838c8cf7b942af314c99d
Fix backwards compatibility from #511

Maintain the old behavior in the case where the optional second
parameter isn't passed. Also, adding arity is backwards incompatible since
stdlib still supports 2.7, so remove that.
lib/puppet/parser/functions/parsejson.rb
lib/puppet/parser/functions/parseyaml.rb
spec/acceptance/parsejson_spec.rb
spec/acceptance/parseyaml_spec.rb
spec/functions/parsejson_spec.rb
spec/functions/parseyaml_spec.rb