erector 0.9.0.pre1 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. data/.gemtest +0 -0
  2. data/Gemfile +1 -1
  3. data/README.txt +3 -2
  4. data/Rakefile +39 -18
  5. data/VERSION.yml +1 -2
  6. data/bin/erector +6 -0
  7. data/lib/erector/abstract_widget.rb +15 -14
  8. data/lib/erector/caching.rb +2 -2
  9. data/lib/erector/convenience.rb +33 -1
  10. data/lib/erector/erect/erect.rb +2 -1
  11. data/lib/erector/externals.rb +10 -10
  12. data/lib/erector/html_widget.rb +1 -81
  13. data/lib/erector/needs.rb +3 -2
  14. data/lib/erector/rails/railtie.rb +2 -0
  15. data/lib/erector/rails3.rb +4 -1
  16. data/lib/erector/sass.rb +13 -2
  17. data/lib/erector/widget.rb +1 -1
  18. data/lib/erector/xml_widget.rb +2 -2
  19. data/spec/erector/convenience_spec.rb +4 -4
  20. data/spec/erector/needs_spec.rb +32 -13
  21. data/spec/erector/widget_spec.rb +11 -0
  22. data/spec/erector/xml_widget_spec.rb +2 -3
  23. data/spec/rails2/rails_app/Gemfile +2 -1
  24. data/spec/rails2/rails_app/Gemfile.lock +34 -31
  25. data/spec/rails2/rails_app/app/helpers/rails_helpers_spec_helper.rb +3 -0
  26. data/spec/rails2/rails_app/app/helpers/test_helper.rb +3 -0
  27. data/spec/rails2/rails_app/log/test.log +916 -2176
  28. data/spec/rails2/rails_app/spec/render_spec.rb +1 -1
  29. data/spec/rails_root/Gemfile +2 -1
  30. data/spec/rails_root/Gemfile.lock +126 -0
  31. data/spec/rails_root/app/views/layouts/widget_as_layout.rb +8 -0
  32. data/spec/rails_root/app/views/test/render_with_widget_as_layout.rb +5 -0
  33. data/spec/rails_root/app/views/test/render_with_widget_as_layout_using_content_for.rb +8 -0
  34. data/spec/rails_root/log/test.log +1974 -2147
  35. data/spec/rails_root/spec/rails_helpers_spec.rb +8 -0
  36. data/spec/rails_root/spec/render_spec.rb +29 -1
  37. data/spec/web/article_spec.rb +234 -0
  38. metadata +107 -76
  39. data/spec/rails2/rails_app/vendor/plugins/rails_xss/MIT-LICENSE +0 -20
  40. data/spec/rails2/rails_app/vendor/plugins/rails_xss/README.markdown +0 -90
  41. data/spec/rails2/rails_app/vendor/plugins/rails_xss/Rakefile +0 -23
  42. data/spec/rails2/rails_app/vendor/plugins/rails_xss/init.rb +0 -7
  43. data/spec/rails2/rails_app/vendor/plugins/rails_xss/lib/rails_xss.rb +0 -3
  44. data/spec/rails2/rails_app/vendor/plugins/rails_xss/lib/rails_xss/action_view.rb +0 -87
  45. data/spec/rails2/rails_app/vendor/plugins/rails_xss/lib/rails_xss/erubis.rb +0 -33
  46. data/spec/rails2/rails_app/vendor/plugins/rails_xss/lib/rails_xss/string_ext.rb +0 -52
  47. data/spec/rails2/rails_app/vendor/plugins/rails_xss/lib/tasks/rails_xss_tasks.rake +0 -4
  48. data/spec/rails2/rails_app/vendor/plugins/rails_xss/test/active_record_helper_test.rb +0 -74
  49. data/spec/rails2/rails_app/vendor/plugins/rails_xss/test/asset_tag_helper_test.rb +0 -49
  50. data/spec/rails2/rails_app/vendor/plugins/rails_xss/test/caching_test.rb +0 -43
  51. data/spec/rails2/rails_app/vendor/plugins/rails_xss/test/date_helper_test.rb +0 -29
  52. data/spec/rails2/rails_app/vendor/plugins/rails_xss/test/deprecated_output_safety_test.rb +0 -112
  53. data/spec/rails2/rails_app/vendor/plugins/rails_xss/test/erb_util_test.rb +0 -36
  54. data/spec/rails2/rails_app/vendor/plugins/rails_xss/test/form_helper_test.rb +0 -1447
  55. data/spec/rails2/rails_app/vendor/plugins/rails_xss/test/form_tag_helper_test.rb +0 -354
  56. data/spec/rails2/rails_app/vendor/plugins/rails_xss/test/output_safety_test.rb +0 -115
  57. data/spec/rails2/rails_app/vendor/plugins/rails_xss/test/rails_xss_test.rb +0 -23
  58. data/spec/rails2/rails_app/vendor/plugins/rails_xss/test/test_helper.rb +0 -5
  59. data/spec/rails2/rails_app/vendor/plugins/rails_xss/test/text_helper_test.rb +0 -17
  60. data/spec/rails_root/log/development.log +0 -17
