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:
- 788 Bytes
1 | require 'rubygems' |
2 | require 'timeout' |
3 | |
4 | unless defined? RADIUS_LIB |
5 | |
6 | RADIUS_LIB = File.join(File.dirname(__FILE__), '..', 'lib') |
7 | $LOAD_PATH << RADIUS_LIB |
8 | |
9 | require 'radius' |
10 | require 'test/unit' |
11 | |
12 | module RadiusTestHelper |
13 | class TestContext < Radius::Context; end |
14 | |
15 | def new_context |
16 | Radius::Context.new do |c| |
17 | c.define_tag("reverse" ) { |tag| tag.expand.reverse } |
18 | c.define_tag("capitalize") { |tag| tag.expand.upcase } |
19 | c.define_tag("attr" ) { |tag| tag.attr.inspect } |
20 | c.define_tag("echo" ) { |tag| tag.attr['value'] } |
21 | c.define_tag("wrap" ) { |tag| "[#{tag.expand}]" } |
22 | end |
23 | end |
24 | |
25 | def define_tag(name, options = {}, &block) |
26 | @context.define_tag name, options, &block |
27 | end |
28 | end |
29 | end |