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:
- 863 Bytes
1 | #!/usr/bin/env ruby -w |
2 | |
3 | # color_scheme.rb |
4 | # |
5 | # Created by Jeremy Hinegardner on 2007-01-24 |
6 | # Copyright 2007 Jeremy Hinegardner. All rights reserved |
7 | |
8 | require 'rubygems' |
9 | require 'highline/import' |
10 | |
11 | # Create a color scheme, naming color patterns with symbol names. |
12 | ft = HighLine::ColorScheme.new do |cs| |
13 | cs[:headline] = [ :bold, :yellow, :on_black ] |
14 | cs[:horizontal_line] = [ :bold, :white, :on_blue] |
15 | cs[:even_row] = [ :green ] |
16 | cs[:odd_row] = [ :magenta ] |
17 | end |
18 | |
19 | # Assign that color scheme to HighLine... |
20 | HighLine.color_scheme = ft |
21 | |
22 | # ...and use it. |
23 | say("<%= color('Headline', :headline) %>") |
24 | say("<%= color('-'*20, :horizontal_line) %>") |
25 | |
26 | # Setup a toggle for rows. |
27 | i = true |
28 | ("A".."D").each do |row| |
29 | row_color = i ? :even_row : :odd_row |
30 | say("<%= color('#{row}', '#{row_color}') %>") |
31 | i = !i |
32 | end |