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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99cd9c02b87a3dc2b594a21125b5e8ce015b51b6f601c5eddd04e4f383e867e6
4
- data.tar.gz: bd8c5109399f8ff52e7778a906ae4c4b1060a8f8479c03c4001c1a8f0d1c3b0c
3
+ metadata.gz: dcd64f41bc7d4f560924ac3f6bebbf158eb32f28ffecb5bd223bee0d4bb30ecc
4
+ data.tar.gz: 1c655cc0ba0c580da4d44f8021382ec78bff5e8bef084b1c698d48c6f5616606
5
5
  SHA512:
6
- metadata.gz: fc49deaa8ad1b706409f3a8ceb126061e80b765724b55972c084e092fcf41d3f221fbc799900adcd7d6974b5a84938f977d1ae02a81b8bcbe8e0ced825487e2f
7
- data.tar.gz: 0b5a729b3fc2302d66d41dc82f8d65b1f93b75b89c46b822d28b96ee19d36307c4d6ef111b1894c5df21153023f8a7f9e58cfc7d29cb84af49969633da835c6f
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 exploiting string interpolation [#146](https://github.com/k0kubun/hamlit/issues/146)
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, ugly: true).def_method(object, :haml)
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, ugly: true).precompiled
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}"
@@ -14,7 +14,7 @@ end
14
14
  module Hamlit
15
15
  Template = Temple::Templates::Tilt.create(
16
16
  Hamlit::Engine,
17
- register_as: :haml,
17
+ register_as: [:haml, :hamlit],
18
18
  )
19
19
 
20
20
  module TemplateExtension
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Hamlit
3
- VERSION = '2.10.0'
3
+ VERSION = '2.10.1'
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.10.0
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-09-15 00:00:00.000000000 Z
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