lp:yard

Created by VCS imports and last modified
Get this branch:
bzr branch lp:yard

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
VCS imports
Project:
YARD
Status:
Development

Import details

Import Status: Failed

This branch is an import of the HEAD branch of the Git repository at https://github.com/lsegal/yard.

The import has been suspended because it failed 5 or more times in succession.

Last successful import was .

Import started on juju-1e3bde-prod-lp-code-import-16 and finished taking 2 minutes — see the log
Import started on pear and finished taking 15 seconds — see the log
Import started on neumayer and finished taking 30 seconds — see the log
Import started on neumayer and finished taking 30 seconds — see the log

Recent revisions

2513. By Loren Segal

Clarify type/name usage order

Closes #980

2512. By Loren Segal

Workaround for ruby-bug:11485

Since https://bugs.ruby-lang.org/issues/11485 has been open for
a year, this patch adds a nil check to work around the bug. Note
that this fix makes an assumption about the nl token length which
may lead to other incorrect parsing.

Fixes #835
Fixes #979

2511. By Loren Segal

Fix embedding of all classes with --embed-mixins

Fixes an issue where all superclass class objects would be
embedded in subclasses as a mixin when --embed-mixins was passed
in.

Fixes #814

2510. By Loren Segal

Add /static/* routing for library-specific routing

Fixes #901

2509. By Loren Segal

Disallow type specification to begin after newline

This change disallows the following tag formatting to minimize
ambiguity when differentiating tag types from body text:

    @param name
      [type, specification, here] docstring here
    @param
      [other, type, specification] name docstring here

Supporting the above two examples make it impossible to distinguish
reftags from directives:

    @!attribute
      (see Foo)

Because (see Foo) would otherwise be parsed as a type specification.

If an opening character is detected before a newline, YARD will parse
the specification completely. In other words, the following behavior
is still supported:

    @param name [Long, Type, Specification,
      Here] and more docstring text here

Or even:

    @param long_parameter_name [
      Type, Specification, Here] docstring

This is a breaking change but is unlikely to have wide impact
due to the nature of the formatting. It is possible to implement
this in a non-breaking way by only enabling this parsing style
on directives, but the extra complexity is not seen as worth it
given the extremely low impact.

Fixes #726

2508. By Loren Segal

DSL handler won't create method if attached macro has directives

YARD will no longer attempt to create a method object for a DSL
style declaration with code comments if the declaration has an
attached macro with directive text. If directives are used in
an attached macro, you must opt-in to @!method or @!attribute
to create the code object yourself. If you do not use a directive,
the DSL handler will create a method for you. The following
two scenarios now work:

    class Foo
      # @!macro attach
      # Docstring for $1
      def self.attach(x) end

      attach :bar # creates method Foo#bar

      # @!macro attach2
      # @!method macro_$1(x)
      def self.attach2(x) end

      attach2 :baz # creates method Foo#macro_baz
    end

The following will NO LONGER create a method. This was previously
undefined behavior (since macros themselves are not meant to create
objects):

    class Foo
      # @!macro attach
      # A documentation string
      # @!visibility private
      def self.attach(x) end

      attach :bar

      # Foo#bar has not been created.
      # The attach macro has a visibility directive,
      # but no @!method directive to create the object.
      # YARD will set visibility, but nothing else.
    end

Fixes #661

2507. By Loren Segal

Add helpful warning for improper formatted @see tags

Closes #699

2506. By Loren Segal

Warn if CRuby mixin variable is unrecognizable

Fixes #826

2505. By Loren Segal

Improve if mod detection in parser

2504. By Loren Segal

Fix resolution error on Docstring

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
This branch contains Public information 
Everyone can see this information.

Subscribers