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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e92ff1c813c38898530572a8177c675b49528e93
4
- data.tar.gz: ff2ccf1d3641092df0931b00d708e15a97ef24a2
3
+ metadata.gz: f46fa9efe505104cd9dbf51194e8a1cc21bf4219
4
+ data.tar.gz: 9d4482ab58838d4a8050e3f598aad02072cc14b6
5
5
  SHA512:
6
- metadata.gz: 6d8d4fb3f7fa9fb4a8fc02318a77264220160faeda20cd44e242d9446093a4bcd7189426a4ae58ad243605459678843007da1889758f254ef07eda1ac021e8fa
7
- data.tar.gz: 4c9d9a025c178443fb21080be6695f65f8691c76987e5d2fd028fde8921e6572b821dc500a7b1de1d4fa57929d6f12844fe0d6841e8adfac5b33bf0e0ecef9c0
6
+ metadata.gz: 83051f74ebe3b2621ebc9439b678f1a2b967163a36354cfa0503de403736930b2fd7dd18bfcc49e6690b83bb970e629afde447b8ac4c3df889c07dcb992dc0fb
7
+ data.tar.gz: 4b07f8bca0e0ac486fb5c1313a6a70677bd7d6a68954304703f2244f5c537d4ba025537135d13d6a01fe84ba61d7e83125c06717ba6373b087fa925525052315
@@ -1,3 +1,7 @@
1
+ ## v1.3.2
2
+
3
+ - Render `begin`, `rescue` and `ensure`
4
+
1
5
  ## v1.3.1
2
6
 
3
7
  - Bugfix about a backslash-only comment
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Hamlit
2
- VERSION = "1.3.1"
2
+ VERSION = "1.3.2"
3
3
  end
@@ -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
  [&quot;, &quot;]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hamlit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun