Skip to content

Commit 890baa7

Browse files
committed
(PA-7089) Apply upstream rdoc fix for start_with?
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
1 parent f65cb9c commit 890baa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/patches/ruby_27/0001-Filter-marshaled-objects-ruby30.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ index 5ba671ca1b..5b663d73fb 100644
8080
+ case obj
8181
+ when true, false, nil, Array, Class, Encoding, Hash, Integer, String, Symbol, RDoc::Text
8282
+ else
83-
+ unless obj.class.name.start_with("RDoc::")
83+
+ unless obj.class.name.start_with?("RDoc::")
8484
+ raise TypeError, "not permitted class: #{obj.class.name}"
8585
+ end
8686
+ end

0 commit comments

Comments
 (0)