trenni 3.6.0 → 3.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/trenni/template.rb +2 -1
- data/lib/trenni/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ed121951aae78b890d97e69aa17a78641ba3420095d58aae07ac7b2222f2ec4
|
4
|
+
data.tar.gz: af24daf72a44f100cbb775d6a23c0694a617fdaab8b65eca1a30e9ae692e2c3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4458fa6a04b8a8e82715e89fa2125c9647f55d06f308751b36b55babbc99e60a29639c9fb161bb5aa7bd33be1c09f4663ddb76f2d4228cb68e8d5210ef1b073
|
7
|
+
data.tar.gz: 18e2d54b3e596716bc8b09bb8f1de2379e454b6159be086729b4e578ffc86b286269b7210715cc68506ccf5a00ac00f22f42a9180711814758dfe84e84855f41
|
data/lib/trenni/template.rb
CHANGED
@@ -19,6 +19,7 @@
|
|
19
19
|
# THE SOFTWARE.
|
20
20
|
|
21
21
|
require_relative 'parsers'
|
22
|
+
require_relative 'markup'
|
22
23
|
|
23
24
|
module Trenni
|
24
25
|
# The output variable that will be used in templates:
|
@@ -118,7 +119,7 @@ module Trenni
|
|
118
119
|
Buffer.new(to_string(scope), path: @buffer.path)
|
119
120
|
end
|
120
121
|
|
121
|
-
def to_proc(scope =
|
122
|
+
def to_proc(scope = binding)
|
122
123
|
@compiled_proc ||= eval("proc{|#{OUT}|;#{code}}", scope, @buffer.path).freeze
|
123
124
|
end
|
124
125
|
|
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.6.
|
4
|
+
version: 3.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler
|
@@ -170,8 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
170
170
|
- !ruby/object:Gem::Version
|
171
171
|
version: '0'
|
172
172
|
requirements: []
|
173
|
-
|
174
|
-
rubygems_version: 2.7.6
|
173
|
+
rubygems_version: 3.0.2
|
175
174
|
signing_key:
|
176
175
|
specification_version: 4
|
177
176
|
summary: A fast native templating system that compiles directly to Ruby code.
|