Quick-start aids.
Originally published 2006
Once you’ve begun finding out how things work, you need some code fragments you can read and reuse.
Contents
Rakefiles
Rakefiles gathered from the web. (Apologies. I should have copied the files, rather than linking to them. All but one seems to have disappeared!)
- Rakefile that loops over a specified list of files (my copy).
(It is also possible to dynamically generate the list of files to operate on, using standard Ruby code.) - Rakefile to build a prototype
- Rakefile for a project build
- Rakefile that generates version numbers for each build
- Rakefile for building Rails gems
- Rakefile for the ActiveRecord part of the Rails project
Basic Templates
A template does the basic things you need to do in an application: Handle command line arguments, print usage instructions, and implement a main method. These are initial efforts. I expect things to change as I learn more:
- Script Template
- Program Template
- Module Template
- Ara Howard’s template for code that be executed as a script or added as a module to another program and invoked as a subroutine.
- Module Installation Template
- Non-Ruby Installation
- Simple Screen Handler
Code Fragments
Copyright © 2006-2017, TreeLight PenWorks
Please share!