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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f1a66bdcbb6ce0f32721e2dd5fd3e0e2f6858610
4
- data.tar.gz: aa68ee2a10185955c3011fa74a6af87b10946021
3
+ metadata.gz: cf28299debdf56338c07ae7a0aae214c97037702
4
+ data.tar.gz: aad790e7e1c5cefdf0adbad0ad77e10cf32efd08
5
5
  SHA512:
6
- metadata.gz: df6ce8fda115ccf94d62d7c51c42937a129cc0da5ebd65fe71c8a6e3fdc89d480af805fbdf2b8bbae487149282ad6e56b317b610a8d113af34052c263d6f1995
7
- data.tar.gz: 5e12b5f21216c0e2cf81c8cfe3e51ce8ace5c537b18bfd7bf602e9bdec1eb461eebd074f4111847b9e7afb17122f5da4116e7604cf90887a675608829540afd8
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
- if domain.require binder_require
38
- "#{binder_namespace}::#{binder_class_name}".constantize
39
- end
37
+ domain.require binder_require
38
+ "#{binder_namespace}::#{binder_class_name}".constantize
40
39
  end
41
40
  end
42
41
 
@@ -117,10 +117,13 @@ module Tzispa
117
117
  self
118
118
  end
119
119
 
120
- def render(context, binder = nil)
120
+ def render(context, bind = nil)
121
121
  parse! unless parser
122
- binder ||= TemplateBinder.for self, context
123
- parser.render binder.bound
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
@@ -3,7 +3,7 @@
3
3
  module Tzispa
4
4
  module Rig
5
5
 
6
- VERSION = '0.5.6'
6
+ VERSION = '0.5.7'
7
7
  GEM_NAME = 'tzispa_rig'
8
8
 
9
9
  end
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.6
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-05 00:00:00.000000000 Z
11
+ date: 2017-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tzispa_utils