diff options
| author | bluehavana <[email protected]> | 2017-01-21 21:34:55 -0800 |
|---|---|---|
| committer | bluehavana <[email protected]> | 2017-01-21 22:15:32 -0800 |
| commit | 42773d99a92696787c333b1db5b815ecad748c5d (patch) | |
| tree | ff2c0d91e5c35206a167dc51f26e3a72df4ba1e1 /lib/yard/mruby/code_objects/header_object.rb | |
| parent | b27c45a15069d89f735450944133608bce1201db (diff) | |
| download | yard-mruby-42773d99a92696787c333b1db5b815ecad748c5d.tar.gz yard-mruby-42773d99a92696787c333b1db5b815ecad748c5d.zip | |
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.
Diffstat (limited to 'lib/yard/mruby/code_objects/header_object.rb')
| -rw-r--r-- | lib/yard/mruby/code_objects/header_object.rb | 6 |
1 files changed, 3 insertions, 3 deletions
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 |
