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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/hamlit/filters/plain.rb +4 -3
- data/lib/hamlit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 193802f1d67fc26bc7768ebc12ffaec1a57bbff9595a6ba6988ae923f1e0c296
|
4
|
+
data.tar.gz: e6c7e8704302d2580963d95d65973920bd343e2e1c13a8fc67f0c6a7dcb459f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73245cb64fbe0fe915c7e8e2a5b22fe350190348ce39ceb0be4ad36ced4c3551f29c2bbde88dc11b4bf5bb3acc5c54eb5b2bb708abd1907dfdc6ef8abb6f4849
|
7
|
+
data.tar.gz: a543965e78ecccf8d3a9f4c98a6e1b627d3a7586549b662917da462dc542437aadd93e2279e371a7bc9d1b3463bc404ca721c19cef75875ac1f61663f781211a
|
data/CHANGELOG.md
CHANGED
@@ -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
|
data/lib/hamlit/filters/plain.rb
CHANGED
@@ -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
|
data/lib/hamlit/version.rb
CHANGED