hamlit 2.1.1 → 2.1.2

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: 7cfbb5fd9caa149d97cc4fb853a2dd612d3d8c0e
4
- data.tar.gz: 76620cac7509f49595bcb854e5febe83fbe9ffc0
3
+ metadata.gz: 7782d0478a595899a7218a798f2e3448fe454b62
4
+ data.tar.gz: 44b82b3aa85549836524a284a1fed4744efb7042
5
5
  SHA512:
6
- metadata.gz: 096b5901abbd8831d8c9823d8dff3057f9579e7642076f823d453b255960769de171e7f6a6065b2471382e85b7e96e7b2d2cbd9b9c7438b9dcdfae48f7de3486
7
- data.tar.gz: 4cb6a4a7720bbdf9bf41e879e3331c9738912d8893910877e9a56f255051ea072523ec93642580cbb640ea4bf047c669f0e8b4f3eed63fd313ac79ed7e9a70d3
6
+ metadata.gz: 29045e0c90085d396ee564b06607abf72c318ba0c4864e4930eba7a747ee8ad218bf879d5175cc7fc3ff0044bfb61e53377ee5e7d2201bc586164cbfd4adfdd4
7
+ data.tar.gz: bdd6e4cdcbdb9e82225890a075a73a4b82303e8dba72c166d9ab771924d1b63fedc0f4c7ffea8c45d1ca56b20d8c624debe2760fc1cf35459874c796c8ee332f
data/CHANGELOG.md CHANGED
@@ -4,13 +4,21 @@ 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.1.1] - 2015-12-15
7
+ ## [2.1.2](https://github.com/k0kubun/hamlit/compare/v2.1.1...v2.1.2) - 2015-12-16
8
8
 
9
9
  ## Fixed
10
10
 
