haml-edge 2.3.30 → 2.3.31
Sign up to get free protection for your applications and to get access to all the features.
- data/CONTRIBUTING +4 -0
- data/EDGE_GEM_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/haml/precompiler.rb +5 -5
- data/test/haml/results/just_stuff.xhtml +3 -3
- metadata +6 -4
data/CONTRIBUTING
ADDED
data/EDGE_GEM_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.
|
1
|
+
2.3.31
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.
|
1
|
+
2.3.31
|
data/lib/haml/precompiler.rb
CHANGED
@@ -109,8 +109,8 @@ END
|
|
109
109
|
|
110
110
|
names.map do |name|
|
111
111
|
# Can't use || because someone might explicitly pass in false with a symbol
|
112
|
-
sym_local = "_haml_locals[#{name.to_sym.inspect}]"
|
113
|
-
str_local = "_haml_locals[#{name.to_s.inspect}]"
|
112
|
+
sym_local = "_haml_locals[#{name.to_sym.inspect}]"
|
113
|
+
str_local = "_haml_locals[#{name.to_s.inspect}]"
|
114
114
|
"#{name} = #{sym_local}.nil? ? #{str_local} : #{sym_local}"
|
115
115
|
end.join(';') + ';'
|
116
116
|
end
|
@@ -719,7 +719,7 @@ END
|
|
719
719
|
else
|
720
720
|
open_tag << "\n" unless parse || nuke_inner_whitespace || (self_closing && nuke_outer_whitespace)
|
721
721
|
end
|
722
|
-
|
722
|
+
|
723
723
|
push_merged_text(open_tag, tag_closed || self_closing || nuke_inner_whitespace ? 0 : 1,
|
724
724
|
!nuke_outer_whitespace)
|
725
725
|
|
@@ -775,11 +775,11 @@ END
|
|
775
775
|
raise SyntaxError.new('Illegal nesting: nesting within a tag that already has content is illegal.', @next_line.index)
|
776
776
|
end
|
777
777
|
|
778
|
-
open = "<!--#{conditional}
|
778
|
+
open = "<!--#{conditional}"
|
779
779
|
|
780
780
|
# Render it statically if possible
|
781
781
|
unless line.empty?
|
782
|
-
return push_text("#{open}#{line} #{conditional ? "<![endif]-->" : "-->"}")
|
782
|
+
return push_text("#{open} #{line} #{conditional ? "<![endif]-->" : "-->"}")
|
783
783
|
end
|
784
784
|
|
785
785
|
push_text(open, 1)
|
@@ -26,7 +26,7 @@ stuff followed by whitespace
|
|
26
26
|
yee\ha
|
27
27
|
</p>
|
28
28
|
<!-- Short comment -->
|
29
|
-
<!--
|
29
|
+
<!--
|
30
30
|
This is a block comment
|
31
31
|
cool, huh?
|
32
32
|
<strong>there can even be sub-tags!</strong>
|
@@ -35,13 +35,13 @@ stuff followed by whitespace
|
|
35
35
|
<p class=''>class attribute should appear!</p>
|
36
36
|
<p>this attribute shouldn't appear</p>
|
37
37
|
<!--[if lte IE6]> conditional comment! <![endif]-->
|
38
|
-
<!--[if gte IE7]>
|
38
|
+
<!--[if gte IE7]>
|
39
39
|
<p>Block conditional comment</p>
|
40
40
|
<div>
|
41
41
|
<h1>Cool, eh?</h1>
|
42
42
|
</div>
|
43
43
|
<![endif]-->
|
44
|
-
<!--[if gte IE5.2]>
|
44
|
+
<!--[if gte IE5.2]>
|
45
45
|
Woah a period.
|
46
46
|
<![endif]-->
|
47
47
|
testtest
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: haml-edge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.31
|
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: 2009-09-
|
13
|
+
date: 2009-09-15 00:00:00 -04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -44,9 +44,10 @@ extensions: []
|
|
44
44
|
|
45
45
|
extra_rdoc_files:
|
46
46
|
- README.md
|
47
|
+
- VERSION
|
47
48
|
- REVISION
|
49
|
+
- CONTRIBUTING
|
48
50
|
- MIT-LICENSE
|
49
|
-
- VERSION
|
50
51
|
- VERSION_NAME
|
51
52
|
- EDGE_GEM_VERSION
|
52
53
|
files:
|
@@ -254,9 +255,10 @@ files:
|
|
254
255
|
- init.rb
|
255
256
|
- .yardopts
|
256
257
|
- README.md
|
258
|
+
- VERSION
|
257
259
|
- REVISION
|
260
|
+
- CONTRIBUTING
|
258
261
|
- MIT-LICENSE
|
259
|
-
- VERSION
|
260
262
|
- VERSION_NAME
|
261
263
|
- EDGE_GEM_VERSION
|
262
264
|
has_rdoc: true
|