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. --- spec/handlers/c/source/module_handler_spec.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'spec/handlers/c/source/module_handler_spec.rb') diff --git a/spec/handlers/c/source/module_handler_spec.rb b/spec/handlers/c/source/module_handler_spec.rb index fd08ae6..9641eb3 100644 --- a/spec/handlers/c/source/module_handler_spec.rb +++ b/spec/handlers/c/source/module_handler_spec.rb @@ -7,7 +7,11 @@ describe YARD::MRuby::Handlers::C::Source::ModuleHandler do end it "should register modules under namespaces" do - parse_init 'mFoo = mrb_define_module_under(mrb, mBar, "Foo");' + parse_init(<<-eof) + cBar = mrb_define_module(mrb,"Bar"); + cFoo = mrb_define_module_under(mrb, cBar, "Foo"); + eof + expect(Registry.at('Bar::Foo').type).to be :module end -- cgit v1.2.3