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:
- 1265 Bytes
1 | lib_dir = File.dirname(__FILE__) + '/../lib' |
2 | require File.dirname(__FILE__) + '/linked_rails' |
3 | |
4 | require 'test/unit' |
5 | require 'fileutils' |
6 | $:.unshift lib_dir unless $:.include?(lib_dir) |
7 | require 'haml' |
8 | require 'sass' |
9 | |
10 | Sass::RAILS_LOADED = true unless defined?(Sass::RAILS_LOADED) |
11 | |
12 | class Test::Unit::TestCase |
13 | def munge_filename(opts) |
14 | return if opts.has_key?(:filename) |
15 | test_name = caller[1].gsub(/^.*`(?:\w+ )*(\w+)'.*$/, '\1') |
16 | opts[:filename] = "#{test_name}_inline.sass" |
17 | end |
18 | |
19 | def clean_up_sassc |
20 | path = File.dirname(__FILE__) + "/../.sass-cache" |
21 | FileUtils.rm_r(path) if File.exist?(path) |
22 | end |
23 | |
24 | def assert_warning(message) |
25 | the_real_stderr, $stderr = $stderr, StringIO.new |
26 | yield |
27 | |
28 | if message.is_a?(Regexp) |
29 | assert_match message, $stderr.string.strip |
30 | else |
31 | assert_equal message.strip, $stderr.string.strip |
32 | end |
33 | ensure |
34 | $stderr = the_real_stderr |
35 | end |
36 | |
37 | def silence_warnings(&block) |
38 | Haml::Util.silence_warnings(&block) |
39 | end |
40 | |
41 | def rails_block_helper_char |
42 | return '=' if Haml::Util.ap_geq_3? |
43 | return '-' |
44 | end |
45 | |
46 | def form_for_calling_convention(name) |
47 | return "@#{name}, :as => :#{name}, :html => {:class => nil, :id => nil}" if Haml::Util.ap_geq_3_beta_3? |
48 | return ":#{name}, @#{name}" |
49 | end |
50 | end |