hamlit 1.2.0 → 1.2.1

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: cdb6bb5d76732c00209e63f4e24e651ce7f3d615
4
- data.tar.gz: c4e4eacaa487b2629a80416f9b79d213309a3ec7
3
+ metadata.gz: 5fe0ea3aa85087eba1b54add820de8b95ce7b3ef
4
+ data.tar.gz: be61e5714f27e596466db0295800460880f3f35f
5
5
  SHA512:
6
- metadata.gz: 3b93143bdc0a7eda79e9f1d3ae2d86406b410c813e4c42e841b116a2d9e785492592726e375dd01a0afb8ac7481bbdf13c8c6bf0d8871ad34a93b38112bab861
7
- data.tar.gz: 56ac9ee8f5822e8976f5f163f2467a929fd54ca0788a39193b7ede3fc44ceb527e07a7cf0396fcc74d345eb8d2319c11fb637eeb2e28c7a5fa1128faf995bd5a
6
+ metadata.gz: 8484c5952f4de0190805bc466f5e1b7e7540280cda0c1fa49dc611dba99149f3774aa6ad53c55bed1593b2306438eb1511e2625c9f72d360a1abc243744446d6
7
+ data.tar.gz: d3b8fa05c6c6e9468d44bea6499a67c3e439954c982b600da1f2aab7a70aa0fbf0511f84cafa5f3ef8a6dc47de88470d528646057248f80e904699877c1b3791
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## v1.2.1
2
+
3
+ - Fix the list of boolean attributes
4
+ - https://github.com/k0kubun/hamlit/issues/24
5
+ - Thanks to @jeffblake
6
+
1
7
  ## v1.2.0
2
8
 
3
9
  - Support `succeed`, `precede` and `surround`
@@ -24,15 +24,12 @@ module Hamlit
24
24
  JOINABLE_TOKENS = %i[on_ident on_qwords_beg on_lbracket].freeze
25
25
 
26
26
  # Only boolean attributes can be deleted for performance.
27
- BOOLEAN_ATTRIBUTES = %w[
28
- autofocus
29
- checked
30
- data
31
- disabled
32
- formnovalidate
33
- multiple
34
- readonly
35
- ].freeze
27
+ BOOLEAN_ATTRIBUTES = %w[disabled readonly multiple checked autobuffer
28
+ autoplay controls loop selected hidden scoped async
29
+ defer reversed ismap seamless muted required
30
+ autofocus novalidate formnovalidate open pubdate
31
+ itemscope allowfullscreen default inert sortable
32
+ truespeed typemustmatch data].freeze
36
33
 
37
34
  def compile_old_attribute(str)
38
35
  raise RuntimeBuild unless Ripper.sexp(str)
@@ -1,3 +1,3 @@
1
1
  module Hamlit
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
@@ -139,6 +139,7 @@ describe Hamlit::Engine do
139
139
  #foo.bar{ formnovalidate: val }
140
140
  #foo.bar{ multiple: val }
141
141
  #foo.bar{ readonly: val }
142
+ #foo.bar{ required: val }
142
143
  HAML
143
144
  <div class='bar' id='foo'></div>
144
145
  <div class='bar' id='foo'></div>
@@ -147,6 +148,7 @@ describe Hamlit::Engine do
147
148
  <div class='bar' id='foo'></div>
148
149
  <div class='bar' id='foo'></div>
149
150
  <div class='bar' id='foo'></div>
151
+ <div class='bar' id='foo'></div>
150
152
  HTML
151
153
  end
152
154
 
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: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-06 00:00:00.000000000 Z
11
+ date: 2015-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: escape_utils