11
- - Show proper line number for unblaced brackets error
11
+ - Fix rendering failure for static integer
12
+ [#50](https://github.com/k0kubun/hamlit/pull/50). *Thanks to @yatmsu*
12
13
 
13
- ## [2.1.0] - 2015-12-14
14
+ ## [2.1.1](https://github.com/k0kubun/hamlit/compare/v2.1.0...v2.1.1) - 2015-12-15
15
+
16
+ ## Fixed
17
+
18
+ - Use faster HTML-escape method for compiling
19
+ - Show proper line number for unbalanced brackets error
20
+
21
+ ## [2.1.0](https://github.com/k0kubun/hamlit/compare/v2.0.2...v2.1.0) - 2015-12-14
14
22
 
15
23
  ## Added
16
24
 
@@ -27,19 +35,19 @@ project adheres to [Semantic Versioning](http://semver.org/). This change log is
27
35
  - Accept NUL character in attribute keys
28
36
  [#49](https://github.com/k0kubun/hamlit/pull/49). *Thanks to @eagletmt*
29
37
 
30
- ## [2.0.2] - 2015-12-12
38
+ ## [2.0.2](https://github.com/k0kubun/hamlit/compare/v2.0.1...v2.0.2) - 2015-12-12
31
39
 
32
40
  ### Fixed
33
41
  - Fix a crash in compiling with CLI
34
42
  [#46](https://github.com/k0kubun/hamlit/pull/46). *Thanks to @walf443*
35
43
  - Use default engine options properly in CLI commands
36
44
 
37
- ## [2.0.1] - 2015-11-30
45
+ ## [2.0.1](https://github.com/k0kubun/hamlit/compare/v2.0.0...v2.0.1) - 2015-11-30
38
46
 
39
47
  ### Fixed
40
48
  - Fix build failure of native extension
41
49
 
42
- ## [2.0.0] - 2015-11-30 [YANKED]
50
+ ## [2.0.0](https://github.com/k0kubun/hamlit/compare/v1.7.2...v2.0.0) - 2015-11-30 [YANKED]
43
51
  ### Added
44
52
  - Support object reference
45
53
 
@@ -62,43 +70,43 @@ project adheres to [Semantic Versioning](http://semver.org/). This change log is
62
70
  - You should specify HTML-escaping availability for script and attrs
63
71
  separately.
64
72
 
65
- ## [1.7.2] - 2015-07-22
73
+ ## [1.7.2](https://github.com/k0kubun/hamlit/compare/v1.7.1...v1.7.2) - 2015-07-22
66
74
 
67
75
  ### Fixed
68
76
  - Bugfix about parsing a content of tag
69
77
  - This was introduced in v1.6.6.
70
78
 
71
- ## [1.7.1] - 2015-07-21
79
+ ## [1.7.1](https://github.com/k0kubun/hamlit/compare/v1.7.0...v1.7.1) - 2015-07-21
72
80
 
73
81
  ### Fixed
74
82
  - Don't escape a block content of some helpers
75
83
  [#35](https://github.com/k0kubun/hamlit/issues/35). *Thanks to @felixbuenemann*
76
84
 
77
- ## [1.7.0] - 2015-07-09
85
+ ## [1.7.0](https://github.com/k0kubun/hamlit/compare/v1.6.7...v1.7.0) - 2015-07-09
78
86
 
79
87
  ### Added
80
88
  - Support Ruby 2.2.0 hash syntax
81
89
  - like `{ "hyphened-key": "value" }`
82
90
 
83
- ## [1.6.7] - 2015-06-27
91
+ ## [1.6.7](https://github.com/k0kubun/hamlit/compare/v1.6.6...v1.6.7) - 2015-06-27
84
92
 
85
93
  ### Fixed
86
94
  - Remove unused variables and avoid shadowing
87
95
  - To suppress warnings in application using `rspec --warnings`
88
96
 
89
- ## [1.6.6] - 2015-06-24
97
+ ## [1.6.6](https://github.com/k0kubun/hamlit/compare/v1.6.5...v1.6.6) - 2015-06-24
90
98
 
91
99
  ### Added
92
100
  - Allow hyphenated HTML-style attributes
93
101
  [pull #29](https://github.com/k0kubun/hamlit/pull/29). *thanks to @babelfish*
94
102
 
95
- ## [1.6.5] - 2015-06-13
103
+ ## [1.6.5](https://github.com/k0kubun/hamlit/compare/v1.6.4...v1.6.5) - 2015-06-13
96
104
 
97
105
  ### Fixed
98
106
  - Don't duplicate element class and attribute class
99
107
  - Raise an error for an empty tag name
100
108
 
101
- ## [1.6.4] - 2015-06-13
109
+ ## [1.6.4](https://github.com/k0kubun/hamlit/compare/v1.6.3...v1.6.4) - 2015-06-13
102
110
 
103
111
  ### Changed
104
112
  - Show human-friendly error messages
@@ -108,48 +116,48 @@ project adheres to [Semantic Versioning](http://semver.org/). This change log is
108
116
  - Increase the number of checked cases for illegal nesting.
109
117
  *Thanks to @eagletmt*
110
118
 
111
- ## [1.6.3] - 2015-06-13
119
+ ## [1.6.3](https://github.com/k0kubun/hamlit/compare/v1.6.2...v1.6.3) - 2015-06-13
112
120
 
113
121
  ### Fixed
114
122
  - Fix ! and & parsing inside a tag
115
123
  [#27](https://github.com/k0kubun/hamlit/issues/27#issuecomment-111593458).
116
124
  *Thanks to @leesmith*
117
125
 
118
- ## [1.6.2] - 2015-06-11
126
+ ## [1.6.2](https://github.com/k0kubun/hamlit/compare/v1.6.1...v1.6.2) - 2015-06-11
119
127
 
120
128
  ### Fixed
121
129
  - Reject a content for self-closing tags
122
130
  - Reject nesing within self-closing tags
123
131
 
124
- ## [1.6.1] - 2015-06-11
132
+ ## [1.6.1](https://github.com/k0kubun/hamlit/compare/v1.6.0...v1.6.1) - 2015-06-11
125
133
 
126
134
  ### Fixed
127
135
  - Parse N-space indentation
128
136
  [#26](https://github.com/k0kubun/hamlit/issues/26). *Thanks to @eagletmt*
129
137
 
130
- ## [1.6.0] - 2015-06-11
138
+ ## [1.6.0](https://github.com/k0kubun/hamlit/compare/v1.5.9...v1.6.0) - 2015-06-11
131
139
 
132
140
  ### Fixed
133
141
  - Fix line number of compiled code for new attributes
134
- - Render HTML entities normally for plain text
142
+ - Render HTML entities normally for plain text
135
143
  [#27](https://github.com/k0kubun/hamlit/issues/27). *Thanks to @jeffblake*
136
144
 
137
- ## [1.5.9] - 2015-06-08
145
+ ## [1.5.9](https://github.com/k0kubun/hamlit/compare/v1.5.8...v1.5.9) - 2015-06-08
138
146
 
139
147
  ### Fixed
140
148
  - Reject silent script after a tag
141
149
 
142
- ## [1.5.8] - 2015-06-08
150
+ ## [1.5.8](https://github.com/k0kubun/hamlit/compare/v1.5.7...v1.5.8) - 2015-06-08
143
151
 
144
152
  ### Fixed
145
153
  - Fix parsing inline script for != and &=
146
154
 
147
- ## [1.5.7] - 2015-06-08
155
+ ## [1.5.7](https://github.com/k0kubun/hamlit/compare/v1.5.6...v1.5.7) - 2015-06-08
148
156
 
149
157
  ### Fixed
150
158
  - Fix the behavior for multi-line script
151
159
 
152
- ## [1.5.6] - 2015-06-07
160
+ ## [1.5.6](https://github.com/k0kubun/hamlit/compare/v1.5.5...v1.5.6) - 2015-06-07
153
161
 
154
162
  ### Added
155
163
  - Raise error for unbalanced brackets
@@ -157,7 +165,7 @@ project adheres to [Semantic Versioning](http://semver.org/). This change log is
157
165
  ### Changed
158
166
  - Don't render newline after block script
159
167
 
160
- ## [1.5.5] - 2015-06-07
168
+ ## [1.5.5](https://github.com/k0kubun/hamlit/compare/v1.5.4...v1.5.5) - 2015-06-07
161
169
 
162
170
  ### Added
163
171
  - Support &, &== operator
@@ -168,7 +176,7 @@ project adheres to [Semantic Versioning](http://semver.org/). This change log is
168
176
  ### Fixed
169
177
  - Fix a trivial diff of rendering multiline operator
170
178
 
171
- ## [1.5.4] - 2015-06-07
179
+ ## [1.5.4](https://github.com/k0kubun/hamlit/compare/v1.5.3...v1.5.4) - 2015-06-07
172
180
 
173
181
  ### Changed
174
182
  - Recursively remove whitespace inside a tag
@@ -176,27 +184,27 @@ project adheres to [Semantic Versioning](http://semver.org/). This change log is
176
184
  ### Fixed
177
185
  - Fix ! operator immediately before whitespace
178
186
 
179
- ## [1.5.3] - 2015-06-06
187
+ ## [1.5.3](https://github.com/k0kubun/hamlit/compare/v1.5.2...v1.5.3) - 2015-06-06
180
188
 
181
189
  ### Added
182
190
  - Support !, !=, !==, &= and ~ as inline operators
183
191
 
184
- ## [1.5.2] - 2015-06-06
192
+ ## [1.5.2](https://github.com/k0kubun/hamlit/compare/v1.5.1...v1.5.2) - 2015-06-06
185
193
 
186
194
  ### Changed
187
195
  - Disable html escaping in CSS and JavaScript filter
188
196
 
189
- ## [1.5.1] - 2015-06-05
197
+ ## [1.5.1](https://github.com/k0kubun/hamlit/compare/v1.5.0...v1.5.1) - 2015-06-05
190
198
 
191
199
  ### Changed
192
200
  - Remove outer whitespace in the block
193
201
 
194
- ## [1.5.0] - 2015-06-03
202
+ ## [1.5.0](https://github.com/k0kubun/hamlit/compare/v1.4.7...v1.5.0) - 2015-06-03
195
203
 
196
204
  ### Changed
197
205
  - Remake implementation of outer whitespace removal
198
206
 
199
- ## [1.4.7] - 2015-06-03
207
+ ## [1.4.7](https://github.com/k0kubun/hamlit/compare/v1.4.6...v1.4.7) - 2015-06-03
200
208
 
201
209
  ### Changed
202
210
  - Sort static old attributes by name
@@ -204,7 +212,7 @@ project adheres to [Semantic Versioning](http://semver.org/). This change log is
204
212
  ### Fixed
205
213
  - Bugfix for old array attributes with class element
206
214
 
207
- ## [1.4.6] - 2015-06-03
215
+ ## [1.4.6](https://github.com/k0kubun/hamlit/compare/v1.4.5...v1.4.6) - 2015-06-03
208
216
 
209
217
  ### Added
210
218
  - Support `!==`, `==` operator
@@ -212,51 +220,51 @@ project adheres to [Semantic Versioning](http://semver.org/). This change log is
212
220
  ### Fixed
213
221
  - Avoid regarding spaced block as multiline
214
222
 
215
- ## [1.4.5] - 2015-06-02
223
+ ## [1.4.5](https://github.com/k0kubun/hamlit/compare/v1.4.4...v1.4.5) - 2015-06-02
216
224
 
217
225
  ### Fixed
218
226
  - Support Ruby 2.0 and 2.1 for v1.4.4
219
227
 
220
- ## [1.4.4] - 2015-06-02 [YANKED]
228
+ ## [1.4.4](https://github.com/k0kubun/hamlit/compare/v1.4.3...v1.4.4) - 2015-06-02 [YANKED]
221
229
 
222
230
  ### Fixed
223
231
  - Fix old attribute parser to be more flexible
224
232
  - Accept multiple hashes as old attributes
225
233
  - Accept old attributes with hash and literal
226
234
 
227
- ## [1.4.3] - 2015-06-02
235
+ ## [1.4.3](https://github.com/k0kubun/hamlit/compare/v1.4.2...v1.4.3) - 2015-06-02
228
236
 
229
237
  ### Changed
230
238
  - Allow `when` to have multiple candidates
231
239
  - Allow `rescue` to specify an error variable
232
240
 
233
- ## [1.4.2] - 2015-05-31
241
+ ## [1.4.2](https://github.com/k0kubun/hamlit/compare/v1.4.1...v1.4.2) - 2015-05-31
234
242
 
235
243
  ### Added
236
244
  - Support `!` operator
237
245
  - It disables html escaping for interpolated text
238
246
 
239
- ## [1.4.1] - 2015-05-31
247
+ ## [1.4.1](https://github.com/k0kubun/hamlit/compare/v1.4.0...v1.4.1) - 2015-05-31
240
248
 
241
249
  ### Fixed
242
250
  - Fix code mistake in 1.4.0
243
251
 
244
- ## [1.4.0] - 2015-05-31 [YANKED]
252
+ ## [1.4.0](https://github.com/k0kubun/hamlit/compare/v1.3.2...v1.4.0) - 2015-05-31 [YANKED]
245
253
 
246
254
  ### Added
247
255
  - Escape interpolated string in plain text
248
256
 
249
- ## [1.3.2] - 2015-05-30
257
+ ## [1.3.2](https://github.com/k0kubun/hamlit/compare/v1.3.1...v1.3.2) - 2015-05-30
250
258
 
251
259
  - Render `begin`, `rescue` and `ensure`
252
260
 
253
- ## [1.3.1] - 2015-05-30
261
+ ## [1.3.1](https://github.com/k0kubun/hamlit/compare/v1.3.0...v1.3.1) - 2015-05-30
254
262
 
255
263
  ### Fixed
256
264
  - Bugfix about a backslash-only comment
257
265
  - Don't strip a plain text
258
266
 
259
- ## [1.3.0] - 2015-05-16
267
+ ## [1.3.0](https://github.com/k0kubun/hamlit/compare/v1.2.1...v1.3.0) - 2015-05-16
260
268
 
261
269
  ### Added
262
270
  - Resurrect escape\_html option
@@ -265,79 +273,79 @@ project adheres to [Semantic Versioning](http://semver.org/). This change log is
265
273
  - Still enabled by default
266
274
  - This has been dropped since v0.6.0
267
275
 
268
- ## [1.2.1] - 2015-05-15
276
+ ## [1.2.1](https://github.com/k0kubun/hamlit/compare/v1.2.0...v1.2.1) - 2015-05-15
269
277
 
270
278
  ### Fixed
271
279
  - Fix the list of boolean attributes
272
280
  [#24](https://github.com/k0kubun/hamlit/issues/24). *Thanks to @jeffblake*
273
281
 
274
- ## [1.2.0] - 2015-05-06
282
+ ## [1.2.0](https://github.com/k0kubun/hamlit/compare/v1.1.1...v1.2.0) - 2015-05-06
275
283
 
276
284
  Added
277
285
  - Support `succeed`, `precede` and `surround`
278
286
  [#22](https://github.com/k0kubun/hamlit/issues/22). *Thanks to @sneakernets*
279
287
 
280
- ## [1.1.1] - 2015-05-06
288
+ ## [1.1.1](https://github.com/k0kubun/hamlit/compare/v1.1.0...v1.1.1) - 2015-05-06
281
289
 
282
290
  ### Fixed
283
291
  - Bugfix of rendering array attributes
284
292
 
285
- ## [1.1.0] - 2015-05-06
293
+ ## [1.1.0](https://github.com/k0kubun/hamlit/compare/v1.0.0...v1.1.0) - 2015-05-06
286
294
 
287
- ### Fixed
295
+ ### Fixed
288
296
  - Join id and class attributes
289
297
  [#23](https://github.com/k0kubun/hamlit/issues/23).
290
298
  *Thanks to @felixbuenemann*
291
299
 
292
- ## [1.0.0] - 2015-04-12
300
+ ## [1.0.0](https://github.com/k0kubun/hamlit/compare/v0.6.2...v1.0.0) - 2015-04-12
293
301
 
294
302
  ### Added
295
303
  - Use escape\_utils gem for faster escape\_html
296
304
 
297
- ## [0.6.2] - 2015-04-12
305
+ ## [0.6.2](https://github.com/k0kubun/hamlit/compare/v0.6.1...v0.6.2) - 2015-04-12
298
306
 
299
- ### Fixed
307
+ ### Fixed
300
308
  - Don't render falsy attributes
301
309
  [#2](https://github.com/k0kubun/hamlit/issues/2). *Thanks to @eagletmt*
302
310
 
303
- ## [0.6.1] - 2015-04-12
311
+ ## [0.6.1](https://github.com/k0kubun/hamlit/compare/v0.6.0...v0.6.1) - 2015-04-12
304
312
 
305
313
  ### Fixed
306
314
  - Bugfix of line numbers for better error backtrace
307
315
  [pull #19](https://github.com/k0kubun/hamlit/pull/19)
308
316
 
309
- ## [0.6.0] - 2015-04-12
317
+ ## [0.6.0](https://github.com/k0kubun/hamlit/compare/v0.5.3...v0.6.0) - 2015-04-12
310
318
 
311
319
  ### Added
312
320
  - Automatically escape html in all situations
313
321
  [pull #18](https://github.com/k0kubun/hamlit/pull/18)
314
322
 
315
- ## [0.5.3] - 2015-04-12
323
+ ## [0.5.3](https://github.com/k0kubun/hamlit/compare/v0.5.2...v0.5.3) - 2015-04-12
316
324
 
317
325
  ### Fixed
318
326
  - Bugfix for syntax error in data attribute hash
319
327
  [#17](https://github.com/k0kubun/hamlit/issues/17). *Thanks to @eagletmt*
320
328
 
321
- ## [0.5.2] - 2015-04-12
329
+ ## [0.5.2](https://github.com/k0kubun/hamlit/compare/v0.5.1...v0.5.2) - 2015-04-12
322
330
 
323
331
  ### Fixed
324
332
  - Bugfix for silent script without block
325
333
  [#16](https://github.com/k0kubun/hamlit/issues/16). *Thanks to @eagletmt*
326
334
 
327
- ## [0.5.1] - 2015-04-12
335
+ ## [0.5.1](https://github.com/k0kubun/hamlit/compare/v0.5.0...v0.5.1) - 2015-04-12
328
336
 
329
337
  ### Fixed
330
338
  - Bugfix about duplicated id and class
331
339
  [#4](https://github.com/k0kubun/hamlit/issues/4). *Thanks to @os0x*
332
340
 
333
- ## [0.5.0] - 2015-04-12
341
+ ## [0.5.0](https://github.com/k0kubun/hamlit/compare/v0.4.3...v0.5.0) - 2015-04-12
334
342
 
335
343
  ### Fixed
336
344
  - Escape special characters in attribute values
337
345
  [#10](https://github.com/k0kubun/hamlit/issues/10). *Thanks to @mono0x,
338
346
  @eagletmt*
339
347
 
340
- ## [0.4.3] - 2015-04-12
348
+ ## [0.4.3](https://github.com/k0kubun/hamlit/compare/v0.4.2...v0.4.3) - 2015-04-12
341
349
 
342
350
  ### Fixed
343
351
  - Allow empty else statement [#14](https://github.com/k0kubun/hamlit/issues/14).
@@ -345,13 +353,13 @@ Added
345
353
  - Accept comment-only script [#13](https://github.com/k0kubun/hamlit/issues/13).
346
354
  *Thanks to @jeffblake*
347
355
 
348
- ## [0.4.2] - 2015-04-05
356
+ ## [0.4.2](https://github.com/k0kubun/hamlit/compare/v0.4.1...v0.4.2) - 2015-04-05
349
357
 
350
358
  ### Fixed
351
359
  - Bugfix about parsing nested attributes
352
360
  [#12](https://github.com/k0kubun/hamlit/issues/12). *Thanks to @creasty*
353
361
 
354
- ## [0.4.1] - 2015-04-05
362
+ ## [0.4.1](https://github.com/k0kubun/hamlit/compare/v0.4.0...v0.4.1) - 2015-04-05
355
363
 
356
364
  ### Removed
357
365
  - Automatic escape html is sintara, consult `README.md`.
@@ -360,129 +368,66 @@ Added
360
368
  - Escape haml operators by backslash
361
369
  [#11](https://github.com/k0kubun/hamlit/issues/11). *Thanks to @mono0x*
362
370
 
363
- ## [0.4.0] - 2015-04-05 [YANKED]
371
+ ## [0.4.0](https://github.com/k0kubun/hamlit/compare/v0.3.4...v0.4.0) - 2015-04-05 [YANKED]
364
372
 
365
373
  ### Added
366
374
  - Automatically escape html in sinatra
367
375
 
368
- ## [0.3.4] - 2015-04-02
376
+ ## [0.3.4](https://github.com/k0kubun/hamlit/compare/v0.3.3...v0.3.4) - 2015-04-02
369
377
 
370
378
  ### Fixed
371
379
  - Allow tab indentation [#9](https://github.com/k0kubun/hamlit/issues/9).
372
380
  *Thanks to @tdtds*
373
381
 
374
- ## [0.3.3] - 2015-04-01
382
+ ## [0.3.3](https://github.com/k0kubun/hamlit/compare/v0.3.2...v0.3.3) - 2015-04-01
375
383
 
376
384
  ### Fixed
377
385
  - Accept multi byte parsing [#8](https://github.com/k0kubun/hamlit/issues/8).
378
386
  *Thanks to @machu*
379
387
 
380
- ## [0.3.2] - 2015-03-31
388
+ ## [0.3.2](https://github.com/k0kubun/hamlit/compare/v0.3.1...v0.3.2) - 2015-03-31
381
389
 
382
390
  ### Fixed
383
391
  - Bugfix for compiling old attributes [#7](https://github.com/k0kubun/hamlit/issues/7).
384
392
  *Thanks to @creasty*
385
393
 
386
- ## [0.3.1] - 2015-03-31
394
+ ## [0.3.1](https://github.com/k0kubun/hamlit/compare/v0.3.0...v0.3.1) - 2015-03-31
387
395
 
388
396
  ### Fixed
389
397
  - Hyphenate data attributes [#5](https://github.com/k0kubun/hamlit/issues/5).
390
398
  *Thanks to @os0x*
391
399
 
392
- ## [0.3.0] - 2015-03-31
400
+ ## [0.3.0](https://github.com/k0kubun/hamlit/compare/v0.2.0...v0.3.0) - 2015-03-31
393
401
 
394
402
  ### Added
395
403
  - Specify a version in dependency of temple
396
404
 
397
- ## [0.2.0] - 2015-03-30
405
+ ## [0.2.0](https://github.com/k0kubun/hamlit/compare/v0.1.3...v0.2.0) - 2015-03-30
398
406
 
399
407
  ### Added
400
408
  - Allow comments in script [#3](https://github.com/k0kubun/hamlit/issues/3).
401
409
  *Thanks to @eagletmt*
402
410
 
403
- ## [0.1.3] - 2015-03-30
411
+ ## [0.1.3](https://github.com/k0kubun/hamlit/compare/v0.1.2...v0.1.3) - 2015-03-30
404
412
 
405
413
  ### Fixed
406
414
  - Bugfix for [#1](https://github.com/k0kubun/hamlit/issues/1) attribute nesting
407
415
  on runtime. *Thanks to @eagletmt*
408
416
 
409
- ## [0.1.2] - 2015-03-30
417
+ ## [0.1.2](https://github.com/k0kubun/hamlit/compare/v0.1.1...v0.1.2) - 2015-03-30
410
418
 
411
419
  ### Fixed
412
420
  - Ignore false or nil values in attributes
413
421
  - Partial fix for [#2](https://github.com/k0kubun/hamlit/issues/2).
414
422
  *Thanks to @eagletmt*
415
423
 
416
- ## [0.1.1] - 2015-03-30
424
+ ## [0.1.1](https://github.com/k0kubun/hamlit/compare/v0.1.0...v0.1.1) - 2015-03-30
417
425
 
418
426
  ### Removed
419
427
  - Drop obsolete `--ugly` option for CLI
420
428
  - Currently pretty mode is not implemented #2
421
429
 
422
- ## [0.1.0] - 2015-03-30
430
+ ## [0.1.0](https://github.com/k0kubun/hamlit/compare/9cf8216...v0.1.0) - 2015-03-30
423
431
 
424
432
  - Initial release
425
433
  - Passing haml-spec with ugly mode
426
-
427
- [0.1.0]: https://github.com/k0kubun/hamlit/compare/9cf8216...v0.1.0
428
- [0.1.1]: https://github.com/k0kubun/hamlit/compare/v0.1.0...v0.1.1
429
- [0.1.2]: https://github.com/k0kubun/hamlit/compare/v0.1.1...v0.1.2
430
- [0.1.3]: https://github.com/k0kubun/hamlit/compare/v0.1.2...v0.1.3
431
- [0.2.0]: https://github.com/k0kubun/hamlit/compare/v0.1.3...v0.2.0
432
- [0.3.0]: https://github.com/k0kubun/hamlit/compare/v0.2.0...v0.3.0
433
- [0.3.1]: https://github.com/k0kubun/hamlit/compare/v0.3.0...v0.3.1
434
- [0.3.2]: https://github.com/k0kubun/hamlit/compare/v0.3.1...v0.3.2
435
- [0.3.3]: https://github.com/k0kubun/hamlit/compare/v0.3.2...v0.3.3
436
- [0.3.4]: https://github.com/k0kubun/hamlit/compare/v0.3.3...v0.3.4
437
- [0.4.0]: https://github.com/k0kubun/hamlit/compare/v0.3.4...v0.4.0
438
- [0.4.1]: https://github.com/k0kubun/hamlit/compare/v0.4.0...v0.4.1
439
- [0.4.2]: https://github.com/k0kubun/hamlit/compare/v0.4.1...v0.4.2
440
- [0.4.3]: https://github.com/k0kubun/hamlit/compare/v0.4.2...v0.4.3
441
- [0.5.0]: https://github.com/k0kubun/hamlit/compare/v0.4.3...v0.5.0
442
- [0.5.1]: https://github.com/k0kubun/hamlit/compare/v0.5.0...v0.5.1
443
- [0.5.2]: https://github.com/k0kubun/hamlit/compare/v0.5.1...v0.5.2
444
- [0.5.3]: https://github.com/k0kubun/hamlit/compare/v0.5.2...v0.5.3
445
- [0.6.0]: https://github.com/k0kubun/hamlit/compare/v0.5.3...v0.6.0
446
- [0.6.1]: https://github.com/k0kubun/hamlit/compare/v0.6.0...v0.6.1
447
- [0.6.2]: https://github.com/k0kubun/hamlit/compare/v0.6.1...v0.6.2
448
- [1.0.0]: https://github.com/k0kubun/hamlit/compare/v0.6.2...v1.0.0
449
- [1.1.0]: https://github.com/k0kubun/hamlit/compare/v1.0.0...v1.1.0
450
- [1.1.1]: https://github.com/k0kubun/hamlit/compare/v1.1.0...v1.1.1
451
- [1.2.0]: https://github.com/k0kubun/hamlit/compare/v1.1.1...v1.2.0
452
- [1.2.1]: https://github.com/k0kubun/hamlit/compare/v1.2.0...v1.2.1
453
- [1.3.0]: https://github.com/k0kubun/hamlit/compare/v1.2.1...v1.3.0
454
- [1.3.1]: https://github.com/k0kubun/hamlit/compare/v1.3.0...v1.3.1
455
- [1.3.2]: https://github.com/k0kubun/hamlit/compare/v1.3.1...v1.3.2
456
- [1.4.0]: https://github.com/k0kubun/hamlit/compare/v1.3.2...v1.4.0
457
- [1.4.1]: https://github.com/k0kubun/hamlit/compare/v1.4.0...v1.4.1
458
- [1.4.2]: https://github.com/k0kubun/hamlit/compare/v1.4.1...v1.4.2
459
- [1.4.3]: https://github.com/k0kubun/hamlit/compare/v1.4.2...v1.4.3
460
- [1.4.4]: https://github.com/k0kubun/hamlit/compare/v1.4.3...v1.4.4
461
- [1.4.5]: https://github.com/k0kubun/hamlit/compare/v1.4.4...v1.4.5
462
- [1.4.6]: https://github.com/k0kubun/hamlit/compare/v1.4.5...v1.4.6
463
- [1.4.7]: https://github.com/k0kubun/hamlit/compare/v1.4.6...v1.4.7
464
- [1.5.0]: https://github.com/k0kubun/hamlit/compare/v1.4.7...v1.5.0
465
- [1.5.1]: https://github.com/k0kubun/hamlit/compare/v1.5.0...v1.5.1
466
- [1.5.2]: https://github.com/k0kubun/hamlit/compare/v1.5.1...v1.5.2
467
- [1.5.3]: https://github.com/k0kubun/hamlit/compare/v1.5.2...v1.5.3
468
- [1.5.4]: https://github.com/k0kubun/hamlit/compare/v1.5.3...v1.5.4
469
- [1.5.5]: https://github.com/k0kubun/hamlit/compare/v1.5.4...v1.5.5
470
- [1.5.6]: https://github.com/k0kubun/hamlit/compare/v1.5.5...v1.5.6
471
- [1.5.7]: https://github.com/k0kubun/hamlit/compare/v1.5.6...v1.5.7
472
- [1.5.8]: https://github.com/k0kubun/hamlit/compare/v1.5.7...v1.5.8
473
- [1.5.9]: https://github.com/k0kubun/hamlit/compare/v1.5.8...v1.5.9
474
- [1.6.0]: https://github.com/k0kubun/hamlit/compare/v1.5.9...v1.6.0
475
- [1.6.1]: https://github.com/k0kubun/hamlit/compare/v1.6.0...v1.6.1
476
- [1.6.2]: https://github.com/k0kubun/hamlit/compare/v1.6.1...v1.6.2
477
- [1.6.3]: https://github.com/k0kubun/hamlit/compare/v1.6.2...v1.6.3
478
- [1.6.4]: https://github.com/k0kubun/hamlit/compare/v1.6.3...v1.6.4
479
- [1.6.5]: https://github.com/k0kubun/hamlit/compare/v1.6.4...v1.6.5
480
- [1.6.6]: https://github.com/k0kubun/hamlit/compare/v1.6.5...v1.6.6
481
- [1.6.7]: https://github.com/k0kubun/hamlit/compare/v1.6.6...v1.6.7
482
- [1.7.0]: https://github.com/k0kubun/hamlit/compare/v1.6.7...v1.7.0
483
- [1.7.1]: https://github.com/k0kubun/hamlit/compare/v1.7.0...v1.7.1
484
- [1.7.2]: https://github.com/k0kubun/hamlit/compare/v1.7.1...v1.7.2
485
- [2.0.0]: https://github.com/k0kubun/hamlit/compare/v1.7.2...v2.0.0
486
- [2.0.1]: https://github.com/k0kubun/hamlit/compare/v2.0.0...v2.0.1
487
- [2.0.2]: https://github.com/k0kubun/hamlit/compare/v2.0.1...v2.0.2
488
- [2.1.0]: https://github.com/k0kubun/hamlit/compare/v2.0.2...v2.1.0
@@ -61,7 +61,7 @@ module Hamlit
61
61
  def compile_id!(temple, key, values)
62
62
  build_code = attribute_builder(:id, values)
63
63
  if values.all? { |type, exp| type == :static || StaticAnalyzer.static?(exp) }
64
- temple << [:html, :attr, key, [:static, eval(build_code)]]
64
+ temple << [:html, :attr, key, [:static, eval(build_code).to_s]]
65
65
  else
66
66
  temple << [:html, :attr, key, [:dynamic, build_code]]
67
67
  end
@@ -70,7 +70,7 @@ module Hamlit
70
70
  def compile_class!(temple, key, values)
71
71
  build_code = attribute_builder(:class, values)
72
72
  if values.all? { |type, exp| type == :static || StaticAnalyzer.static?(exp) }
73
- temple << [:html, :attr, key, [:static, eval(build_code)]]
73
+ temple << [:html, :attr, key, [:static, eval(build_code).to_s]]
74
74
  else
75
75
  temple << [:html, :attr, key, [:dynamic, build_code]]
76
76
  end
@@ -81,7 +81,7 @@ module Hamlit
81
81
  build_code = "::Hamlit::AttributeBuilder.build_data(#{args.join(', ')})"
82
82
 
83
83
  if values.all? { |type, exp| type == :static || StaticAnalyzer.static?(exp) }
84
- temple << [:static, eval(build_code)]
84
+ temple << [:static, eval(build_code).to_s]
85
85
  else
86
86
  temple << [:dynamic, build_code]
87
87
  end
@@ -95,7 +95,7 @@ module Hamlit
95
95
  case value
96
96
  when true then temple << [:html, :attr, key, @format == :xhtml ? [:static, key] : [:multi]]
97
97
  when false, nil
98
- else temple << [:html, :attr, key, [:escape, @escape_attrs, [:static, value]]]
98
+ else temple << [:html, :attr, key, [:escape, @escape_attrs, [:static, value.to_s]]]
99
99
  end
100
100
  else
101
101
  var = @identity.generate
@@ -1,3 +1,3 @@
1
1
  module Hamlit
2
- VERSION = '2.1.1'
2
+ VERSION = '2.1.2'
3
3
  end
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.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-12-14 00:00:00.000000000 Z
11
+ date: 2015-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: temple