hamlit 2.9.4-java → 2.9.5-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: 9c44c5a360e172c2bcc8383952fd5c8b03fb287c818b0b0d5394862f0b55b659
4
- data.tar.gz: 95d39c6eb8060801ddeb0f8ae61ada9d3755b4ac0750725c468d70ddf29aa5c4
3
+ metadata.gz: 193802f1d67fc26bc7768ebc12ffaec1a57bbff9595a6ba6988ae923f1e0c296
4
+ data.tar.gz: e6c7e8704302d2580963d95d65973920bd343e2e1c13a8fc67f0c6a7dcb459f6
5
5
  SHA512:
6
- metadata.gz: a530cade0a6cf8110c4f4f213094ee4712559744cd5eeb8c0c5a81daf5c696bc3f147f91cfc07260304ce4b2c00203cb59fa0fdb1fd7d7bd2a4130a9e06f39cd
7
- data.tar.gz: f5b1f560f7bffec014ff5e2217ec5a5502743c09352f362c3de551ae390baf775a342e9395a892dcac7bda969acda68230fcb6f64aac46c107e9ab860dbeaf1d
6
+ metadata.gz: 73245cb64fbe0fe915c7e8e2a5b22fe350190348ce39ceb0be4ad36ced4c3551f29c2bbde88dc11b4bf5bb3acc5c54eb5b2bb708abd1907dfdc6ef8abb6f4849
7
+ data.tar.gz: a543965e78ecccf8d3a9f4c98a6e1b627d3a7586549b662917da462dc542437aadd93e2279e371a7bc9d1b3463bc404ca721c19cef75875ac1f61663f781211a
@@ -4,6 +4,12 @@ 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.9.5](https://github.com/k0kubun/hamlit/compare/v2.9.4...v2.9.5) - 2019-09-08
8
+
9
+ ### Added
10
+
11
+ - Supported `:plain` filter in truffleruby
12
+
7
13
  ## [2.9.4](https://github.com/k0kubun/hamlit/compare/v2.9.3...v2.9.4) - 2019-09-08
8
14
 
9
15
  ### Added
@@ -5,9 +5,6 @@ module Hamlit
5
5
  class Filters
6
6
  class Plain < Base
7
7
  def compile(node)
8
- unless Ripper.respond_to?(:lex)
9
- raise NotImplementedError.new('This platform does not have Ripper.lex required for :plain filter')
10
- end
11
8
  text = node.value[:text]
12
9
  text = text.rstrip unless ::Hamlit::HamlUtil.contains_interpolation?(text) # for compatibility
13
10
  [:multi, *compile_plain(text)]
@@ -17,6 +14,10 @@ module Hamlit
17
14
 
18
15
  def compile_plain(text)
19
16
  string_literal = ::Hamlit::HamlUtil.unescape_interpolation(text)
17
+ unless Ripper.respond_to?(:lex) # truffleruby doesn't have Ripper.lex
18
+ return [[:escape, false, [:dynamic, string_literal]]]
19
+ end
20
+
20
21
  StringSplitter.compile(string_literal).map do |temple|
21
22
  type, str = temple
22
23
  case type
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Hamlit
3
- VERSION = '2.9.4'
3
+ VERSION = '2.9.5'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hamlit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.4
4
+ version: 2.9.5
5
5
  platform: java
6
6
  authors:
7
7
  - Takashi Kokubun