hamlit 2.16.1 → 2.16.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 921962522202b469a63ef1efb1c6d40592e300d4fc77d6e11be1a6a60c74de82
4
- data.tar.gz: 54b36f243114ab4d2f97b370c9c9a6a4b617e844ddf106fde2c2f8162972b18e
3
+ metadata.gz: fcce9bd99678dbe36651b82eff53e60d3c36e518f05e6a6dba18856ce6d16bc0
4
+ data.tar.gz: 3264ed62419fdf42e1fb05452c58e6b2cc5f6575f33b13b8322cbef650a70a9a
5
5
  SHA512:
6
- metadata.gz: babaa44e8ba551564676bbfac32f2b14d9b5c1e2da6de71aa434cb1cc33dcb929a20569a5665ec2451489327beac0ece13a1d4b2d1bee834cabd744a0ef555f6
7
- data.tar.gz: 93d5ae7dcc898e6376c21820c36c82d3ba481fbac14d1a1cff982640c22988e57cbd69cfa2d56816207d51e33970ba642d2d0f4ebf0537ba02073c87cad08b64
6
+ metadata.gz: 9a78f921253b5512072adccb7ba02bd28987f9c9f84b7bd0dc468a040249bb567c0432bc994a763a1516d09a6fde04a5eb50dbbf3f0a0dd835a442bca05f5838
7
+ data.tar.gz: fba0599895195d4cb4c82c3a2d213d451d88bb5c82fa338093674c9416d57ad88436547d50131777fc7f0c1dc17f79f4c91d08a72a839d8d22e3f5d1b2f33507
data/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ 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
+ ## [2.16.2](https://github.com/k0kubun/hamlit/compare/v2.16.1...v2.16.2) - 2022-08-07
8
+
9
+ ### Fixed
10
+
11
+ - Fix an issue when `disable_capture: false` is set and a Ruby comment is put after `do`
12
+
7
13
  ## [2.16.1](https://github.com/k0kubun/hamlit/compare/v2.16.0...v2.16.1) - 2022-08-07
8
14
 
9
15
  ### Added
@@ -78,10 +78,9 @@ module Hamlit
78
78
  [:code, ')'],
79
79
  ]
80
80
  else
81
- content = [:multi, [:newline], yield(node)]
82
81
  [:multi,
83
82
  [:block, "#{var} = #{node.value[:text]}",
84
- @disable_capture ? content : [:capture, Temple::Utils.unique_name, content],
83
+ [:multi, [:newline], @disable_capture ? yield(node) : [:capture, Temple::Utils.unique_name, yield(node)]]
85
84
  ],
86
85
  ]
87
86
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Hamlit
3
- VERSION = '2.16.1'
3
+ VERSION = '2.16.2'
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.1
4
+ version: 2.16.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun