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:
- 1420 Bytes
1 | unless defined?(Sass::MERB_LOADED) |
2 | Sass::MERB_LOADED = true |
3 | |
4 | version = Merb::VERSION.split('.').map { |n| n.to_i } |
5 | if version[0] <= 0 && version[1] < 5 |
6 | root = MERB_ROOT |
7 | env = MERB_ENV |
8 | else |
9 | root = Merb.root.to_s |
10 | env = Merb.environment |
11 | end |
12 | |
13 | Sass::Plugin.options.merge!(:template_location => root + '/public/stylesheets/sass', |
14 | :css_location => root + '/public/stylesheets', |
15 | :cache_location => root + '/tmp/sass-cache', |
16 | :always_check => env != "production", |
17 | :full_exception => env != "production") |
18 | config = Merb::Plugins.config[:sass] || Merb::Plugins.config["sass"] || {} |
19 | |
20 | if defined? config.symbolize_keys! |
21 | config.symbolize_keys! |
22 | end |
23 | |
24 | Sass::Plugin.options.merge!(config) |
25 | |
26 | if version[0] > 0 || version[1] >= 9 |
27 | |
28 | class Merb::Rack::Application |
29 | def call_with_sass(env) |
30 | Sass::Plugin.check_for_updates |
31 | call_without_sass(env) |
32 | end |
33 | alias_method :call_without_sass, :call |
34 | alias_method :call, :call_with_sass |
35 | end |
36 | |
37 | else |
38 | |
39 | class MerbHandler |
40 | def process_with_sass(request, response) |
41 | Sass::Plugin.check_for_updates |
42 | process_without_sass(request, response) |
43 | end |
44 | alias_method :process_without_sass, :process |
45 | alias_method :process, :process_with_sass |
46 | end |
47 | |
48 | end |
49 | end |