Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 373
- Log:
Initial import of Radiant 0.9.1, which is now packaged as a gem. This is an
import of the tagged 0.9.1 source checked out from GitHub, which isn't quite
the same as the gem distribution - but it doesn't seem to be available in an
archived form and the installed gem already has modifications, so this is
the closest I can get.
- Author:
- rool
- Date:
- Mon Mar 21 13:40:05 +0000 2011
- Size:
- 1673 Bytes
1 | = Read Me |
2 | |
3 | by James Edward Gray II |
4 | |
5 | == Description |
6 | |
7 | Welcome to HighLine. |
8 | |
9 | HighLine was designed to ease the tedious tasks of doing console input and |
10 | output with low-level methods like gets() and puts(). HighLine provides a |
11 | robust system for requesting data from a user, without needing to code all the |
12 | error checking and validation rules and without needing to convert the typed |
13 | Strings into what your program really needs. Just tell HighLine what you're |
14 | after, and let it do all the work. |
15 | |
16 | == Documentation |
17 | |
18 | See HighLine and HighLine::Question for documentation. |
19 | |
20 | == Examples |
21 | |
22 | Basic usage: |
23 | |
24 | ask("Company? ") { |q| q.default = "none" } |
25 | |
26 | Validation: |
27 | |
28 | ask("Age? ", Integer) { |q| q.in = 0..105 } |
29 | ask("Name? (last, first) ") { |q| q.validate = /\A\w+, ?\w+\Z/ } |
30 | |
31 | Type conversion for answers: |
32 | |
33 | ask("Birthday? ", Date) |
34 | ask("Interests? (comma sep list) ", lambda { |str| str.split(/,\s*/) }) |
35 | |
36 | Reading passwords: |
37 | |
38 | ask("Enter your password: ") { |q| q.echo = false } |
39 | ask("Enter your password: ") { |q| q.echo = "x" } |
40 | |
41 | ERb based output (with HighLine's ANSI color tools): |
42 | |
43 | say("This should be <%= color('bold', BOLD) %>!") |
44 | |
45 | Menus: |
46 | |
47 | choose do |menu| |
48 | menu.prompt = "Please choose your favorite programming language? " |
49 | |
50 | menu.choice(:ruby) { say("Good choice!") } |
51 | menu.choices(:python, :perl) { say("Not from around here, are you?") } |
52 | end |
53 | |
54 | For more examples see the examples/ directory of this project. |
55 | |
56 | == Installing |
57 | |
58 | See the INSTALL file for instructions. |
59 | |
60 | == Questions and/or Comments |
61 | |
62 | Feel free to email {James Edward Gray II}[mailto:james@grayproductions.net] or |
63 | {Gregory Brown}[mailto:gregory.t.brown@gmail.com] with any questions. |