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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: ac088a81087622ffbbb0baf88ab84b628f148f24
4
- data.tar.gz: 4241a33bb175b1664a69633c3105b59b8b01811c
2
+ SHA256:
3
+ metadata.gz: 9781542c57cf0b6dca33b3823113d76fe6ed1fd61e5d380f2be82037aa78fd74
4
+ data.tar.gz: 76071735c42f313f42c24833dc4c687a8832b66d6e03420d7080357a4fbea7d1
5
5
  SHA512:
6
- metadata.gz: cea3917a500701866aa5d1dcc2e05ef2df42d258f9adc38bfddf33a027e92a79db1a8eb5f7ad66f3067742ea0e00438bdfd1abf3a5fddc663803dff4e160d16c
7
- data.tar.gz: 4dac10fbf405dea17e32761e4ab2345f4158e68cb3159867a1c0ccb2b736c29ddce27e0bdd2fdcada2cf926100f5a2288f5ebb75433adfde8af628c10b1f7ae7
6
+ metadata.gz: 06ae78c58435116352cb4c74832e9ecf0ba91c06adb669e42f5c944acb7ccebcccc2d45e8a31c0d8da74292c51713e1ba24aa5e6a0e9fc6a439998cc29462be3
7
+ data.tar.gz: 9bdab2b20439608f7f1698393eb7770182506408a9e460b6b7d7602cbde71c1d3bbe98db6738105a56cf15ec1a063a78930d988e3d0241a8b4f960674cb5ff8b
@@ -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:
@@ -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)
@@ -2,6 +2,8 @@
2
2
 
3
3
  Hamlit::HamlFoo is originally Haml::Foo in haml gem.
4
4
 
5
+ This directory is NOT intended to be updated other than following Haml's changes.
6
+
5
7
  ## License
6
8
 
7
9
  lib/hamlit/parser/haml\_\*.rb is:
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Hamlit
3
- VERSION = '2.8.8'
3
+ VERSION = '2.8.10'
4
4
  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.8.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-04-06 00:00:00.000000000 Z
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.13
371
+ rubygems_version: 2.7.6
372
372
  signing_key:
373
373
  specification_version: 4
374
374
  summary: High Performance Haml Implementation