Skip to content

Basename implementation#368

Merged
underscorgan merged 1 commit intopuppetlabs:masterfrom
rfugina:basename
Dec 17, 2014
Merged

Basename implementation#368
underscorgan merged 1 commit intopuppetlabs:masterfrom
rfugina:basename

Conversation

@rfugina
Copy link
Copy Markdown
Contributor

@rfugina rfugina commented Nov 17, 2014

Used dirname function as a model. Wraps Ruby's File.basename in similar fashion. Docs included. RSpec tests included, and pass. Github says "able to merge".

@jhoblitt
Copy link
Copy Markdown

👍 Looks good.

@jhoblitt
Copy link
Copy Markdown

Actually, probably needs some type checking to be future parser safe.

@rfugina
Copy link
Copy Markdown
Contributor Author

rfugina commented Nov 18, 2014

That's it, should be good.

@rfugina
Copy link
Copy Markdown
Contributor Author

rfugina commented Nov 26, 2014

Type checking has been added (and I did the same for the 'dirname' function -- different pull request).

Comment thread README.markdown Outdated
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.

This should include Type: rvalue

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.

Also, maybe some more explicit examples? just to be very verbose?

@underscorgan
Copy link
Copy Markdown
Contributor

@rfugina this looks good in general! I made two comments on your README updates, and other than that if you could squash this down to a single commit then we can merge it!

👍

Based on dirname code.  Includes RSpec tests and docs.
@rfugina
Copy link
Copy Markdown
Contributor Author

rfugina commented Dec 17, 2014

Squashed.

Also made the other changes you requested, but the commits/comments got squashed away.

underscorgan pushed a commit that referenced this pull request Dec 17, 2014
@underscorgan underscorgan merged commit 841b0df into puppetlabs:master Dec 17, 2014
@underscorgan
Copy link
Copy Markdown
Contributor

\o/ thanks @rfugina!

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.

4 participants