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

Rename README.rdoc to README.md, if found #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Rename README.rdoc to README.md, if found #2

wants to merge 1 commit into from

Conversation

andersr
Copy link

@andersr andersr commented Nov 9, 2013

No description provided.

@loganhasson
Copy link
Contributor

Sweet! Does it need the ARGV[0] part, though? Does File.exists?(README.rdoc) work?

@manu3569
Copy link

Maybe we can use file to generate the README.md file with a template for the content (i.e. Usage/Installation/Description/License/etc. sections)

http://edgeguides.rubyonrails.org/rails_application_templates.html#vendor-lib-file-initializer-filename-data-nil-block

@andersr
Copy link
Author

andersr commented Nov 11, 2013

I actually never tried it without ARGV[0], but it seems necessary since we want to specifically reference the file at the root of the newly created dir based on that argument.

However, taking Manuel's approach and renaming/generating the README as part of initiailze would make all that moot, and probably is a more robust solution.

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.

3 participants