Bug #17898 Dir.mktmpdir not supported under Ruby 1.8.6#1311
Bug #17898 Dir.mktmpdir not supported under Ruby 1.8.6#1311mrrcollins wants to merge 2 commits intopuppetlabs:masterfrom
Conversation
Monkey patch for Dir.mktmpdir for Ruby 1.8.6 and Ruby 1.8.5. Patch is copied from: https://github.com/puppetlabs/hiera/pull/47/files Where it was needed for 1.8.5.
|
Added to monkey_patches.rb! |
|
@joshcooper sorry this confusion was my fault, due to misunderstanding the support matrix. (because the support matrix is easy to misunderstand, perhaps) -- we say we support Mac OS X 10.5 but do not say that you have to replace the system Ruby in order for it to actually be supported. |
|
@mrrcollins I was under the impression that the |
|
I don't think it exists under 1.8.5, which is supported. At least that's what I'm assuming when I found this: I added that code to monkey_patches.rb and requested another pull (I've never done this before, bear with me. :-) Testing with irb under 1.8.6 (OS X 10.5) |
|
On Tue, Dec 4, 2012 at 2:17 PM, Ryan Collins notifications@github.comwrote:
http://opensource.apple.com/source/ruby/ruby-67/ruby/lib/tmpdir.rb -Jeff |
|
tmpdir is there, mktmpdir is not. :-) From what I can tell, it was added in Ruby 1.8.7. |
|
Oh yeah, whoops. I overlooked that mktmpdir is not defined in the 1.8.6 -Jeff |
Bug #17898 pkgdmg provider broken since version 2.7.13 under OS X 10.5 Leopard
Dir.mktempdir was added in Puppet 2.7.13 as a security issue to randomize the location of downloaded files, with the unfortunate side affect of breaking Puppet under OS X 10.5.
This change fixes the issue in pkgdmg.rb and appdmg.rb