tzispa_rig 0.5.6 → 0.5.7
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/lib/tzispa/rig/helpers/template_maker.rb +2 -3
- data/lib/tzispa/rig/template.rb +6 -3
- data/lib/tzispa/rig/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cf28299debdf56338c07ae7a0aae214c97037702
|
|
4
|
+
data.tar.gz: aad790e7e1c5cefdf0adbad0ad77e10cf32efd08
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8fdf2bb999db07b47825ad0b63b533d2fa16d08c4fc40cbe0c5ef8f807e48bf9543eac9d8826c1e9956acd0e07053272515d15de507947c46ddf911e452cc8bb
|
|
7
|
+
data.tar.gz: 4366e32e5db6416320801ab7bae8d8a81cc01a477525ba3171693491cace6059499ef703b293ff9aa1572c43b35e11b595eac24c392c836fa3a0d783573b13f7
|
|
@@ -34,9 +34,8 @@ module Tzispa
|
|
|
34
34
|
|
|
35
35
|
def binder_class
|
|
36
36
|
@binder_class ||= begin
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
end
|
|
37
|
+
domain.require binder_require
|
|
38
|
+
"#{binder_namespace}::#{binder_class_name}".constantize
|
|
40
39
|
end
|
|
41
40
|
end
|
|
42
41
|
|
data/lib/tzispa/rig/template.rb
CHANGED
|
@@ -117,10 +117,13 @@ module Tzispa
|
|
|
117
117
|
self
|
|
118
118
|
end
|
|
119
119
|
|
|
120
|
-
def render(context,
|
|
120
|
+
def render(context, bind = nil)
|
|
121
121
|
parse! unless parser
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
parser.render binder(context, bind)
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
def binder(context, bind)
|
|
126
|
+
bind || TemplateBinder.for(self, context)&.bound
|
|
124
127
|
end
|
|
125
128
|
|
|
126
129
|
def path
|
data/lib/tzispa/rig/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tzispa_rig
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Juan Antonio Piñero
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-05-
|
|
11
|
+
date: 2017-05-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tzispa_utils
|