| Server IP : 77.68.64.21 / Your IP : 216.73.217.59 Web Server : Apache System : Linux hp3-wp-1011352.hostingp3.local 3.10.0-1160.144.1.el7.tuxcare.els9.x86_64 #1 SMP Fri Jul 10 17:06:31 UTC 2026 x86_64 User : csh2516497 ( 2094697) PHP Version : 8.3.30 Disable Function : shell_exec,exec,system,popen,set_time_limit MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/ruby/vendor_ruby/puppet/feature/ |
Upload File : |
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" }