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

Add an as_uri method #27

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Add an as_uri method #27

wants to merge 5 commits into from

Conversation

robrwo
Copy link
Contributor

@robrwo robrwo commented Jan 30, 2014

This patch adds an as_uri method that returns a URI::file object, along with some rudimentary tests.

It does not support file URIs for other operating systems (such as Windows).

@kenahoo
Copy link
Owner

kenahoo commented Jan 31, 2014

Thanks. What happens on Windows if you don't set $^O = "Unix"?

@robrwo
Copy link
Contributor Author

robrwo commented Jan 31, 2014

@kenahoo I'm not sure. I think it should get the OS from the object (if it can) and pass that the URI::file.

I also realise that I forgot to add POD for the method.

- Added items for as_uri method to the POD.

- Whitespace cleanup.
@robrwo
Copy link
Contributor Author

robrwo commented Feb 3, 2014

@kenahoo I've added some tests for Win32 as well as POD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants