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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1aa4a9522b55f88d715802bab683693ae3ac267a
4
- data.tar.gz: f1c4923b96b5e45a5198c4274386062d03c9dace
3
+ metadata.gz: 62efcbc321bef1e276d8e04f3dd501f2712d6b52
4
+ data.tar.gz: 2715eafd2def915b871b299e3cd6e144f57db9b0
5
5
  SHA512:
6
- metadata.gz: 776cfe3e0b6655dc2f0133c65b10b0914e1d4f94397a83862f34aa4c7c64cba9548c752586a3cf9735142074c1186b5d1c3df60800782c2a3b3ec42633bd9695
7
- data.tar.gz: 88e84342bf54817050b45a06fe4226d2179ca5fee0ee5062ee6bac73aecf96d5410e2b6c73c0f45344cbd73770a1f4bff9d491cc7cd5d0f89c4b27d5ae18e11a
6
+ metadata.gz: 0447145dd8b91ab63e87543aa25d3705fa510dd24e9ede55751762046d944ec7844458279143dcd15384c5c259a54c8eb618dac791a64fa4d19897c0b65eb8ec
7
+ data.tar.gz: 28c9ca6fee70a0e689a9f6d42f95cd4abf948c4d02dec31396631ef19b2f05286a56f7b79d26df42ccd82720ba374ef0889fe683bf6aa60255f2b7481e3af8ec
@@ -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( template, context ) if binder_class
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
@@ -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)
@@ -3,7 +3,7 @@
3
3
  module Tzispa
4
4
  module Rig
5
5
 
6
- VERSION = '0.2.7'
6
+ VERSION = '0.2.8'
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.2.7
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-05 00:00:00.000000000 Z
11
+ date: 2016-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tzispa_helpers