Skip to content
This repository has been archived by the owner on Oct 23, 2021. It is now read-only.

YARD 0.8 compatibility #1

Open
aramk opened this issue Aug 7, 2013 · 5 comments
Open

YARD 0.8 compatibility #1

aramk opened this issue Aug 7, 2013 · 5 comments

Comments

@aramk
Copy link

aramk commented Aug 7, 2013

Hi there,
I'm getting this warning:

[warn]: in YARD::Handlers::Ruby::DSLHandler: Undocumentable method, missing name
[warn]:     in file 'user.rb':23:

    23: has 1, :wage, :through => Resource

This causes the has method to be ignored. The property seems to work without yard-dm, but not the has and belongs_to associations. Is this a compatibility issue?

@postmodern
Copy link
Owner

Also noticing some spec failures against 0.8.

@aramk
Copy link
Author

aramk commented Aug 8, 2013

Would it be difficult to fix this myself, or does it involve substantial knowledge? An alternative would be to run YARD 0.7 with a lower version of Ruby I think.

@postmodern
Copy link
Owner

Will need to ask @lsegal what changed in 0.7 -> 0.8.

@lsegal
Copy link

lsegal commented Aug 8, 2013

If there is a break it's most likely a bug in YARD.

@postmodern
Copy link
Owner

The failing specs, might be related not sure:

  1) HasHandler valid has n should define class-methods for the 'has n' relationships
     Failure/Error: yard('HasN.things').should be_instance_of(CodeObjects::MethodObject)
       expected nil to be an instance of YARD::CodeObjects::MethodObject
     # ./spec/has_handler_spec.rb:17:in `block (4 levels) in '
  2) HasHandler valid has n should define reader methods for the 'has n' relationships
     Failure/Error: yard('HasN#things').should be_instance_of(CodeObjects::MethodObject)
       expected nil to be an instance of YARD::CodeObjects::MethodObject
     # ./spec/has_handler_spec.rb:21:in `block (4 levels) in '
  3) HasHandler valid has n should define writer methods for the 'has n' relationships
     Failure/Error: yard('HasN#things=').should be_instance_of(CodeObjects::MethodObject)
       expected nil to be an instance of YARD::CodeObjects::MethodObject
     # ./spec/has_handler_spec.rb:25:in `block (4 levels) in '

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants