temple 0.8.1 → 0.8.2

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
  SHA1:
3
- metadata.gz: 55957f55fcf577f188ba54ba8c9851344a41a652
4
- data.tar.gz: 70d128d51b774affc4be599f00e272628e062f03
3
+ metadata.gz: 95a7b68d7ea63e7673e183765ce0a64838ee4bdb
4
+ data.tar.gz: 00e2072a5e6577a07a754bfe9c39bee365e87ebb
5
5
  SHA512:
6
- metadata.gz: 678eaaf1c3a7632cb38421a41c94d3e2c91c718233a261b3ac69d342e74b2b2987ae7b05033e3a69b212904c49ab6de3f00861129ec732a927ed30ea4915c08f
7
- data.tar.gz: ddec9236857f4f70d7044d7b03579647d803377da3fd4b90606c82f97aeea248708fe4fbb6f5a360ac109bd0d774e82808f888e72d72ba9963b8ddd001886acf
6
+ metadata.gz: 8a685000159a7f3e0ba41c4d7a6f8e7b8167755d020f05725020ce64dd2526aa19cf5007f78e071b9dd9521787756fee24cf30edc224cce701b6596020858dfc
7
+ data.tar.gz: 71f2c6edfe191aa6ff7b90a245e2dbe8139fa03181a3d787236924b385c17a898dcad47a89e263cc2598769caf9b2767bdf32e6fcb4cac1d8d5421b1b8cf0562
data/CHANGES CHANGED
@@ -1,3 +1,8 @@
1
+ 0.8.2
2
+
3
+ * Support TruffleRuby in Temple::Filters::StaticAnalyzer (#127)
4
+ * Support TruffleRuby in Temple::Filters::StringSplitter (#127)
5
+
1
6
  0.8.1
2
7
 
3
8
  * Stop relying on deprecated method in Rails (#121)
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  Temple
2
2
  ======
3
3
 
4
- [![Build Status](https://secure.travis-ci.org/judofyr/temple.svg?branch=master)](http://travis-ci.org/judofyr/temple) [![Dependency Status](https://gemnasium.com/judofyr/temple.svg?travis)](https://gemnasium.com/judofyr/temple) [![Code Climate](https://codeclimate.com/github/judofyr/temple.svg)](https://codeclimate.com/github/judofyr/temple) [![Gem Version](https://badge.fury.io/rb/temple.svg)](https://rubygems.org/gems/temple)
4
+ [![Build Status](https://secure.travis-ci.org/judofyr/temple.svg?branch=master)](http://travis-ci.org/judofyr/temple) [![Code Climate](https://codeclimate.com/github/judofyr/temple.svg)](https://codeclimate.com/github/judofyr/temple) [![Gem Version](https://badge.fury.io/rb/temple.svg)](https://rubygems.org/gems/temple)
5
5
 
6
6
  Temple is an abstraction and a framework for compiling templates to pure Ruby.
7
7
  It's all about making it easier to experiment, implement and optimize template
@@ -7,7 +7,7 @@ module Temple
7
7
  module Filters
8
8
  # Compile [:dynamic, "foo#{bar}"] to [:multi, [:static, 'foo'], [:dynamic, 'bar']]
9
9
  class StringSplitter < Filter
10
- if defined?(Ripper) && RUBY_VERSION >= "2.0.0"
10
+ if defined?(Ripper) && RUBY_VERSION >= "2.0.0" && Ripper.respond_to?(:lex)
11
11
  class << self
12
12
  # `code` param must be valid string literal
13
13
  def compile(code)
@@ -30,7 +30,7 @@ module Temple
30
30
 
31
31
  class << self
32
32
  def available?
33
- defined?(Ripper)
33
+ defined?(Ripper) && Ripper.respond_to?(:lex)
34
34
  end
35
35
 
36
36
  def static?(code)
@@ -1,3 +1,3 @@
1
1
  module Temple
2
- VERSION = '0.8.1'
2
+ VERSION = '0.8.2'
3
3
  end
@@ -3,7 +3,7 @@ require 'helper'
3
3
  describe Temple::StaticAnalyzer do
4
4
  describe '.available?' do
5
5
  it 'should return true if its dependency is available' do
6
- Temple::StaticAnalyzer.available?.should.equal(defined?(Ripper))
6
+ Temple::StaticAnalyzer.available?.should.equal(defined?(Ripper) && Ripper.respond_to?(:lex))
7
7
  end
8
8
  end
9
9
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: temple
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Magnus Holm
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-03-03 00:00:00.000000000 Z
12
+ date: 2019-09-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: tilt