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. --- lib/yard/mruby/code_objects/header_object.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/yard/mruby/code_objects') diff --git a/lib/yard/mruby/code_objects/header_object.rb b/lib/yard/mruby/code_objects/header_object.rb index 2f9e7e4..45e1f5b 100644 --- a/lib/yard/mruby/code_objects/header_object.rb +++ b/lib/yard/mruby/code_objects/header_object.rb @@ -4,11 +4,11 @@ module YARD::MRuby::CodeObjects # It groups C Functions and define macros. class HeaderObject < YARD::CodeObjects::NamespaceObject def functions - children.find_all {|d| d.is_a?(FunctionObject) } + children.find_all {|d| d.is_a?(FunctionObject) } end def defines - children.find_all {|d| d.is_a?(DefineObject) } + children.find_all {|d| d.is_a?(DefineObject) } end def typedefs @@ -16,7 +16,7 @@ module YARD::MRuby::CodeObjects end def path - self.name + self.name.to_s end def title -- cgit v1.2.3