fix-rdoc-call.diff OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:wbem/openwsman?expand=0&rev=272
20 lines
613 B
Diff
20 lines
613 B
Diff
diff --git a/bindings/ruby/rdoc_parser_swig.rb b/bindings/ruby/rdoc_parser_swig.rb
|
|
index fb6f1645..7305fceb 100644
|
|
--- a/bindings/ruby/rdoc_parser_swig.rb
|
|
+++ b/bindings/ruby/rdoc_parser_swig.rb
|
|
@@ -364,7 +364,13 @@ class RDoc::Parser::SWIG < RDoc::Parser
|
|
find_modifiers comment, meth_obj if comment
|
|
|
|
#meth_obj.params = params
|
|
- meth_obj.start_collecting_tokens
|
|
+ begin
|
|
+ # new rdoc
|
|
+ meth_obj.start_collecting_tokens :swig
|
|
+ rescue
|
|
+ # old rdoc
|
|
+ meth_obj.start_collecting_tokens
|
|
+ end
|
|
begin
|
|
tk = nil
|
|
if RUBY_VERSION[0,3] == "3.4"
|