Skip to content

(PDOC-3) Rename face to strings instead of yardoc#4

Merged
zaphod42 merged 3 commits intopuppetlabs:masterfrom
HAIL9000:PDOC-3_refactor-prototype-code
Sep 17, 2014
Merged

(PDOC-3) Rename face to strings instead of yardoc#4
zaphod42 merged 3 commits intopuppetlabs:masterfrom
HAIL9000:PDOC-3_refactor-prototype-code

Conversation

@HAIL9000
Copy link
Copy Markdown
Contributor

Since we don't want the name of the tool to reflect the fact that
it is using yard internally (this is an implementation detail), rename
the face to strings. Now when one wishes to generate documentation,
puppet strings will be used rather than puppet yardoc.

Since we don't want the name of the tool to reflect the fact that
it is using yard internally (this is an implementation detail), rename
the face to `strings`. Now when one wishes to generate documentation,
`puppet strings` will be used rather than `puppet yardoc`.
@HAIL9000
Copy link
Copy Markdown
Contributor Author

Please don't merge this yet. I need to add one more big refactor around the directory structure.

In order to keep with conventions around directory structure, add
a puppetlabs directory and rename modules accordingly.
Prior to this commit, the handlers and code objects which dealt with
puppet functions were referred to as `FutureParserFunctions` and
`ParseFunctions`. This naming convention will not make very much
sense going forward when the future parser becomes the primary
parser. Therefor, rename `FutureParserFunctions` to `Puppet4xFunctions`
and `ParserFunctions` to `Puppet3xFunctions`.
@HAIL9000
Copy link
Copy Markdown
Contributor Author

Alright, all things have been renamed! This pull request should now be ready for review.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

D'oh. Typo. Pupet => Puppet

@zaphod42
Copy link
Copy Markdown
Contributor

I'll merge this even with the typo. The correct thing is to reference the constant rather than use the string, that way ruby can check that the spelling matches up.

zaphod42 added a commit that referenced this pull request Sep 17, 2014
(PDOC-3) Rename face to strings instead of yardoc
@zaphod42 zaphod42 merged commit 6fb4a39 into puppetlabs:master Sep 17, 2014
@HAIL9000
Copy link
Copy Markdown
Contributor Author

Whoops, sorry! I'll switch to using the constant and include that in my next pull request

eputnam added a commit to eputnam/puppet-strings that referenced this pull request Mar 19, 2018
# This is the 1st commit message:

(PDOC-206) starting work for tasks

# This is the commit message puppetlabs#2:

(PDOC-206) parser, handler, statement, code_object

Adds a parser for json, a task handler, a task statement and a task
code_object. the parser uses JSON.parse instead of an AST and some
finagling has to be done in the statement and the handler to get YARD to
be ok with this. When YARD is registering the task code_object, it
expects it to have things like a docstring and comments and so on, but
it doesn't have any of those things so they are faked.

# This is the commit message puppetlabs#3:

(PDOC-206) refactor handler/parser/co interaction and json_spec passes

to_hash does not need to behave like it does in other code objects.
instead, just take the raw json and iterate over it.

# This is the commit message puppetlabs#4:

(PDOC-206) things work now

# This is the commit message puppetlabs#5:

(PDOC-206) small refactor/improvement of input section

# This is the commit message puppetlabs#6:

moved some things around, added some template logic

# This is the commit message puppetlabs#7:

(PDOC-206) adds more tests

# This is the commit message puppetlabs#8:

(PDOC-206) remodel to_hash and start markdown

Revamped the to_hash method for task code objects to look more like other objects. The markdown engine cares a lot about this format.

# This is the commit message puppetlabs#9:

(PDOC-206) update json test, task template
smortex pushed a commit to smortex/puppet-strings that referenced this pull request Aug 10, 2025
Rake task allows for a different commit message
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