dinsley-markaby 0.0.6 → 0.0.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.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 0
4
- :patch: 6
4
+ :patch: 8
@@ -169,6 +169,8 @@ module Markaby
169
169
  else
170
170
  r
171
171
  end
172
+
173
+ @helpers.output_buffer = '' if @helpers.respond_to?(:output_buffer=)
172
174
  elsif @assigns.has_key?(sym)
173
175
  @assigns[sym]
174
176
  elsif @assigns.has_key?(stringy_key = sym.to_s)
@@ -7,11 +7,8 @@ module Markaby
7
7
  <<-CODE
8
8
  @output_buffer = '' if @output_buffer.blank?;
9
9
 
10
- variables = @controller.instance_variable_names;
11
- variables -= @controller.protected_instance_variables if @controller.respond_to?(:protected_instance_variables);
12
- variables.each { |name| assigns[name.gsub('@','')] = @controller.instance_variable_get(name); };
13
-
14
- output = Markaby::Builder.new(assigns.merge!(local_assigns), self);
10
+ output = Markaby::Builder.new(assigns, self);
11
+ output.copy_instance_variables_from(self, [:@helpers, :@assigns]);
15
12
  output.instance_eval(#{template.source.dump});
16
13
  output.to_s;
17
14
  CODE
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dinsley-markaby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Fletcher
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2009-04-24 00:00:00 -07:00
14
+ date: 2009-04-28 00:00:00 -07:00
15
15
  default_executable:
16
16
  dependencies: []
17
17