markaby 0.6.7 → 0.6.8

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,7 @@
1
+ = 0.6.8 (2010-06-03)
2
+
3
+ * Add a regression for issue Github #17 (for judofyr / Camping)
4
+
1
5
  = 0.6.7 (2010-06-02)
2
6
 
3
7
  * Add rails support for 2.3.5 - 2.3.8
data/Markaby.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{markaby}
8
- s.version = "0.6.7"
8
+ s.version = "0.6.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["_why", "Tim Fletcher", "John Barton", "spox", "smtlaissezfaire"]
12
- s.date = %q{2010-06-02}
12
+ s.date = %q{2010-06-03}
13
13
  s.description = %q{Tim Fletcher and _why's ruby driven HTML templating system}
14
14
  s.email = %q{scott@railsnewbie.com}
15
15
  s.extra_rdoc_files = [
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.7
1
+ 0.6.8
@@ -91,6 +91,12 @@ module Markaby
91
91
  instance_variable_set("@#{k}", v)
92
92
  end
93
93
 
94
+ if helper
95
+ helper.instance_variables.each do |iv|
96
+ instance_variable_set(iv, helper.instance_variable_get(iv))
97
+ end
98
+ end
99
+
94
100
  @builder = XmlMarkup.new(:indent => @indent, :target => @streams.last)
95
101
 
96
102
  text(capture(&block)) if block
@@ -229,4 +229,15 @@ class MarkabyTest < Test::Unit::TestCase
229
229
  builder = Markaby::Builder.new
230
230
  builder.something.should == "<something/>"
231
231
  end
232
+
233
+ it "should copy instance variables from a helper object" do
234
+ klass = Class.new do
235
+ def initialize
236
+ @hello = "hello there"
237
+ end
238
+ end
239
+
240
+ builder = Markaby::Builder.new({}, klass.new)
241
+ builder.capture { @hello }.should == "hello there"
242
+ end
232
243
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markaby
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 7
10
- version: 0.6.7
9
+ - 8
10
+ version: 0.6.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - _why
@@ -19,7 +19,7 @@ autorequire:
19
19
  bindir: bin
20
20
  cert_chain: []
21
21
 
22
- date: 2010-06-02 00:00:00 -04:00
22
+ date: 2010-06-03 00:00:00 -04:00
23
23
  default_executable:
24
24
  dependencies:
25
25
  - !ruby/object:Gem::Dependency