minimal 0.0.14 → 0.0.15

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.
@@ -7,6 +7,7 @@ class Minimal::Template
7
7
  AUTO_BUFFER = %r(render|tag|error_message_|select|debug|_to|[^l]_for)
8
8
  TAG_NAMES = %w(a body div em fieldset h1 h2 h3 h4 h5 h6 head html img input label li link
9
9
  ol option p pre script select span strong table thead tbody tfoot td title th tr ul)
10
+ SKIP_IVARS = [:controller]
10
11
 
11
12
  module Base
12
13
  attr_accessor :view, :locals, :block
@@ -40,8 +41,8 @@ class Minimal::Template
40
41
 
41
42
  def method_missing(method, *args, &block)
42
43
  locals.key?(method) ? locals[method] :
43
- view.instance_variable_defined?("@#{method}") ? view.instance_variable_get("@#{method}") :
44
- view.respond_to?(method) ? call_view(method, *args, &block) : super
44
+ view.instance_variable_defined?("@#{method}") && !SKIP_IVARS.include?(method) ? view.instance_variable_get("@#{method}") :
45
+ view.respond_to?(method) ? call_view(method, *args, &block) : super
45
46
  end
46
47
 
47
48
  def call_view(method, *args, &block)
@@ -1,3 +1,3 @@
1
1
  module Minimal
2
- VERSION = "0.0.14"
2
+ VERSION = "0.0.15"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minimal
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 14
10
- version: 0.0.14
9
+ - 15
10
+ version: 0.0.15
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sven Fuchs
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-22 00:00:00 +02:00
18
+ date: 2010-09-04 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency