hamlit 2.16.2 → 3.0.0

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
  SHA256:
3
- metadata.gz: fcce9bd99678dbe36651b82eff53e60d3c36e518f05e6a6dba18856ce6d16bc0
4
- data.tar.gz: 3264ed62419fdf42e1fb05452c58e6b2cc5f6575f33b13b8322cbef650a70a9a
3
+ metadata.gz: 2cf74e46f5999bab46297a1c7b888f874168f87974787886920ef24f9b780414
4
+ data.tar.gz: 1938f6a98474683f4a988c04c7b9ab0499aaf0a523a2da71a938461b8dd24cbc
5
5
  SHA512:
6
- metadata.gz: 9a78f921253b5512072adccb7ba02bd28987f9c9f84b7bd0dc468a040249bb567c0432bc994a763a1516d09a6fde04a5eb50dbbf3f0a0dd835a442bca05f5838
7
- data.tar.gz: fba0599895195d4cb4c82c3a2d213d451d88bb5c82fa338093674c9416d57ad88436547d50131777fc7f0c1dc17f79f4c91d08a72a839d8d22e3f5d1b2f33507
6
+ metadata.gz: dfca98fe481d6fd7aabd7d2a5c7c154f8039051b51233645ced615fa69a0eb156da1414a9fd8e4a2519df93e7fd8ace2bb1fe69e5b693da651afc20678b6cde4
7
+ data.tar.gz: 40b4560839f50d074d8aa8a294074e360d652d88ed80a8dd26b411367c08b44e51b58eb8fcda81216b9ad33326b5d4d5f0495cef25701dc080675ba0e3471fc3
data/CHANGELOG.md CHANGED
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file. This
4
4
  project adheres to [Semantic Versioning](http://semver.org/). This change log is based upon
5
5
  [keep-a-changelog](https://github.com/olivierlacan/keep-a-changelog).
6
6
 
7
+ ## [3.0.0](https://github.com/k0kubun/hamlit/compare/v2.16.2...v3.0.0) - 2022-08-07
8
+
9
+ ### Changed
10
+
11
+ - [**breaking**] Use `disable_capture: false` for non-Rails environments
12
+ - `:disable_capture` is an option introduced in v2.16.1. See its release notes for details.
13
+ - If you use Rails, it continues to use `disable_capture: true`, so you're not impacted by this change.
14
+
7
15
  ## [2.16.2](https://github.com/k0kubun/hamlit/compare/v2.16.1...v2.16.2) - 2022-08-07
8
16
 
9
17
  ### Fixed
@@ -18,7 +26,8 @@ project adheres to [Semantic Versioning](http://semver.org/). This change log is
18
26
  - Default: `disable_capture: true` (backward-compatible)
19
27
  - For Rails, this must be `true` anyway to use Rails-native capturing.
20
28
  - If you override the option like `disable_capture: false` in Hamlit::Template,
21
- you can capture a block content like `= render do ...`.
29
+ scripts starting with `=` (e.g. `= render do ...`) capture a block content.
30
+ - Scripts starting with `-` (e.g. `- users.each do`) are not impacted.
22
31
 
23
32
  ## [2.16.0](https://github.com/k0kubun/hamlit/compare/v2.15.2...v2.16.0) - 2022-02-03
24
33
 
data/lib/hamlit/engine.rb CHANGED
@@ -22,7 +22,7 @@ module Hamlit
22
22
  param source track wbr),
23
23
  filename: "",
24
24
  check_syntax: false,
25
- disable_capture: true,
25
+ disable_capture: false,
26
26
  )
27
27
 
28
28
  use Parser
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Hamlit
3
- VERSION = '2.16.2'
3
+ VERSION = '3.0.0'
4
4
  end
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: 2.16.2
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun