From 4b15460e49fa7985b66f9f8e591f0e33f686530a Mon Sep 17 00:00:00 2001 From: Robin Dupret Date: Mon, 26 Mar 2018 11:10:45 +0200 Subject: [PATCH] Set the store attribute for newly created modules A regression has been introduced between RDoc 6.0.1 and 6.0.2 with ef958c22 where a new `RDoc::NormalModule` instance is created without a store associated to it. This produces an error on generation through SDoc (see zzak/sdoc#124). --- lib/rdoc/parser/ruby.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/rdoc/parser/ruby.rb b/lib/rdoc/parser/ruby.rb index 6fe4a89e46..a90622f0f3 100644 --- a/lib/rdoc/parser/ruby.rb +++ b/lib/rdoc/parser/ruby.rb @@ -363,6 +363,7 @@ def get_class_or_module container, ignore_constants = false container ||= if ignore_constants then c = RDoc::NormalModule.new name_t[:text] + c.store = @store new_modules << [prev_container, c] c else