tzispa_rig 0.2.7 → 0.2.8
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/binder.rb +3 -1
- data/lib/tzispa/rig/template.rb +1 -0
- 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: 62efcbc321bef1e276d8e04f3dd501f2712d6b52
|
4
|
+
data.tar.gz: 2715eafd2def915b871b299e3cd6e144f57db9b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0447145dd8b91ab63e87543aa25d3705fa510dd24e9ede55751762046d944ec7844458279143dcd15384c5c259a54c8eb618dac791a64fa4d19897c0b65eb8ec
|
7
|
+
data.tar.gz: 28c9ca6fee70a0e689a9f6d42f95cd4abf948c4d02dec31396631ef19b2f05286a56f7b79d26df42ccd82720ba374ef0889fe683bf6aa60255f2b7481e3af8ec
|
data/lib/tzispa/rig/binder.rb
CHANGED
@@ -73,7 +73,9 @@ module Tzispa
|
|
73
73
|
def self.for(template, context)
|
74
74
|
if template.bindable?
|
75
75
|
binder_class = template.binder_class
|
76
|
-
binder_class.new(
|
76
|
+
binder_class.new(template, context).tap { |binder|
|
77
|
+
raise "#{binder_class} isn't a TemplateBinder" unless binder&.is_a? Tzispa::Rig::TemplateBinder
|
78
|
+
} if binder_class
|
77
79
|
else
|
78
80
|
self.new(template, context)
|
79
81
|
end
|
data/lib/tzispa/rig/template.rb
CHANGED
@@ -212,6 +212,7 @@ module Tzispa
|
|
212
212
|
|
213
213
|
def rig_template(name, type, format, params, parent)
|
214
214
|
if @cache
|
215
|
+
#todo: a modified template file not reloading if the container template isn't modified too
|
215
216
|
ktpl = "#{type}__#{name}".to_sym
|
216
217
|
if @mutex.owned?
|
217
218
|
tpl = @cache[ktpl] || Template.new(name: name, type: type, format: format, domain: @app.domain, params: params, parent: parent, engine: self)
|
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.2.
|
4
|
+
version: 0.2.8
|
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: 2016-04-
|
11
|
+
date: 2016-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tzispa_helpers
|