From 9ee2184441b4901e63b4c6b92484bbf6da507515 Mon Sep 17 00:00:00 2001 From: Petrik Date: Wed, 5 Jan 2022 19:49:31 +0100 Subject: [PATCH] Don't use rdoc 6.4.0 for now Rdoc 6.4.0 added psych 4.0 as a dependency. This version of psych is not compatible with ruby 2.5 and lower resulting in the following error: ArgumentError: wrong number of arguments (given 4, expected 1) /home/runner/work/sdoc/sdoc/vendor/bundle/ruby/2.5.0/gems/psych-4.0.3/lib/psych.rb:323:in `safe_load' As we still support rubies lower that 2.5, we need to add a constraint. Current Rails master also has rdoc locked to 6.3.3: https://github.com/rails/rails/blob/7ad7550601a19d94a4bb41b8c49e3bbc3c12b150/Gemfile.lock#L406 Also see: https://github.com/ruby/psych/issues/531#issuecomment-1003310234 --- sdoc.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdoc.gemspec b/sdoc.gemspec index 189a6bf8..034d2670 100644 --- a/sdoc.gemspec +++ b/sdoc.gemspec @@ -22,7 +22,7 @@ Gem::Specification.new do |s| s.rdoc_options = ["--charset=UTF-8"] s.extra_rdoc_files = ["README.md"] - s.add_runtime_dependency("rdoc", ">= 5.0") + s.add_runtime_dependency("rdoc", ">= 5.0", "< 6.4.0") s.add_development_dependency("rack")