hamlit 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/hamlit/parsers/script.rb +1 -1
- data/lib/hamlit/version.rb +1 -1
- data/spec/hamlit/engine/silent_script_spec.rb +14 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f46fa9efe505104cd9dbf51194e8a1cc21bf4219
|
4
|
+
data.tar.gz: 9d4482ab58838d4a8050e3f598aad02072cc14b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83051f74ebe3b2621ebc9439b678f1a2b967163a36354cfa0503de403736930b2fd7dd18bfcc49e6690b83bb970e629afde447b8ac4c3df889c07dcb992dc0fb
|
7
|
+
data.tar.gz: 4b07f8bca0e0ac486fb5c1313a6a70677bd7d6a68954304703f2244f5c537d4ba025537135d13d6a01fe84ba61d7e83125c06717ba6373b087fa925525052315
|
data/CHANGELOG.md
CHANGED
@@ -10,7 +10,7 @@ module Hamlit
|
|
10
10
|
include Concerns::Error
|
11
11
|
include Concerns::Indentable
|
12
12
|
|
13
|
-
INTERNAL_STATEMENTS = %w[else elsif when].freeze
|
13
|
+
INTERNAL_STATEMENTS = %w[else elsif rescue ensure when].freeze
|
14
14
|
DEFAULT_SCRIPT_OPTIONS = { force_escape: false, disable_escape: false }.freeze
|
15
15
|
|
16
16
|
included do
|
data/lib/hamlit/version.rb
CHANGED
@@ -152,6 +152,20 @@ describe Hamlit::Engine do
|
|
152
152
|
HTML
|
153
153
|
end
|
154
154
|
|
155
|
+
it 'renders begin-rescue' do
|
156
|
+
assert_render(<<-'HAML', <<-HTML)
|
157
|
+
- begin
|
158
|
+
- raise 'error'
|
159
|
+
- rescue
|
160
|
+
hello
|
161
|
+
- ensure
|
162
|
+
world
|
163
|
+
HAML
|
164
|
+
hello
|
165
|
+
world
|
166
|
+
HTML
|
167
|
+
end
|
168
|
+
|
155
169
|
it 'joins a next line if a current line ends with ","' do
|
156
170
|
assert_render("- foo = [', \n ']\n= foo", <<-HTML)
|
157
171
|
[", "]
|