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:
- 1111 Bytes
1 | #!/usr/local/bin/ruby -w |
2 | |
3 | # ansi_colors.rb |
4 | # |
5 | # Created by James Edward Gray II on 2005-05-03. |
6 | # Copyright 2005 Gray Productions. All rights reserved. |
7 | |
8 | require "rubygems" |
9 | require "highline/import" |
10 | |
11 | # Supported color sequences. |
12 | colors = %w{black red green yellow blue magenta cyan white} |
13 | |
14 | # Using color() with symbols. |
15 | colors.each_with_index do |c, i| |
16 | say("This should be <%= color('#{c}', :#{c}) %>!") |
17 | if i == 0 |
18 | say( "This should be " + |
19 | "<%= color('white on #{c}', :white, :on_#{c}) %>!") |
20 | else |
21 | say( "This should be " + |
22 | "<%= color( '#{colors[i - 1]} on #{c}', |
23 | :#{colors[i - 1]}, :on_#{c} ) %>!") |
24 | end |
25 | end |
26 | |
27 | # Using color with constants. |
28 | say("This should be <%= color('bold', BOLD) %>!") |
29 | say("This should be <%= color('underlined', UNDERLINE) %>!") |
30 | |
31 | # Using constants only. |
32 | say("This might even <%= BLINK %>blink<%= CLEAR %>!") |
33 | |
34 | # It even works with list wrapping. |
35 | erb_digits = %w{Zero One Two Three Four} + |
36 | ["<%= color('Five', :blue) %%>"] + |
37 | %w{Six Seven Eight Nine} |
38 | say("<%= list(#{erb_digits.inspect}, :columns_down, 3) %>") |