trenni 3.5.0 → 3.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +11 -5
- data/lib/trenni/template.rb +3 -1
- data/lib/trenni/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b6cb9f956653b474a6e20554827f2ea1cd3f2e17b6fc798f6ee233239f89496d
|
4
|
+
data.tar.gz: cc82816455b5de51b611c93219b66b688eddf6578363fadf84518a5d40e5dcd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 551ff111c1d854098ac216c3e283b4ca017a7b5a9361464c694fec871098f61d108cafee2b33babdd83a101a31385741b8d503a6a79c79b1e5adee8cba66a9a9
|
7
|
+
data.tar.gz: 27bede20b5c1707af4504d96783c4b6c3124990f9af60a9b7cdaa6c4e17fff883c400136a8fb9df038e4223c6fcb737d302750412915c031a3b8cf81d870af52
|
data/.travis.yml
CHANGED
@@ -1,18 +1,24 @@
|
|
1
1
|
language: ruby
|
2
2
|
sudo: false
|
3
|
+
|
3
4
|
before_install:
|
5
|
+
- gem update --system
|
4
6
|
- gem install bundler
|
5
|
-
|
7
|
+
|
6
8
|
before_script:
|
7
9
|
- sh -c "cd ext && rake compile"
|
10
|
+
|
8
11
|
rvm:
|
9
|
-
- 2.1
|
10
|
-
- 2.2
|
11
|
-
- 2.3
|
12
|
-
- 2.4
|
12
|
+
- 2.1
|
13
|
+
- 2.2
|
14
|
+
- 2.3
|
15
|
+
- 2.4
|
16
|
+
- 2.5
|
17
|
+
- 2.6
|
13
18
|
- ruby-head
|
14
19
|
- jruby-head
|
15
20
|
- rbx-2
|
21
|
+
|
16
22
|
env:
|
17
23
|
- COVERAGE=true
|
18
24
|
- COVERAGE=true TRENNI_PREFER_FALLBACK=y
|
data/lib/trenni/template.rb
CHANGED
@@ -110,6 +110,8 @@ module Trenni
|
|
110
110
|
output ||= output_buffer
|
111
111
|
|
112
112
|
scope.instance_exec(output, &to_proc)
|
113
|
+
|
114
|
+
return output
|
113
115
|
end
|
114
116
|
|
115
117
|
def to_buffer(scope)
|
@@ -117,7 +119,7 @@ module Trenni
|
|
117
119
|
end
|
118
120
|
|
119
121
|
def to_proc(scope = nil)
|
120
|
-
@compiled_proc ||= eval("proc{|#{OUT}|;#{code}
|
122
|
+
@compiled_proc ||= eval("proc{|#{OUT}|;#{code}}", scope, @buffer.path).freeze
|
121
123
|
end
|
122
124
|
|
123
125
|
protected
|
data/lib/trenni/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trenni
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler
|
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
171
171
|
version: '0'
|
172
172
|
requirements: []
|
173
173
|
rubyforge_project:
|
174
|
-
rubygems_version: 2.6
|
174
|
+
rubygems_version: 2.7.6
|
175
175
|
signing_key:
|
176
176
|
specification_version: 4
|
177
177
|
summary: A fast native templating system that compiles directly to Ruby code.
|