hamlit 2.8.8 → 2.8.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +14 -0
- data/README.md +0 -1
- data/lib/hamlit/parser.rb +3 -0
- data/lib/hamlit/parser/README.md +2 -0
- data/lib/hamlit/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9781542c57cf0b6dca33b3823113d76fe6ed1fd61e5d380f2be82037aa78fd74
|
4
|
+
data.tar.gz: 76071735c42f313f42c24833dc4c687a8832b66d6e03420d7080357a4fbea7d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06ae78c58435116352cb4c74832e9ecf0ba91c06adb669e42f5c944acb7ccebcccc2d45e8a31c0d8da74292c51713e1ba24aa5e6a0e9fc6a439998cc29462be3
|
7
|
+
data.tar.gz: 9bdab2b20439608f7f1698393eb7770182506408a9e460b6b7d7602cbde71c1d3bbe98db6738105a56cf15ec1a063a78930d988e3d0241a8b4f960674cb5ff8b
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,20 @@ 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.10](https://github.com/k0kubun/hamlit/compare/v2.8.8...v2.8.9) - 2018-09-05
|
8
|
+
|
9
|
+
### Fixed
|
10
|
+
|
11
|
+
- Fix uninitialized constant error introduced in v2.8.9
|
12
|
+
[#125](https://github.com/k0kubun/hamlit/pull/125). *Thanks to @vovchynniko*
|
13
|
+
|
14
|
+
## [2.8.9](https://github.com/k0kubun/hamlit/compare/v2.8.8...v2.8.9) - 2018-09-05
|
15
|
+
|
16
|
+
### Fixed
|
17
|
+
|
18
|
+
- Don't raise an error on UTF-8 BOM [#117](https://github.com/k0kubun/hamlit/pull/117)
|
19
|
+
[#124](https://github.com/k0kubun/hamlit/pull/124). *Thanks to @southwolf*
|
20
|
+
|
7
21
|
## [2.8.8](https://github.com/k0kubun/hamlit/compare/v2.8.7...v2.8.8) - 2018-04-06
|
8
22
|
|
9
23
|
### Fixed
|
data/README.md
CHANGED
@@ -58,7 +58,6 @@ If you want to use view generator, consider using [hamlit-rails](https://github.
|
|
58
58
|
### Sinatra
|
59
59
|
|
60
60
|
Replace `gem "haml"` with `gem "hamlit"` in Gemfile, and require "hamlit".
|
61
|
-
See [sample/sinatra](sample/sinatra) for working sample.
|
62
61
|
|
63
62
|
While Haml disables `escape_html` option by default, Hamlit enables it for security.
|
64
63
|
If you want to disable it, please write:
|
data/lib/hamlit/parser.rb
CHANGED
@@ -26,6 +26,9 @@ module Hamlit
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def call(template)
|
29
|
+
template = Hamlit::HamlUtil.check_haml_encoding(template) do |msg, line|
|
30
|
+
raise Hamlit::Error.new(msg, line)
|
31
|
+
end
|
29
32
|
HamlParser.new(template, HamlOptions.new(@options)).parse
|
30
33
|
rescue ::Hamlit::HamlError => e
|
31
34
|
error_with_lineno(e)
|
data/lib/hamlit/parser/README.md
CHANGED
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.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takashi Kokubun
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-05 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.6
|
371
|
+
rubygems_version: 2.7.6
|
372
372
|
signing_key:
|
373
373
|
specification_version: 4
|
374
374
|
summary: High Performance Haml Implementation
|