Skip to content

Commit

Permalink
(PA-7089) Apply upstream rdoc fix for start_with?
Browse files Browse the repository at this point in the history
Installing r10k was failing on ruby 2.7 due to our faulty rdoc patch

    /opt/puppetlabs/puppet/bin/gem install r10k
        ERROR:  While executing gem ... (NoMethodError)
        undefined method `start_with' for "RDoc::Markup::Document":String

Apply the upstream fix from ruby/rdoc@e21dfccb4a
  • Loading branch information
joshcooper committed Sep 27, 2024
1 parent f65cb9c commit 890baa7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ index 5ba671ca1b..5b663d73fb 100644
+ case obj
+ when true, false, nil, Array, Class, Encoding, Hash, Integer, String, Symbol, RDoc::Text
+ else
+ unless obj.class.name.start_with("RDoc::")
+ unless obj.class.name.start_with?("RDoc::")
+ raise TypeError, "not permitted class: #{obj.class.name}"
+ end
+ end
Expand Down

0 comments on commit 890baa7

Please sign in to comment.