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

Basename implementation #368

Merged
merged 1 commit into from
Dec 17, 2014
Merged

Basename implementation #368

merged 1 commit into from
Dec 17, 2014

Conversation

rfugina
Copy link
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

👍 Looks good.

@jhoblitt
Copy link

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

@rfugina
Copy link
Contributor Author

rfugina commented Nov 18, 2014

That's it, should be good.

@rfugina
Copy link
Contributor Author

rfugina commented Nov 26, 2014

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

@@ -84,6 +84,8 @@ If you want to use a standardized set of run stages for Puppet, `include stdlib`
Requires an action ('encode', 'decode') and either a plain or base64-encoded
string. *Type*: rvalue

* `basename`: Returns the `basename` of a path (optionally stripping an extension). For example, `dirname('/path/to/a/file.ext')` returns 'file.ext'.
Copy link
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
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
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
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
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