haml 3.0.11 → 3.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/sass/plugin/rails.rb +20 -2
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.12
|
data/lib/sass/plugin/rails.rb
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
unless defined?(Sass::RAILS_LOADED)
|
|
2
|
+
if Haml::Util.ap_geq_3? && !Haml::Util.ap_geq?("3.0.0.beta4")
|
|
3
|
+
Haml::Util.haml_warn(<<WARNING)
|
|
4
|
+
DEPRECATION WARNING:
|
|
5
|
+
Haml/Sass support for Rails 3 versions before beta 4 is deprecated,
|
|
6
|
+
and will be removed in Haml/Sass 3.0.13.
|
|
7
|
+
Please upgrade to Rails 3.0.0.beta4 or later.
|
|
8
|
+
WARNING
|
|
9
|
+
end
|
|
10
|
+
|
|
2
11
|
Sass::RAILS_LOADED = true
|
|
3
12
|
|
|
4
13
|
# Reverse-merging (we're in Rails, anyway) so we dont' clobber what's already been defined further up-stream
|
|
@@ -12,8 +21,17 @@ unless defined?(Sass::RAILS_LOADED)
|
|
|
12
21
|
if defined?(ActionController::Metal)
|
|
13
22
|
# Rails >= 3.0
|
|
14
23
|
require 'sass/plugin/rack'
|
|
15
|
-
Rails.application.
|
|
16
|
-
|
|
24
|
+
if Rails.application.instance_variable_get('@app')
|
|
25
|
+
# The application has already been built,
|
|
26
|
+
# so we need to hack the middleware in
|
|
27
|
+
Rails.application.instance_variable_set('@app',
|
|
28
|
+
Sass::Plugin::Rack.new(Rails.application.app))
|
|
29
|
+
else
|
|
30
|
+
# The application hasn't been built yet,
|
|
31
|
+
# so we can just add Sass::Plugin::Rack
|
|
32
|
+
# to the pending middleware stack.
|
|
33
|
+
Rails.configuration.middleware.use(Sass::Plugin::Rack)
|
|
34
|
+
end
|
|
17
35
|
elsif defined?(ActionController::Dispatcher) &&
|
|
18
36
|
defined?(ActionController::Dispatcher.middleware)
|
|
19
37
|
# Rails >= 2.3
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 3
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
9
|
-
version: 3.0.
|
|
8
|
+
- 12
|
|
9
|
+
version: 3.0.12
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Nathan Weizenbaum
|
|
@@ -16,7 +16,7 @@ autorequire:
|
|
|
16
16
|
bindir: bin
|
|
17
17
|
cert_chain: []
|
|
18
18
|
|
|
19
|
-
date: 2010-06-
|
|
19
|
+
date: 2010-06-10 00:00:00 -07:00
|
|
20
20
|
default_executable:
|
|
21
21
|
dependencies:
|
|
22
22
|
- !ruby/object:Gem::Dependency
|