From 42773d99a92696787c333b1db5b815ecad748c5d Mon Sep 17 00:00:00 2001 From: bluehavana Date: Sat, 21 Jan 2017 21:34:55 -0800 Subject: Update to Yard >= 0.9.0 * Return a string from CodeObjects::HeaderObject#path A change in YARD::Serializers::FileSystemSerializer stopped calling `#to_s` on the the CodeObject passed, causing a NoMethodError for "+" missing Symbol (#path was just an alias to #name). Added minimal specs to cover only this case. * Fixed some handler specs dealing with namespaces. A bug in the Yard c handler allowed namespacing to be determined without a proper parent RClass. See lsegal/yard#912 * There were some breaking changes to templates. --- templates/default/fulldoc/html/setup.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/default/fulldoc/html') diff --git a/templates/default/fulldoc/html/setup.rb b/templates/default/fulldoc/html/setup.rb index 43e1e15..48661e2 100644 --- a/templates/default/fulldoc/html/setup.rb +++ b/templates/default/fulldoc/html/setup.rb @@ -51,7 +51,7 @@ end # This method removes the namespace from the root node, generates the class list, # and then adds it back into the root node. # -def class_list(root = Registry.root) +def class_list(root = Registry.root, tree = TreeContext.new) return super unless root == Registry.root include_namespace = YARD::MRuby::CodeObjects::HEADERS_ROOT -- cgit v1.2.3 From 222676057dfa90bb370c78fda87d0cb8f6bc116d Mon Sep 17 00:00:00 2001 From: bluehavana Date: Sat, 21 Jan 2017 22:29:23 -0800 Subject: Doh, forgot to pass the tree arg to super. --- templates/default/fulldoc/html/setup.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/default/fulldoc/html') diff --git a/templates/default/fulldoc/html/setup.rb b/templates/default/fulldoc/html/setup.rb index 48661e2..0199557 100644 --- a/templates/default/fulldoc/html/setup.rb +++ b/templates/default/fulldoc/html/setup.rb @@ -56,7 +56,7 @@ def class_list(root = Registry.root, tree = TreeContext.new) include_namespace = YARD::MRuby::CodeObjects::HEADERS_ROOT root.instance_eval { children.delete include_namespace } - out = super(root) + out = super(root, tree) root.instance_eval { children.push include_namespace } out end -- cgit v1.2.3