hamlit 2.8.6 → 2.8.7
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 +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile +2 -1
- data/lib/hamlit/attribute_parser.rb +12 -10
- data/lib/hamlit/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f85249809ae3c05e918d5fb69f544d908c1573aa0835ea9804df69e2f94d5b4
|
4
|
+
data.tar.gz: dded39056d8210c15156774fe4bb3a60e270bf62ae5f4b803cb058b0a0369810
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef3929f4707374a2c826005ca325cb23c6a2903ff8fc27efbe3eaed3dcc99d47b607e0c963c6cda5261761d7e0da69609602ca67365e4b631a228a496e722324
|
7
|
+
data.tar.gz: d4519892eeb2946af49181d2ddd9a56bdc3477718ae5c637d70e5b59da23d14420f7c9bca7256ef3e27613ef2012efb8e7f678bc1a1bba5b8ff4779633d72613
|
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.8.7](https://github.com/k0kubun/hamlit/compare/v2.8.6...v2.8.7) - 2018-02-17
|
8
|
+
|
9
|
+
### Fixed
|
10
|
+
|
11
|
+
- Fix parser error on string interpolation in attributes
|
12
|
+
|
7
13
|
## [2.8.6](https://github.com/k0kubun/hamlit/compare/v2.8.5...v2.8.6) - 2017-12-22
|
8
14
|
|
9
15
|
### Fixed
|
data/Gemfile
CHANGED
@@ -71,31 +71,33 @@ module Hamlit
|
|
71
71
|
|
72
72
|
def each_attr(tokens)
|
73
73
|
attr_tokens = []
|
74
|
-
|
75
|
-
brace_open = 0
|
76
|
-
paren_open = 0
|
74
|
+
open_tokens = Hash.new { |h, k| h[k] = 0 }
|
77
75
|
|
78
76
|
tokens.each do |token|
|
79
77
|
_, type, _ = token
|
80
78
|
case type
|
81
79
|
when :on_comma
|
82
|
-
if
|
80
|
+
if open_tokens.values.all?(&:zero?)
|
83
81
|
yield(attr_tokens)
|
84
82
|
attr_tokens = []
|
85
83
|
next
|
86
84
|
end
|
87
85
|
when :on_lbracket
|
88
|
-
|
86
|
+
open_tokens[:array] += 1
|
89
87
|
when :on_rbracket
|
90
|
-
|
88
|
+
open_tokens[:array] -= 1
|
91
89
|
when :on_lbrace
|
92
|
-
|
90
|
+
open_tokens[:block] += 1
|
93
91
|
when :on_rbrace
|
94
|
-
|
92
|
+
open_tokens[:block] -= 1
|
95
93
|
when :on_lparen
|
96
|
-
|
94
|
+
open_tokens[:paren] += 1
|
97
95
|
when :on_rparen
|
98
|
-
|
96
|
+
open_tokens[:paren] -= 1
|
97
|
+
when :on_embexpr_beg
|
98
|
+
open_tokens[:embexpr] += 1
|
99
|
+
when :on_embexpr_end
|
100
|
+
open_tokens[:embexpr] -= 1
|
99
101
|
when :on_sp
|
100
102
|
next if attr_tokens.empty?
|
101
103
|
end
|
data/lib/hamlit/version.rb
CHANGED
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: 2.8.
|
4
|
+
version: 2.8.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takashi Kokubun
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: temple
|
@@ -368,7 +368,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
368
368
|
version: '0'
|
369
369
|
requirements: []
|
370
370
|
rubyforge_project:
|
371
|
-
rubygems_version: 2.7.
|
371
|
+
rubygems_version: 2.7.5
|
372
372
|
signing_key:
|
373
373
|
specification_version: 4
|
374
374
|
summary: High Performance Haml Implementation
|