diff --git a/lib/puppetx/yardoc/yard/plugin.rb b/lib/puppetx/yardoc/yard/plugin.rb index adcde12..4cc4e7d 100644 --- a/lib/puppetx/yardoc/yard/plugin.rb +++ b/lib/puppetx/yardoc/yard/plugin.rb @@ -1,3 +1,8 @@ +# TODO: Decide if supporting 1.8.7 is really worth it. +if RUBY_VERSION < '1.9' + require 'backports/1.9.1/kernel/require_relative' +end + require_relative 'parser' require_relative 'handlers'