mkasberg / script-seed

🌱 Seed scripts for popular (& unpopular) scripting languages.
https://mkasberg.github.io/script-seed/
MIT License
11 stars 23 forks source link

Add Ruby Seed Script #3

Closed mkasberg closed 6 years ago

mkasberg commented 6 years ago

Add a Ruby "seed" script to the seeds folder. Basically, this would be an executable Ruby file (with #!/usr/bin/env ruby that parses some simple command-line arguments (like -h or -t, see other scripts as examples) and prints a sentence or two to the command line. It's intended to demonstrate how to parse command line arguments and print something to the console in Ruby.

See CONTRIBUTING.md, and feel free to ask for help or clarification here.

curranlipsett commented 6 years ago

I could take this.

mkasberg commented 6 years ago

Almost completed in #9!

caseydierking commented 6 years ago

I started working on this before the comments were here. Submitted a pull request. Cool project, it got me diving back into ruby again after a hiatus. Thanks!

mkasberg commented 6 years ago

This has been fixed by #9. I'm closing this issue.

@caseydierking , I'll leave your PR open for now and take a closer look at it later today. There's a chance it might have some improvements on the work curranlipsett did, and if so I'll merge in the best parts of both.

Thanks everyone 👍