Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Types and providers fixes #60

Merged
merged 3 commits into from
Sep 15, 2015

Conversation

iankronquist
Copy link
Contributor

Various fixes Shaigy found while doing QA. Thanks Shaigy!

@iankronquist iankronquist force-pushed the types-and-providers-fixes branch from 5f8eec8 to 0b3edca Compare September 14, 2015 23:08
@HAIL9000
Copy link
Contributor

So these need to reference a real ticket. Is there an existing ticket that makes sense to reference?

@HAIL9000
Copy link
Contributor

There also seem to be two commits titled "Handle directives with no types" should those be merged?

In a Puppet type if the user documents a parameter with the directive, then
Yard will read the parameter and think there is an empty docstring there. This
will overwrite the docstring we extracted.
The fix is simple -- overwrite our docstring with theirs, if our docstring
exists at all.
This confusion persists from a very old attempt at implementing support for
types and providers.
Parameter directives with no types will have `tag.type` set to nil. We cannot
append nil to an array, so instead, place it in the array and flatten the
array. If the property is empty the second entry in the array will be nil, as
we expect. If the `tag.type` is an array of types we will have and array with
the form:
	[tag.text, type1, type2, type3, ...]
@iankronquist iankronquist force-pushed the types-and-providers-fixes branch from 0b3edca to 7f4b81e Compare September 15, 2015 16:58
@iankronquist
Copy link
Contributor Author

Looks like I screwed up the rebase. Here it is again.

HAIL9000 added a commit that referenced this pull request Sep 15, 2015
@HAIL9000 HAIL9000 merged commit 7c109b2 into puppetlabs:master Sep 15, 2015
@chelnak chelnak added the bugfix label Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants