HEX
Server: Apache
System: Linux sg241.singhost.net 2.6.32-896.16.1.lve1.4.51.el6.x86_64 #1 SMP Wed Jan 17 13:19:23 EST 2018 x86_64
User: honghock (909)
PHP: 8.0.30
Disabled: passthru,system,shell_exec,show_source,exec,popen,proc_open
Upload Files
File: //usr/lib/ruby/site_ruby/1.8/puppet/feature/rdoc1.rb
require 'puppet/util/feature'

# We have a version of RDoc compatible with our module documentation tool.
# That is to say, we have the version that comes with Ruby 1.8.7 and earlier,
# and not the version that comes with Ruby 1.9.1 or later.
#
# 1.8 => require 'rdoc/rdoc'; p RDoc::RDoc::VERSION_STRING
#        => "RDoc V1.0.1 - 20041108"
# 1.9 => require 'rdoc'; p RDoc::VERSION
#        => "3.9.4"  # 1.9.2 has 2.5, 1.9.3 has 3.9
#
# Anything above that whole 1.0.1 thing is no good for us, and since that
# ships with anything in the 1.8 series that we care about (eg: .5, ,7) we can
# totally just use that as a proxy for the correct version of rdoc being
# available. --daniel 2012-03-08
Puppet.features.add(:rdoc1) { RUBY_VERSION[0,3] == "1.8" }