puppetlabs/puppet — pull request #572 by daniel-pittman (2012-03-09 22:08:47+00:00)
Title: 2.7.x: rdoc vs ruby 1.9.3

Ruby 1.9 changed the core version of RDoc, which makes our integration with it for documentation generation blow up. In fact, since the internal library layout changed, we blow up horribly trying to require files that could never work in newer versions.

This series of changes updates Puppet to recognise that we only support RDoc 1.*, and to disable documentation generation with RDoc for anything other than that version of the library.

This means that 1.9 now correctly and cleanly fails when asked to use RDoc, rather than blowing up with horrible internal errors, and we generally have a better user experience.