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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/hamlit/compilers/old_attribute.rb +6 -9
- data/lib/hamlit/version.rb +1 -1
- data/spec/hamlit/engine/old_attributes_spec.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fe0ea3aa85087eba1b54add820de8b95ce7b3ef
|
4
|
+
data.tar.gz: be61e5714f27e596466db0295800460880f3f35f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8484c5952f4de0190805bc466f5e1b7e7540280cda0c1fa49dc611dba99149f3774aa6ad53c55bed1593b2306438eb1511e2625c9f72d360a1abc243744446d6
|
7
|
+
data.tar.gz: d3b8fa05c6c6e9468d44bea6499a67c3e439954c982b600da1f2aab7a70aa0fbf0511f84cafa5f3ef8a6dc47de88470d528646057248f80e904699877c1b3791
|
data/CHANGELOG.md
CHANGED
@@ -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
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
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)
|
data/lib/hamlit/version.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2015-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: escape_utils
|