@@ -119,6 +119,14 @@ describe Erector::Rails do
119
119
  end
120
120
  end
121
121
 
122
+ describe "#favicon_link_tag" do
123
+ it "renders tag" do
124
+ test_render do
125
+ favicon_link_tag("rails.ico")
126
+ end.should == %{<link href="/images/rails.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />}
127
+ end
128
+ end
129
+
122
130
  describe "#image_tag" do
123
131
  it "renders tag" do
124
132
  test_render do
@@ -162,6 +162,21 @@ describe ActionController::Base do
162
162
  @bar = "bar"
163
163
  render :widget => NeedsWidget
164
164
  end
165
+
166
+ def render_with_widget_as_layout
167
+ render :layout => "layouts/widget_as_layout"
168
+ end
169
+
170
+ def render_with_widget_as_layout_and_vars
171
+ @before = "Breakfast"
172
+ @during = "Lunch"
173
+ @after = "Dinner"
174
+ render :template => "test/render_with_widget_as_layout", :layout => "layouts/widget_as_layout"
175
+ end
176
+
177
+ def render_with_widget_as_layout_using_content_for
178
+ render :template => "test/render_with_widget_as_layout_using_content_for", :layout => "layouts/widget_as_layout"
179
+ end
165
180
  end
166
181
 
167
182
  class TestWidget < Erector::Widget
@@ -210,7 +225,7 @@ describe ActionController::Base do
210
225
  end
211
226
 
212
227
  it "should raise when rendering a widget class with implicit assigns and too many variables" do
213
- proc { test_action(:render_widget_with_extra_controller_variables) }.should raise_error(RuntimeError, /Excess parameters?.*: .*baz/)
228
+ proc { test_action(:render_widget_with_extra_controller_variables) }.should raise_error(ArgumentError, /Excess parameters?.*: .*baz/)
214
229
  end
215
230
 
216
231
  it "should render a specific content method" do
@@ -294,5 +309,18 @@ describe ActionController::Base do
294
309
  it "should allow rendering widget with needs" do
295
310
  proc { test_action(:render_with_needs) }.should_not raise_error
296
311
  end
312
+
313
+ it "should allow using a widget as a layout" do
314
+ test_action(:render_with_widget_as_layout).should == "BEFOREDURINGAFTER"
315
+ end
316
+
317
+ it "should allow using a widget as a layout with instance vars" do
318
+ test_action(:render_with_widget_as_layout_and_vars).should == "BreakfastLunchDinner"
319
+ end
320
+
321
+ it "should allow using a widget as a layout using content_for" do
322
+ test_action(:render_with_widget_as_layout_using_content_for).should == "TOPBEFOREDURINGAFTER"
323
+ end
324
+
297
325
  end
298
326
  end
@@ -0,0 +1,234 @@
1
+ here = File.dirname(__FILE__)
2
+ require File.expand_path("#{here}/../spec_helper")
3
+
4
+ $: << File.expand_path("#{here}/../../web/")
5
+ require "article"
6
+
7
+ describe Article do
8
+ it "requires a name" do
9
+ lambda {
10
+ Article.new
11
+ }.should raise_error(ArgumentError)
12
+
13
+ a = Article.new(:name => "Foo")
14
+ assert { a.instance_variable_get(:@name) == "Foo" }
15
+ end
16
+
17
+ it "renders a name" do
18
+ a = Article.new(:name => "Foo")
19
+ a.to_html.should == "<div class=\"article\"><h1 class=\"name\">Foo</h1></div>"
20
+ end
21
+
22
+ it "defaults to empty sections" do
23
+ a = Article.new(:name => "Foo")
24
+ assert { a.instance_variable_get(:@sections) == [] }
25
+ end
26
+
27
+ it "allows sections" do
28
+ a = Article.new(:name => "Foo", :sections => [w = Erector::Widget.new])
29
+ assert { a.instance_variable_get(:@sections) == [w] }
30
+ end
31
+
32
+ it "allows adding sections later" do
33
+ a = Article.new(:name => "Foo")
34
+ a << (w = Section.new(:name => "Bar"))
35
+ assert { a.instance_variable_get(:@sections) == [w] }
36
+ end
37
+
38
+ it "returns self from <<, to allow chaining" do
39
+ a = Article.new(:name => "Foo")
40
+ val = a << (w = Erector::Widget.new)
41
+ assert { val == a }
42
+ end
43
+
44
+ it "allows adding sections via a method call" do
45
+ a = Article.new(:name => "Foo")
46
+ a.add(:name => "Bar") do
47
+ p.bar!
48
+ end
49
+ s = a.instance_variable_get(:@sections)
50
+ assert { s.size == 1 }
51
+ assert { s.first.name == "Bar" }
52
+ assert { s.first.to_html == "<p id=\"bar\"></p>" }
53
+ end
54
+
55
+ describe "with contents" do
56
+ before do
57
+ @article = Article.new(:name => "Gnome Plan")
58
+ @article << Section.new(:name => "Steal Underpants") do
59
+ p "very important"
60
+ end
61
+
62
+ @article << Section.new(:name => "?", :href => "question") do
63
+ p "todo"
64
+ end
65
+
66
+ @article << Section.new(:name => "Profit!") do
67
+ p "victory"
68
+ end
69
+ end
70
+
71
+ it "shows a table of contents" do
72
+ @article.to_html =~ /<div class=\"toc\">/
73
+ end
74
+
75
+ it "toc contains each section's name and a link to its href" do
76
+ @article.to_html(:content_method_name => "table_of_contents", :prettyprint => true).should == <<-HTML
77
+ <div class="toc">
78
+ <h2>Table of Contents</h2>
79
+ <ol class="toc">
80
+ <li><a href="#stealunderpants">Steal Underpants</a></li>
81
+ <li><a href="#question">?</a></li>
82
+ <li><a href="#profit">Profit!</a></li>
83
+ </ol>
84
+ </div>
85
+ <div class="clear"></div>
86
+ HTML
87
+ end
88
+
89
+ it "shows each section" do
90
+ @article.to_html(:content_method_name => "emit_sections", :prettyprint => true).should == <<-HTML
91
+ <div class="sections">
92
+ <a name="stealunderpants"></a>
93
+ <h2>1. Steal Underpants</h2>
94
+ <p>very important</p>
95
+ <a name="question"></a>
96
+ <h2>2. ?</h2>
97
+ <p>todo</p>
98
+ <a name="profit"></a>
99
+ <h2>3. Profit!</h2>
100
+ <p>victory</p>
101
+ </div>
102
+ HTML
103
+ end
104
+ end
105
+
106
+ describe "with subsections" do
107
+
108
+ before do
109
+ @article = Article.new(:name => "Food")
110
+ @article <<
111
+ Section.new(:name => "Breakfast") { p "very important" }.tap do |s|
112
+ s << Section.new(:name => "Coffee") { p "french roast" }
113
+ s << Section.new(:name => "Eggs") { p "scrambled" }
114
+ end
115
+ end
116
+
117
+ it "toc contains each section's name and a link to its href" do
118
+ @article.to_html(:content_method_name => "table_of_contents", :prettyprint => true).should == <<-HTML
119
+ <div class="toc">
120
+ <h2>Table of Contents</h2>
121
+ <ol class="toc">
122
+ <li><a href="#breakfast">Breakfast</a>
123
+ <ol class="toc">
124
+ <li><a href="#coffee">Coffee</a></li>
125
+ <li><a href="#eggs">Eggs</a></li>
126
+ </ol>
127
+ </li>
128
+ </ol>
129
+ </div>
130
+ <div class="clear"></div>
131
+ HTML
132
+ end
133
+
134
+ it "shows each section" do
135
+ @article.to_html(:content_method_name => "emit_sections", :prettyprint => true).should == <<-HTML
136
+ <div class="sections">
137
+ <a name="breakfast"></a>
138
+ <h2>1. Breakfast</h2>
139
+ <p>very important</p>
140
+ <div class="sections">
141
+ <a name="coffee"></a>
142
+ <h3>1.1. Coffee</h3>
143
+ <p>french roast</p>
144
+ <a name="eggs"></a>
145
+ <h3>1.2. Eggs</h3>
146
+ <p>scrambled</p>
147
+ </div>
148
+ </div>
149
+ HTML
150
+ end
151
+ end
152
+
153
+ it "can be created using nested taps and adds" do
154
+ article = Article.new(:name => "food").tap { |a|
155
+ a.add(:name => "fruit") {
156
+ text "sweet and fibrous"
157
+ }.tap { |s|
158
+ s.add(:name => "apple") {
159
+ text "crunchy"
160
+ }.tap { |s|
161
+ s.add(:name => "granny smith") {
162
+ text "green"
163
+ }
164
+ s.add(:name => "red delicious") {
165
+ text "red"
166
+ }
167
+ }
168
+ s.add(:name => "banana") {
169
+ text "yellow"
170
+ }
171
+ }
172
+ a.add(:name => "bread") {
173
+ text "chewy and grainy"
174
+ }.tap { |s|
175
+ s.add(:name => "sourdough") {
176
+ text "tangy"
177
+ }
178
+ }
179
+ }
180
+
181
+ article.to_html(:prettyprint => true).should == <<-HTML
182
+ <div class="article">
183
+ <h1 class="name">food</h1>
184
+ <div class="toc">
185
+ <h2>Table of Contents</h2>
186
+ <ol class="toc">
187
+ <li><a href="#fruit">fruit</a>
188
+ <ol class="toc">
189
+ <li><a href="#apple">apple</a>
190
+ <ol class="toc">
191
+ <li><a href="#grannysmith">granny smith</a></li>
192
+ <li><a href="#reddelicious">red delicious</a></li>
193
+ </ol>
194
+ </li>
195
+ <li><a href="#banana">banana</a></li>
196
+ </ol>
197
+ </li>
198
+ <li><a href="#bread">bread</a>
199
+ <ol class="toc">
200
+ <li><a href="#sourdough">sourdough</a></li>
201
+ </ol>
202
+ </li>
203
+ </ol>
204
+ </div>
205
+ <div class="clear"></div>
206
+ <div class="sections">
207
+ <a name="fruit"></a>
208
+ <h2>1. fruit</h2>
209
+ sweet and fibrous
210
+ <div class="sections">
211
+ <a name="apple"></a>
212
+ <h3>1.1. apple</h3>
213
+ crunchy
214
+ <div class="sections">
215
+ <a name="grannysmith"></a>
216
+ <h4>1.1.1. granny smith</h4>
217
+ green<a name="reddelicious"></a>
218
+ <h4>1.1.2. red delicious</h4>
219
+ red</div>
220
+ <a name="banana"></a>
221
+ <h3>1.2. banana</h3>
222
+ yellow</div>
223
+ <a name="bread"></a>
224
+ <h2>2. bread</h2>
225
+ chewy and grainy
226
+ <div class="sections">
227
+ <a name="sourdough"></a>
228
+ <h3>2.1. sourdough</h3>
229
+ tangy</div>
230
+ </div>
231
+ </div>
232
+ HTML
233
+ end
234
+ end
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0.pre1
5
- prerelease: 6
4
+ version: 0.9.0
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Alex Chaffee
@@ -13,11 +13,11 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2011-07-23 00:00:00.000000000Z
16
+ date: 2012-08-15 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: treetop
20
- requirement: &2165518380 !ruby/object:Gem::Requirement
20
+ requirement: !ruby/object:Gem::Requirement
21
21
  none: false
22
22
  requirements:
23
23
  - - ! '>='
@@ -25,10 +25,15 @@ dependencies:
25
25
  version: 1.2.3
26
26
  type: :runtime
27
27
  prerelease: false
28
- version_requirements: *2165518380
28
+ version_requirements: !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: 1.2.3
29
34
  - !ruby/object:Gem::Dependency
30
35
  name: activesupport
31
- requirement: &2165517640 !ruby/object:Gem::Requirement
36
+ requirement: !ruby/object:Gem::Requirement
32
37
  none: false
33
38
  requirements:
34
39
  - - ~>
@@ -36,10 +41,15 @@ dependencies:
36
41
  version: '3'
37
42
  type: :development
38
43
  prerelease: false
39
- version_requirements: *2165517640
44
+ version_requirements: !ruby/object:Gem::Requirement
45
+ none: false
46
+ requirements:
47
+ - - ~>
48
+ - !ruby/object:Gem::Version
49
+ version: '3'
40
50
  - !ruby/object:Gem::Dependency
41
51
  name: rspec
42
- requirement: &2165516760 !ruby/object:Gem::Requirement
52
+ requirement: !ruby/object:Gem::Requirement
43
53
  none: false
44
54
  requirements:
45
55
  - - ~>
@@ -47,10 +57,15 @@ dependencies:
47
57
  version: '2'
48
58
  type: :development
49
59
  prerelease: false
50
- version_requirements: *2165516760
60
+ version_requirements: !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ~>
64
+ - !ruby/object:Gem::Version
65
+ version: '2'
51
66
  - !ruby/object:Gem::Dependency
52
67
  name: rubyforge
53
- requirement: &2165515900 !ruby/object:Gem::Requirement
68
+ requirement: !ruby/object:Gem::Requirement
54
69
  none: false
55
70
  requirements:
56
71
  - - ! '>='
@@ -58,10 +73,15 @@ dependencies:
58
73
  version: '0'
59
74
  type: :development
60
75
  prerelease: false
61
- version_requirements: *2165515900
76
+ version_requirements: !ruby/object:Gem::Requirement
77
+ none: false
78
+ requirements:
79
+ - - ! '>='
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
62
82
  - !ruby/object:Gem::Dependency
63
83
  name: rr
64
- requirement: &2165515180 !ruby/object:Gem::Requirement
84
+ requirement: !ruby/object:Gem::Requirement
65
85
  none: false
66
86
  requirements:
67
87
  - - ! '>='
@@ -69,10 +89,15 @@ dependencies:
69
89
  version: '0'
70
90
  type: :development
71
91
  prerelease: false
72
- version_requirements: *2165515180
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ none: false
94
+ requirements:
95
+ - - ! '>='
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
73
98
  - !ruby/object:Gem::Dependency
74
99
  name: nokogiri
75
- requirement: &2165514340 !ruby/object:Gem::Requirement
100
+ requirement: !ruby/object:Gem::Requirement
76
101
  none: false
77
102
  requirements:
78
103
  - - ! '>='
@@ -80,10 +105,15 @@ dependencies:
80
105
  version: '0'
81
106
  type: :development
82
107
  prerelease: false
83
- version_requirements: *2165514340
108
+ version_requirements: !ruby/object:Gem::Requirement
109
+ none: false
110
+ requirements:
111
+ - - ! '>='
112
+ - !ruby/object:Gem::Version
113
+ version: '0'
84
114
  - !ruby/object:Gem::Dependency
85
115
  name: jeweler
86
- requirement: &2165513500 !ruby/object:Gem::Requirement
116
+ requirement: !ruby/object:Gem::Requirement
87
117
  none: false
88
118
  requirements:
89
119
  - - ! '>='
@@ -91,10 +121,15 @@ dependencies:
91
121
  version: '0'
92
122
  type: :development
93
123
  prerelease: false
94
- version_requirements: *2165513500
124
+ version_requirements: !ruby/object:Gem::Requirement
125
+ none: false
126
+ requirements:
127
+ - - ! '>='
128
+ - !ruby/object:Gem::Version
129
+ version: '0'
95
130
  - !ruby/object:Gem::Dependency
96
131
  name: haml
97
- requirement: &2165512700 !ruby/object:Gem::Requirement
132
+ requirement: !ruby/object:Gem::Requirement
98
133
  none: false
99
134
  requirements:
100
135
  - - ! '>='
@@ -102,10 +137,15 @@ dependencies:
102
137
  version: '0'
103
138
  type: :development
104
139
  prerelease: false
105
- version_requirements: *2165512700
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ none: false
142
+ requirements:
143
+ - - ! '>='
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
106
146
  - !ruby/object:Gem::Dependency
107
147
  name: sass
108
- requirement: &2165511820 !ruby/object:Gem::Requirement
148
+ requirement: !ruby/object:Gem::Requirement
109
149
  none: false
110
150
  requirements:
111
151
  - - ! '>='
@@ -113,10 +153,15 @@ dependencies:
113
153
  version: '0'
114
154
  type: :development
115
155
  prerelease: false
116
- version_requirements: *2165511820
156
+ version_requirements: !ruby/object:Gem::Requirement
157
+ none: false
158
+ requirements:
159
+ - - ! '>='
160
+ - !ruby/object:Gem::Version
161
+ version: '0'
117
162
  - !ruby/object:Gem::Dependency
118
163
  name: erubis
119
- requirement: &2165511060 !ruby/object:Gem::Requirement
164
+ requirement: !ruby/object:Gem::Requirement
120
165
  none: false
121
166
  requirements:
122
167
  - - ! '>='
@@ -124,21 +169,31 @@ dependencies:
124
169
  version: '0'
125
170
  type: :development
126
171
  prerelease: false
127
- version_requirements: *2165511060
172
+ version_requirements: !ruby/object:Gem::Requirement
173
+ none: false
174
+ requirements:
175
+ - - ! '>='
176
+ - !ruby/object:Gem::Version
177
+ version: '0'
128
178
  - !ruby/object:Gem::Dependency
129
179
  name: rdoc
130
- requirement: &2165510240 !ruby/object:Gem::Requirement
180
+ requirement: !ruby/object:Gem::Requirement
131
181
  none: false
132
182
  requirements:
133
183
  - - ~>
134
184
  - !ruby/object:Gem::Version
135
- version: '2.3'
185
+ version: '3.4'
136
186
  type: :development
137
187
  prerelease: false
138
- version_requirements: *2165510240
188
+ version_requirements: !ruby/object:Gem::Requirement
189
+ none: false
190
+ requirements:
191
+ - - ~>
192
+ - !ruby/object:Gem::Version
193
+ version: '3.4'
139
194
  - !ruby/object:Gem::Dependency
140
195
  name: wrong
141
- requirement: &2165509440 !ruby/object:Gem::Requirement
196
+ requirement: !ruby/object:Gem::Requirement
142
197
  none: false
143
198
  requirements:
144
199
  - - ! '>='
@@ -146,7 +201,12 @@ dependencies:
146
201
  version: 0.5.4
147
202
  type: :development
148
203
  prerelease: false
149
- version_requirements: *2165509440
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ none: false
206
+ requirements:
207
+ - - ! '>='
208
+ - !ruby/object:Gem::Version
209
+ version: 0.5.4
150
210
  description: Erector is a Builder-like view framework, inspired by Markaby but overcoming
151
211
  some of its flaws. In Erector all views are objects, not template files, which allows
152
212
  the full power of object-oriented programming (inheritance, modular decomposition,
@@ -158,6 +218,7 @@ extensions: []
158
218
  extra_rdoc_files:
159
219
  - README.txt
160
220
  files:
221
+ - .gemtest
161
222
  - README.txt
162
223
  - VERSION.yml
163
224
  - bin/erector
@@ -246,6 +307,8 @@ files:
246
307
  - spec/rails2/erect_rails_spec.rb
247
308
  - spec/rails2/rails_app/app/controllers/application_controller.rb
248
309
  - spec/rails2/rails_app/app/helpers/application_helper.rb
310
+ - spec/rails2/rails_app/app/helpers/rails_helpers_spec_helper.rb
311
+ - spec/rails2/rails_app/app/helpers/test_helper.rb
249
312
  - spec/rails2/rails_app/app/views/test/_erb.erb
250
313
  - spec/rails2/rails_app/app/views/test/_erector.rb
251
314
  - spec/rails2/rails_app/app/views/test/_partial_with_locals.rb
@@ -313,31 +376,11 @@ files:
313
376
  - spec/rails2/rails_app/spec/render_spec.rb
314
377
  - spec/rails2/rails_app/test/performance/browsing_test.rb
315
378
  - spec/rails2/rails_app/test/test_helper.rb
316
- - spec/rails2/rails_app/vendor/plugins/rails_xss/init.rb
317
- - spec/rails2/rails_app/vendor/plugins/rails_xss/lib/rails_xss/action_view.rb
318
- - spec/rails2/rails_app/vendor/plugins/rails_xss/lib/rails_xss/erubis.rb
319
- - spec/rails2/rails_app/vendor/plugins/rails_xss/lib/rails_xss/string_ext.rb
320
- - spec/rails2/rails_app/vendor/plugins/rails_xss/lib/rails_xss.rb
321
- - spec/rails2/rails_app/vendor/plugins/rails_xss/lib/tasks/rails_xss_tasks.rake
322
- - spec/rails2/rails_app/vendor/plugins/rails_xss/MIT-LICENSE
323
- - spec/rails2/rails_app/vendor/plugins/rails_xss/Rakefile
324
- - spec/rails2/rails_app/vendor/plugins/rails_xss/README.markdown
325
- - spec/rails2/rails_app/vendor/plugins/rails_xss/test/active_record_helper_test.rb
326
- - spec/rails2/rails_app/vendor/plugins/rails_xss/test/asset_tag_helper_test.rb
327
- - spec/rails2/rails_app/vendor/plugins/rails_xss/test/caching_test.rb
328
- - spec/rails2/rails_app/vendor/plugins/rails_xss/test/date_helper_test.rb
329
- - spec/rails2/rails_app/vendor/plugins/rails_xss/test/deprecated_output_safety_test.rb
330
- - spec/rails2/rails_app/vendor/plugins/rails_xss/test/erb_util_test.rb
331
- - spec/rails2/rails_app/vendor/plugins/rails_xss/test/form_helper_test.rb
332
- - spec/rails2/rails_app/vendor/plugins/rails_xss/test/form_tag_helper_test.rb
333
- - spec/rails2/rails_app/vendor/plugins/rails_xss/test/output_safety_test.rb
334
- - spec/rails2/rails_app/vendor/plugins/rails_xss/test/rails_xss_test.rb
335
- - spec/rails2/rails_app/vendor/plugins/rails_xss/test/test_helper.rb
336
- - spec/rails2/rails_app/vendor/plugins/rails_xss/test/text_helper_test.rb
337
379
  - spec/rails_root/app/controllers/application.rb
338
380
  - spec/rails_root/app/controllers/application_controller.rb
339
381
  - spec/rails_root/app/helpers/application_helper.rb
340
382
  - spec/rails_root/app/views/layouts/application.html.erb
383
+ - spec/rails_root/app/views/layouts/widget_as_layout.rb
341
384
  - spec/rails_root/app/views/test/_erb.erb
342
385
  - spec/rails_root/app/views/test/_erector.rb
343
386
  - spec/rails_root/app/views/test/_partial_with_locals.rb
@@ -351,6 +394,8 @@ files:
351
394
  - spec/rails_root/app/views/test/protected_instance_variable.html.rb
352
395
  - spec/rails_root/app/views/test/render_default.html.rb
353
396
  - spec/rails_root/app/views/test/render_partial.html.rb
397
+ - spec/rails_root/app/views/test/render_with_widget_as_layout.rb
398
+ - spec/rails_root/app/views/test/render_with_widget_as_layout_using_content_for.rb
354
399
  - spec/rails_root/config/application.rb
355
400
  - spec/rails_root/config/boot.rb
356
401
  - spec/rails_root/config/database.yml
@@ -369,7 +414,7 @@ files:
369
414
  - spec/rails_root/db/seeds.rb
370
415
  - spec/rails_root/doc/README_FOR_APP
371
416
  - spec/rails_root/Gemfile
372
- - spec/rails_root/log/development.log
417
+ - spec/rails_root/Gemfile.lock
373
418
  - spec/rails_root/log/test.log
374
419
  - spec/rails_root/public/404.html
375
420
  - spec/rails_root/public/422.html
@@ -411,6 +456,7 @@ files:
411
456
  - spec/rails_root/test/performance/browsing_test.rb
412
457
  - spec/rails_root/test/test_helper.rb
413
458
  - spec/spec_helper.rb
459
+ - spec/web/article_spec.rb
414
460
  homepage: http://erector.rubyforge.org/
415
461
  licenses: []
416
462
  post_install_message:
@@ -425,16 +471,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
425
471
  version: '0'
426
472
  segments:
427
473
  - 0
428
- hash: 2103254179861366660
474
+ hash: -2251215620609429696
429
475
  required_rubygems_version: !ruby/object:Gem::Requirement
430
476
  none: false
431
477
  requirements:
432
- - - ! '>'
478
+ - - ! '>='
433
479
  - !ruby/object:Gem::Version
434
- version: 1.3.1
480
+ version: '0'
435
481
  requirements: []
436
482
  rubyforge_project:
437
- rubygems_version: 1.8.5
483
+ rubygems_version: 1.8.24
438
484
  signing_key:
439
485
  specification_version: 3
440
486
  summary: HTML/XML Builder library
@@ -472,6 +518,8 @@ test_files:
472
518
  - spec/rails2/erect_rails_spec.rb
473
519
  - spec/rails2/rails_app/app/controllers/application_controller.rb
474
520
  - spec/rails2/rails_app/app/helpers/application_helper.rb
521
+ - spec/rails2/rails_app/app/helpers/rails_helpers_spec_helper.rb
522
+ - spec/rails2/rails_app/app/helpers/test_helper.rb
475
523
  - spec/rails2/rails_app/app/views/test/_erb.erb
476
524
  - spec/rails2/rails_app/app/views/test/_erector.rb
477
525
  - spec/rails2/rails_app/app/views/test/_partial_with_locals.rb
@@ -539,31 +587,11 @@ test_files:
539
587
  - spec/rails2/rails_app/spec/render_spec.rb
540
588
  - spec/rails2/rails_app/test/performance/browsing_test.rb
541
589
  - spec/rails2/rails_app/test/test_helper.rb
542
- - spec/rails2/rails_app/vendor/plugins/rails_xss/init.rb
543
- - spec/rails2/rails_app/vendor/plugins/rails_xss/lib/rails_xss/action_view.rb
544
- - spec/rails2/rails_app/vendor/plugins/rails_xss/lib/rails_xss/erubis.rb
545
- - spec/rails2/rails_app/vendor/plugins/rails_xss/lib/rails_xss/string_ext.rb
546
- - spec/rails2/rails_app/vendor/plugins/rails_xss/lib/rails_xss.rb
547
- - spec/rails2/rails_app/vendor/plugins/rails_xss/lib/tasks/rails_xss_tasks.rake
548
- - spec/rails2/rails_app/vendor/plugins/rails_xss/MIT-LICENSE
549
- - spec/rails2/rails_app/vendor/plugins/rails_xss/Rakefile
550
- - spec/rails2/rails_app/vendor/plugins/rails_xss/README.markdown
551
- - spec/rails2/rails_app/vendor/plugins/rails_xss/test/active_record_helper_test.rb
552
- - spec/rails2/rails_app/vendor/plugins/rails_xss/test/asset_tag_helper_test.rb
553
- - spec/rails2/rails_app/vendor/plugins/rails_xss/test/caching_test.rb
554
- - spec/rails2/rails_app/vendor/plugins/rails_xss/test/date_helper_test.rb
555
- - spec/rails2/rails_app/vendor/plugins/rails_xss/test/deprecated_output_safety_test.rb
556
- - spec/rails2/rails_app/vendor/plugins/rails_xss/test/erb_util_test.rb
557
- - spec/rails2/rails_app/vendor/plugins/rails_xss/test/form_helper_test.rb
558
- - spec/rails2/rails_app/vendor/plugins/rails_xss/test/form_tag_helper_test.rb
559
- - spec/rails2/rails_app/vendor/plugins/rails_xss/test/output_safety_test.rb
560
- - spec/rails2/rails_app/vendor/plugins/rails_xss/test/rails_xss_test.rb
561
- - spec/rails2/rails_app/vendor/plugins/rails_xss/test/test_helper.rb
562
- - spec/rails2/rails_app/vendor/plugins/rails_xss/test/text_helper_test.rb
563
590
  - spec/rails_root/app/controllers/application.rb
564
591
  - spec/rails_root/app/controllers/application_controller.rb
565
592
  - spec/rails_root/app/helpers/application_helper.rb
566
593
  - spec/rails_root/app/views/layouts/application.html.erb
594
+ - spec/rails_root/app/views/layouts/widget_as_layout.rb
567
595
  - spec/rails_root/app/views/test/_erb.erb
568
596
  - spec/rails_root/app/views/test/_erector.rb
569
597
  - spec/rails_root/app/views/test/_partial_with_locals.rb
@@ -577,6 +605,8 @@ test_files:
577
605
  - spec/rails_root/app/views/test/protected_instance_variable.html.rb
578
606
  - spec/rails_root/app/views/test/render_default.html.rb
579
607
  - spec/rails_root/app/views/test/render_partial.html.rb
608
+ - spec/rails_root/app/views/test/render_with_widget_as_layout.rb
609
+ - spec/rails_root/app/views/test/render_with_widget_as_layout_using_content_for.rb
580
610
  - spec/rails_root/config/application.rb
581
611
  - spec/rails_root/config/boot.rb
582
612
  - spec/rails_root/config/database.yml
@@ -595,7 +625,7 @@ test_files:
595
625
  - spec/rails_root/db/seeds.rb
596
626
  - spec/rails_root/doc/README_FOR_APP
597
627
  - spec/rails_root/Gemfile
598
- - spec/rails_root/log/development.log
628
+ - spec/rails_root/Gemfile.lock
599
629
  - spec/rails_root/log/test.log
600
630
  - spec/rails_root/public/404.html
601
631
  - spec/rails_root/public/422.html
@@ -637,3 +667,4 @@ test_files:
637
667
  - spec/rails_root/test/performance/browsing_test.rb
638
668
  - spec/rails_root/test/test_helper.rb
639
669
  - spec/spec_helper.rb
670
+ - spec/web/article_spec.rb