hamlit 2.10.0-java → 2.10.1-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -1
- data/bin/bench +2 -2
- data/lib/hamlit/template.rb +1 -1
- data/lib/hamlit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dcd64f41bc7d4f560924ac3f6bebbf158eb32f28ffecb5bd223bee0d4bb30ecc
|
|
4
|
+
data.tar.gz: 1c655cc0ba0c580da4d44f8021382ec78bff5e8bef084b1c698d48c6f5616606
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 88d572b4d2fae502c81ff4ab14b9313ddd931df0504dae5bd31582edddf7a8d5c35c717cb9529b09bcc0e55cedbc4e40ad0b4d332ccc38ee9a3195b983259f0f
|
|
7
|
+
data.tar.gz: 355682afaf969c76fa71ddce7e153d361a06a34e89f32436ab8c839c9a4b79cac2a9ad2cfe790bfebd784e23c201b86fd5589c9137e4c51ffdcc6510635a32f5
|
data/CHANGELOG.md
CHANGED
|
@@ -4,12 +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.10.1](https://github.com/k0kubun/hamlit/compare/v2.10.0...v2.10.1) - 2019-11-28
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- Register `Hamlit::Template` to Tilt as :hamlit as well, in addition to :haml
|
|
12
|
+
|
|
7
13
|
## [2.10.0](https://github.com/k0kubun/hamlit/compare/v2.9.5...v2.10.0) - 2019-09-15
|
|
8
14
|
|
|
9
15
|
### Added
|
|
10
16
|
|
|
11
|
-
- Optimize template rendering by
|
|
17
|
+
- Optimize template rendering by string interpolation [#146](https://github.com/k0kubun/hamlit/issues/146)
|
|
12
18
|
- Exploiting pre-allocation of string interpolation introduced in Ruby 2.5 [ruby/ruby#1626](https://github.com/ruby/ruby/pull/1626)
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
13
22
|
- Require temple.gem >= 0.8.2
|
|
14
23
|
|
|
15
24
|
## [2.9.5](https://github.com/k0kubun/hamlit/compare/v2.9.4...v2.9.5) - 2019-09-08
|
data/bin/bench
CHANGED
|
@@ -43,7 +43,7 @@ class Bench < Thor
|
|
|
43
43
|
object.instance_eval(File.read(ruby_file))
|
|
44
44
|
end
|
|
45
45
|
|
|
46
|
-
Haml::Engine.new(haml, escape_html: true, escape_attrs: true
|
|
46
|
+
Haml::Engine.new(haml, escape_html: true, escape_attrs: true).def_method(object, :haml)
|
|
47
47
|
object.instance_eval "def faml; #{Faml::Engine.new.call(haml)}; end"
|
|
48
48
|
object.instance_eval "def hamlit; #{Hamlit::Engine.new.call(haml)}; end"
|
|
49
49
|
|
|
@@ -59,7 +59,7 @@ class Bench < Thor
|
|
|
59
59
|
def code(file)
|
|
60
60
|
haml = File.read(file)
|
|
61
61
|
puts "#{?= * 49}\n Haml Source: #{file}\n#{?= * 49}"
|
|
62
|
-
puts Haml::Engine.new(haml, escape_html: true, escape_attrs: true
|
|
62
|
+
puts Haml::Engine.new(haml, escape_html: true, escape_attrs: true).precompiled
|
|
63
63
|
puts "\n#{?= * 49}\n Faml Source: #{file}\n#{?= * 49}"
|
|
64
64
|
puts Faml::Engine.new.call(haml)
|
|
65
65
|
puts "\n#{?= * 49}\n Hamlit Source: #{file}\n#{?= * 49}"
|
data/lib/hamlit/template.rb
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.10.
|
|
4
|
+
version: 2.10.1
|
|
5
5
|
platform: java
|
|
6
6
|
authors:
|
|
7
7
|
- Takashi Kokubun
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-11-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|