hamlit 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/hamlit/parsers/tag.rb +1 -0
- data/lib/hamlit/parsers/text.rb +1 -1
- data/lib/hamlit/version.rb +1 -1
- data/spec/hamlit/engine/comment_spec.rb +27 -0
- data/spec/hamlit/engine/text_spec.rb +4 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e92ff1c813c38898530572a8177c675b49528e93
|
4
|
+
data.tar.gz: ff2ccf1d3641092df0931b00d708e15a97ef24a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d8d4fb3f7fa9fb4a8fc02318a77264220160faeda20cd44e242d9446093a4bcd7189426a4ae58ad243605459678843007da1889758f254ef07eda1ac021e8fa
|
7
|
+
data.tar.gz: 4c9d9a025c178443fb21080be6695f65f8691c76987e5d2fd028fde8921e6572b821dc500a7b1de1d4fa57929d6f12844fe0d6841e8adfac5b33bf0e0ecef9c0
|
data/CHANGELOG.md
CHANGED
data/lib/hamlit/parsers/tag.rb
CHANGED
data/lib/hamlit/parsers/text.rb
CHANGED
data/lib/hamlit/version.rb
CHANGED
@@ -14,6 +14,33 @@ describe Hamlit::Parser do
|
|
14
14
|
HTML
|
15
15
|
end
|
16
16
|
|
17
|
+
it 'accepts backslash-only line in a comment' do
|
18
|
+
assert_render(<<-'HAML', <<-HTML)
|
19
|
+
/
|
20
|
+
\
|
21
|
+
HAML
|
22
|
+
<!--
|
23
|
+
|
24
|
+
-->
|
25
|
+
HTML
|
26
|
+
end
|
27
|
+
|
28
|
+
it 'renders a deeply indented comment starting with backslash' do
|
29
|
+
assert_render(<<-'HAML', <<-HTML)
|
30
|
+
/
|
31
|
+
\ a
|
32
|
+
/
|
33
|
+
a
|
34
|
+
HAML
|
35
|
+
<!--
|
36
|
+
a
|
37
|
+
-->
|
38
|
+
<!--
|
39
|
+
a
|
40
|
+
-->
|
41
|
+
HTML
|
42
|
+
end
|
43
|
+
|
17
44
|
it 'ignores multiline comment' do
|
18
45
|
assert_render(<<-'HAML', <<-HTML)
|
19
46
|
-# if true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hamlit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takashi Kokubun
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: escape_utils
|
@@ -569,3 +569,4 @@ test_files:
|
|
569
569
|
- spec/rails/vendor/assets/javascripts/.keep
|
570
570
|
- spec/rails/vendor/assets/stylesheets/.keep
|
571
571
|
- spec/spec_helper.rb
|
572
|
+
has_rdoc:
|