[Puppet-dev] [PATCH/puppet 1/1] Fixed #7481 - Added MIT license to Thomas Bellman's function code

2011-05-10 Thread James Turnbull
Signed-off-by: James Turnbull --- Local-branch: tickets/next/7481 lib/puppet/parser/functions/regsubst.rb | 26 ++ lib/puppet/parser/functions/shellquote.rb | 26 ++ lib/puppet/parser/functions/sprintf.rb| 26 ++

Re: [Puppet-dev] Re: [PATCH/puppet 1/1] (#7291) Monkeypatch Symbol class with #sub method in ruby 1.9

2011-05-10 Thread markus
> > Yea, you're probably right. FWIW, here's the offending block of code > > in lib/puppet/interface/option_builder.rb:19: > > [...] > > Puppet::Interface::Option.instance_methods.grep(/=$/).each do | > > setter| > >next if setter =~ /^=/ > >dsl = setter.to_s.sub(/=$/, '') > > Yeah, tha

Re: [Puppet-dev] Re: [PATCH/puppet 1/1] (#7291) Monkeypatch Symbol class with #sub method in ruby 1.9

2011-05-10 Thread Daniel Pittman
On Tue, May 10, 2011 at 10:49, ajsharp wrote: > Yea, you're probably right. FWIW, here's the offending block of code > in lib/puppet/interface/option_builder.rb:19: [...] >  Puppet::Interface::Option.instance_methods.grep(/=$/).each do | > setter| >    next if setter =~ /^=/ >    dsl = setter.to

[Puppet-dev] Re: [PATCH/puppet 1/1] (#7291) Monkeypatch Symbol class with #sub method in ruby 1.9

2011-05-10 Thread ajsharp
Yea, you're probably right. FWIW, here's the offending block of code in lib/puppet/interface/option_builder.rb:19: Puppet::Interface::Option.instance_methods.grep(/=$/).each do | setter| next if setter =~ /^=/ dsl = setter.sub(/=$/, '') unless private_instance_methods.include? dsl

[Puppet-dev] [PATCH/puppet 1/1] (#7291) Monkeypatch Symbol with #sub method for ruby 1.9

2011-05-10 Thread Alex Sharp
Ruby 1.9 removed Symbol#sub, and it's used in various places in the puppet codebase. This is a very simple patch that converts the symbol to a string, performs the #sub on the string and then reconverts the string back to a symbol. Crude, but it should work. Still, once the specs are running under

Re: [Puppet-dev] Re: [PATCH/puppet 1/1] (#7291) Monkeypatch Symbol class with #sub method in ruby 1.9

2011-05-10 Thread Daniel Pittman
I am torn: I like the idea of getting my embarrassing bug out of the way, but I would rather get the right solution in place (or, at least, know what it is) before we go ahead and write or commit them. Daniel On Tue, May 10, 2011 at 10:19, ajsharp wrote: > Cool. If I stick with the monkey patch

[Puppet-dev] Re: [PATCH/puppet 1/1] (#7291) Monkeypatch Symbol class with #sub method in ruby 1.9

2011-05-10 Thread ajsharp
Cool. If I stick with the monkey patch approach, I'll stick it in monkey_patches.rb. I agree, a monkey patch here is definitely not the most desirable solution, but maybe it's an acceptable approach at least to get the specs running. After the specs run under 1.9, I'd be in favor of finding a more

Re: [Puppet-dev] ANNOUNCE: Puppet 2.6.8 final available!

2011-05-10 Thread Todd Zullinger
Robin Bowes wrote: > Are you going to be updating your repo to include this? Eventually, just been busy. If you look at the changelog from rc1, you'll see that 2.6.8 final only adds some things to tests, so for an end user it is functionally identical. -- ToddOpenPGP -> KeyID: 0xBEAF0CE

Re: [Puppet-dev] ANNOUNCE: Facter 1.5.9rc6

2011-05-10 Thread Paul Nasrat
On 10 May 2011 01:39, Nigel Kersten wrote: > Facter 1.5.9rc6 is a maintenance release containing fixes and updates. > > The keen-eyed observers amongst you will notice it's been a month since our > last RC5 of Facter 1.5.9, which is most certainly not our normal process. > We simply missed the "re

Re: [Puppet-dev] ANNOUNCE: Puppet 2.6.8 final available!

2011-05-10 Thread Robin Bowes
On 27/04/11 22:30, Jacob Helwig wrote: > This release addresses issues with the Puppet 2.6.x series. > > Bug #4884: > > Shell exec provider that executes code as a raw shell script > > Bug #5670: > > Failed resources don't improperly trigger a refresh > > Feature #2331: > > New macports