haml-edge 2.3.26 → 2.3.27
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/EDGE_GEM_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/haml/precompiler.rb +2 -2
- data/test/haml/engine_test.rb +25 -0
- metadata +5 -5
data/EDGE_GEM_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.
|
1
|
+
2.3.27
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.
|
1
|
+
2.3.27
|
data/lib/haml/precompiler.rb
CHANGED
data/test/haml/engine_test.rb
CHANGED
@@ -323,6 +323,31 @@ HTML
|
|
323
323
|
HAML
|
324
324
|
end
|
325
325
|
|
326
|
+
def test_silent_end_with_stuff
|
327
|
+
assert_equal(<<HTML, render(<<HAML))
|
328
|
+
e
|
329
|
+
d
|
330
|
+
c
|
331
|
+
b
|
332
|
+
a
|
333
|
+
HTML
|
334
|
+
- str = "abcde"
|
335
|
+
- if true
|
336
|
+
= str.slice!(-1).chr
|
337
|
+
- end until str.empty?
|
338
|
+
HAML
|
339
|
+
|
340
|
+
assert_equal(<<HTML, render(<<HAML))
|
341
|
+
<p>hi!</p>
|
342
|
+
HTML
|
343
|
+
- if true
|
344
|
+
%p hi!
|
345
|
+
- end if "foo".gsub(/f/) do
|
346
|
+
- "z"
|
347
|
+
- end + "bar"
|
348
|
+
HAML
|
349
|
+
end
|
350
|
+
|
326
351
|
def test_multiline_with_colon_after_filter
|
327
352
|
assert_equal(<<HTML, render(<<HAML))
|
328
353
|
Foo
|
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.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Weizenbaum
|
@@ -44,9 +44,9 @@ extensions: []
|
|
44
44
|
|
45
45
|
extra_rdoc_files:
|
46
46
|
- README.md
|
47
|
-
- VERSION
|
48
|
-
- MIT-LICENSE
|
49
47
|
- REVISION
|
48
|
+
- MIT-LICENSE
|
49
|
+
- VERSION
|
50
50
|
- VERSION_NAME
|
51
51
|
- EDGE_GEM_VERSION
|
52
52
|
files:
|
@@ -249,9 +249,9 @@ files:
|
|
249
249
|
- init.rb
|
250
250
|
- .yardopts
|
251
251
|
- README.md
|
252
|
-
- VERSION
|
253
|
-
- MIT-LICENSE
|
254
252
|
- REVISION
|
253
|
+
- MIT-LICENSE
|
254
|
+
- VERSION
|
255
255
|
- VERSION_NAME
|
256
256
|
- EDGE_GEM_VERSION
|
257
257
|
has_rdoc: true
|