haml 3.2.0.alpha.4 → 3.2.0.alpha.5
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of haml might be problematic. Click here for more details.
- data/REVISION +1 -1
- data/VERSION +1 -1
- data/lib/haml/template.rb +1 -1
- data/lib/haml/util.rb +5 -2
- metadata +2 -2
data/REVISION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
ffb73065aa2843b73b4a85766085cc93b9c8fd85
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.2.0.alpha.
|
1
|
+
3.2.0.alpha.5
|
data/lib/haml/template.rb
CHANGED
@@ -54,7 +54,7 @@ end
|
|
54
54
|
# Patching was necessary for versions <= 2.0.1,
|
55
55
|
# but we can make it a normal handler for higher versions.
|
56
56
|
if defined?(ActionView::TemplateHandler) ||
|
57
|
-
(defined?(ActionView::Template) && defined?(ActionView::Template::
|
57
|
+
(defined?(ActionView::Template) && defined?(ActionView::Template::Handlers))
|
58
58
|
require 'haml/template/plugin'
|
59
59
|
else
|
60
60
|
require 'haml/template/patch'
|
data/lib/haml/util.rb
CHANGED
@@ -424,8 +424,11 @@ WARNING
|
|
424
424
|
# For example, `:Error` will return `ActionView::TemplateError`
|
425
425
|
# or `ActionView::Template::Error`.
|
426
426
|
def av_template_class(name)
|
427
|
-
|
428
|
-
|
427
|
+
if ActionView::Template.const_defined?(name)
|
428
|
+
ActionView::Template.const_get(name)
|
429
|
+
else
|
430
|
+
ActionView.const_get("Template#{name}")
|
431
|
+
end
|
429
432
|
end
|
430
433
|
|
431
434
|
## Rails XSS Safety
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: haml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.0.alpha.
|
4
|
+
version: 3.2.0.alpha.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Weizenbaum
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-06-
|
13
|
+
date: 2011-06-08 00:00:00 -04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|