erector 0.8.2 → 0.8.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. data/README.txt +0 -4
  2. data/VERSION.yml +1 -1
  3. data/lib/erector.rb +2 -4
  4. data/lib/erector/abstract_widget.rb +2 -1
  5. data/lib/erector/erect/erect.rb +17 -14
  6. data/lib/erector/erect/rhtml.treetop +18 -10
  7. data/lib/erector/externals.rb +7 -1
  8. data/lib/erector/html.rb +30 -39
  9. data/lib/erector/rails.rb +6 -26
  10. data/lib/erector/rails/form_builder.rb +36 -0
  11. data/lib/erector/rails/railtie.rb +11 -0
  12. data/lib/erector/rails/template_handler.rb +16 -0
  13. data/lib/erector/rails/widget_renderer.rb +6 -0
  14. data/lib/erector/rails2.rb +27 -0
  15. data/lib/erector/{rails → rails2}/extensions/action_controller.rb +1 -1
  16. data/lib/erector/{rails → rails2}/extensions/rails_helpers.rb +17 -4
  17. data/lib/erector/{rails → rails2}/extensions/rails_widget.rb +6 -3
  18. data/lib/erector/{rails → rails2}/rails_form_builder.rb +0 -0
  19. data/lib/erector/rails2/rails_version.rb +6 -0
  20. data/lib/erector/{rails → rails2}/template_handlers/ert_handler.rb +0 -0
  21. data/lib/erector/{rails → rails2}/template_handlers/rb_handler.rb +2 -2
  22. data/lib/erector/rails3.rb +208 -0
  23. data/lib/erector/raw_string.rb +4 -0
  24. data/lib/erector/widgets/external_renderer.rb +8 -0
  25. data/spec/erect/erect_rails_spec.rb +34 -49
  26. data/spec/erect/erected_spec.rb +11 -0
  27. data/spec/rails2/erect_rails_spec.rb +114 -0
  28. data/spec/rails2/rails_app/Gemfile +12 -0
  29. data/spec/rails2/rails_app/Gemfile.lock +89 -0
  30. data/spec/rails2/rails_app/README +243 -0
  31. data/spec/rails2/rails_app/Rakefile +19 -0
  32. data/spec/rails2/rails_app/app/controllers/application_controller.rb +10 -0
  33. data/spec/rails2/rails_app/app/helpers/application_helper.rb +3 -0
  34. data/spec/rails2/rails_app/app/views/test/_erb.erb +1 -0
  35. data/spec/rails2/rails_app/app/views/test/_erector.rb +5 -0
  36. data/spec/rails2/rails_app/app/views/test/_partial_with_locals.rb +7 -0
  37. data/spec/rails2/rails_app/app/views/test/bare.rb +5 -0
  38. data/spec/rails2/rails_app/app/views/test/erb_from_erector.html.rb +5 -0
  39. data/spec/rails2/rails_app/app/views/test/erector_from_erb.html.erb +1 -0
  40. data/spec/rails2/rails_app/app/views/test/erector_with_locals_from_erb.html.erb +6 -0
  41. data/spec/rails2/rails_app/app/views/test/implicit_assigns.html.rb +5 -0
  42. data/spec/rails2/rails_app/app/views/test/needs.html.rb +7 -0
  43. data/spec/rails2/rails_app/app/views/test/needs_subclass.html.rb +5 -0
  44. data/spec/rails2/rails_app/app/views/test/protected_instance_variable.html.rb +5 -0
  45. data/spec/rails2/rails_app/app/views/test/render_default.html.rb +5 -0
  46. data/spec/rails2/rails_app/app/views/test/render_partial.html.rb +5 -0
  47. data/spec/rails2/rails_app/config/boot.rb +114 -0
  48. data/spec/rails2/rails_app/config/database.yml +16 -0
  49. data/spec/rails2/rails_app/config/environment.rb +42 -0
  50. data/spec/rails2/rails_app/config/environments/development.rb +17 -0
  51. data/spec/rails2/rails_app/config/environments/production.rb +28 -0
  52. data/spec/rails2/rails_app/config/environments/test.rb +28 -0
  53. data/spec/rails2/rails_app/config/initializers/backtrace_silencers.rb +7 -0
  54. data/spec/rails2/rails_app/config/initializers/cookie_verification_secret.rb +7 -0
  55. data/spec/rails2/rails_app/config/initializers/inflections.rb +10 -0
  56. data/spec/rails2/rails_app/config/initializers/mime_types.rb +5 -0
  57. data/spec/rails2/rails_app/config/initializers/new_rails_defaults.rb +21 -0
  58. data/spec/rails2/rails_app/config/initializers/session_store.rb +15 -0
  59. data/spec/rails2/rails_app/config/locales/en.yml +5 -0
  60. data/spec/rails2/rails_app/config/routes.rb +43 -0
  61. data/spec/rails2/rails_app/db/development.sqlite3 +0 -0
  62. data/spec/rails2/rails_app/db/schema.rb +14 -0
  63. data/spec/rails2/rails_app/db/seeds.rb +7 -0
  64. data/spec/rails2/rails_app/doc/README_FOR_APP +2 -0
  65. data/spec/rails2/rails_app/log/development.log +76 -0
  66. data/spec/rails2/rails_app/log/production.log +0 -0
  67. data/spec/rails2/rails_app/log/server.log +0 -0
  68. data/spec/rails2/rails_app/log/test.log +4158 -0
  69. data/spec/rails2/rails_app/public/404.html +30 -0
  70. data/spec/rails2/rails_app/public/422.html +30 -0
  71. data/spec/rails2/rails_app/public/500.html +30 -0
  72. data/spec/rails2/rails_app/public/favicon.ico +0 -0
  73. data/spec/rails2/rails_app/public/images/rails.png +0 -0
  74. data/spec/rails2/rails_app/public/index.html +275 -0
  75. data/spec/rails2/rails_app/public/javascripts/application.js +2 -0
  76. data/spec/rails2/rails_app/public/javascripts/controls.js +963 -0
  77. data/spec/rails2/rails_app/public/javascripts/dragdrop.js +973 -0
  78. data/spec/rails2/rails_app/public/javascripts/effects.js +1128 -0
  79. data/spec/rails2/rails_app/public/javascripts/prototype.js +4320 -0
  80. data/spec/rails2/rails_app/public/robots.txt +5 -0
  81. data/spec/rails2/rails_app/script/about +4 -0
  82. data/spec/rails2/rails_app/script/console +3 -0
  83. data/spec/rails2/rails_app/script/dbconsole +3 -0
  84. data/spec/rails2/rails_app/script/destroy +3 -0
  85. data/spec/rails2/rails_app/script/generate +3 -0
  86. data/spec/rails2/rails_app/script/performance/benchmarker +3 -0
  87. data/spec/rails2/rails_app/script/performance/profiler +3 -0
  88. data/spec/rails2/rails_app/script/plugin +3 -0
  89. data/spec/rails2/rails_app/script/runner +3 -0
  90. data/spec/rails2/rails_app/script/server +3 -0
  91. data/spec/rails2/rails_app/spec/rails_helpers_spec.rb +255 -0
  92. data/spec/rails2/rails_app/spec/rails_spec_helper.rb +34 -0
  93. data/spec/rails2/rails_app/spec/rails_widget_spec.rb +83 -0
  94. data/spec/rails2/rails_app/spec/render_spec.rb +324 -0
  95. data/spec/rails2/rails_app/test/performance/browsing_test.rb +9 -0
  96. data/spec/rails2/rails_app/test/test_helper.rb +38 -0
  97. data/spec/rails2/rails_app/vendor/plugins/rails_xss/MIT-LICENSE +20 -0
  98. data/spec/rails2/rails_app/vendor/plugins/rails_xss/README.markdown +90 -0
  99. data/spec/rails2/rails_app/vendor/plugins/rails_xss/Rakefile +23 -0
  100. data/spec/rails2/rails_app/vendor/plugins/rails_xss/init.rb +7 -0
  101. data/spec/rails2/rails_app/vendor/plugins/rails_xss/lib/rails_xss.rb +3 -0
  102. data/spec/rails2/rails_app/vendor/plugins/rails_xss/lib/rails_xss/action_view.rb +87 -0
  103. data/spec/rails2/rails_app/vendor/plugins/rails_xss/lib/rails_xss/erubis.rb +33 -0
  104. data/spec/rails2/rails_app/vendor/plugins/rails_xss/lib/rails_xss/string_ext.rb +52 -0
  105. data/spec/rails2/rails_app/vendor/plugins/rails_xss/lib/tasks/rails_xss_tasks.rake +4 -0
  106. data/spec/rails2/rails_app/vendor/plugins/rails_xss/test/active_record_helper_test.rb +74 -0
  107. data/spec/rails2/rails_app/vendor/plugins/rails_xss/test/asset_tag_helper_test.rb +49 -0
  108. data/spec/rails2/rails_app/vendor/plugins/rails_xss/test/caching_test.rb +43 -0
  109. data/spec/rails2/rails_app/vendor/plugins/rails_xss/test/date_helper_test.rb +29 -0
  110. data/spec/rails2/rails_app/vendor/plugins/rails_xss/test/deprecated_output_safety_test.rb +112 -0
  111. data/spec/rails2/rails_app/vendor/plugins/rails_xss/test/erb_util_test.rb +36 -0
  112. data/spec/rails2/rails_app/vendor/plugins/rails_xss/test/form_helper_test.rb +1447 -0
  113. data/spec/rails2/rails_app/vendor/plugins/rails_xss/test/form_tag_helper_test.rb +354 -0
  114. data/spec/rails2/rails_app/vendor/plugins/rails_xss/test/output_safety_test.rb +115 -0
  115. data/spec/rails2/rails_app/vendor/plugins/rails_xss/test/rails_xss_test.rb +23 -0
  116. data/spec/rails2/rails_app/vendor/plugins/rails_xss/test/test_helper.rb +5 -0
  117. data/spec/rails2/rails_app/vendor/plugins/rails_xss/test/text_helper_test.rb +17 -0
  118. data/spec/spec_helper.rb +2 -6
  119. metadata +348 -23
  120. data/lib/erector/errors.rb +0 -12
  121. data/lib/erector/extensions/hash.rb +0 -21
  122. data/lib/erector/extensions/object.rb +0 -18
  123. data/lib/erector/rails/rails_version.rb +0 -6
  124. data/rails/init.rb +0 -4
@@ -0,0 +1,23 @@
1
+ require 'test_helper'
2
+
3
+ class RailsXssTest < ActiveSupport::TestCase
4
+ test "ERB::Util.h should mark its return value as safe and escape it" do
5
+ escaped = ERB::Util.h("<p>")
6
+ assert_equal "&lt;p&gt;", escaped
7
+ assert escaped.html_safe?
8
+ end
9
+
10
+ test "ERB::Util.h should leave previously safe strings alone " do
11
+ # TODO this seems easier to compose and reason about, but
12
+ # this should be verified
13
+ escaped = ERB::Util.h("<p>".html_safe)
14
+ assert_equal "<p>", escaped
15
+ assert escaped.html_safe?
16
+ end
17
+
18
+ test "ERB::Util.h should not implode when passed a non-string" do
19
+ assert_nothing_raised do
20
+ assert_equal "1", ERB::Util.h(1)
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,5 @@
1
+ abort 'RAILS_ROOT=/path/to/rails/2.3/app rake test' unless ENV['RAILS_ROOT']
2
+ require File.expand_path('config/environment', ENV['RAILS_ROOT'])
3
+ require File.expand_path('../../init', __FILE__)
4
+ require 'active_support/test_case'
5
+ require 'test/unit'
@@ -0,0 +1,17 @@
1
+ require 'test_helper'
2
+
3
+ class TextHelperTest < ActionView::TestCase
4
+
5
+ def setup
6
+ @controller = Class.new do
7
+ attr_accessor :request
8
+ def url_for(*args) "http://www.example.com" end
9
+ end.new
10
+ end
11
+
12
+ def test_simple_format_with_escaping_html_options
13
+ assert_dom_equal(%(<p class="intro">It's nice to have options.</p>),
14
+ simple_format("It's nice to have options.", :class=>"intro"))
15
+ end
16
+
17
+ end
@@ -1,11 +1,5 @@
1
1
  $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
2
2
 
3
- VENDOR_RAILS = "#{File.dirname(__FILE__)}/rails_root/vendor/rails"
4
- RAILS_LOAD_PATHS = Dir["#{VENDOR_RAILS}/*/lib"]
5
- RAILS_LOAD_PATHS.each do |path|
6
- $LOAD_PATH.unshift(File.expand_path(path))
7
- end
8
-
9
3
  require "rubygems"
10
4
  require "bundler"
11
5
  Bundler.setup
@@ -19,6 +13,8 @@ require "rspec"
19
13
  require "rspec/autorun"
20
14
  require "open3"
21
15
 
16
+ require "wrong/adapters/rspec"
17
+
22
18
  unless '1.9'.respond_to?(:force_encoding)
23
19
  String.class_eval do
24
20
  begin
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,15 +9,158 @@ authors:
9
9
  - Brian Takita
10
10
  - Jeff Dean
11
11
  - Jim Kingdon
12
+ - John Firebaugh
12
13
  autorequire:
13
14
  bindir: bin
14
15
  cert_chain: []
15
- date: 2011-02-16 00:00:00.000000000 -08:00
16
- default_executable: erector
16
+ date: 2011-07-23 00:00:00.000000000Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: treetop
20
- requirement: &2158316440 !ruby/object:Gem::Requirement
20
+ requirement: &2156352300 !ruby/object:Gem::Requirement
21
+ none: false
22
+ requirements:
23
+ - - ! '>='
24
+ - !ruby/object:Gem::Version
25
+ version: '0'
26
+ type: :runtime
27
+ prerelease: false
28
+ version_requirements: *2156352300
29
+ - !ruby/object:Gem::Dependency
30
+ name: rake
31
+ requirement: &2156348780 !ruby/object:Gem::Requirement
32
+ none: false
33
+ requirements:
34
+ - - ! '>='
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ type: :runtime
38
+ prerelease: false
39
+ version_requirements: *2156348780
40
+ - !ruby/object:Gem::Dependency
41
+ name: activesupport
42
+ requirement: &2156339520 !ruby/object:Gem::Requirement
43
+ none: false
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '3'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: *2156339520
51
+ - !ruby/object:Gem::Dependency
52
+ name: rspec
53
+ requirement: &2156327880 !ruby/object:Gem::Requirement
54
+ none: false
55
+ requirements:
56
+ - - ~>
57
+ - !ruby/object:Gem::Version
58
+ version: '2'
59
+ type: :development
60
+ prerelease: false
61
+ version_requirements: *2156327880
62
+ - !ruby/object:Gem::Dependency
63
+ name: rubyforge
64
+ requirement: &2156324400 !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: *2156324400
73
+ - !ruby/object:Gem::Dependency
74
+ name: rr
75
+ requirement: &2156313460 !ruby/object:Gem::Requirement
76
+ none: false
77
+ requirements:
78
+ - - ! '>='
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
81
+ type: :development
82
+ prerelease: false
83
+ version_requirements: *2156313460
84
+ - !ruby/object:Gem::Dependency
85
+ name: nokogiri
86
+ requirement: &2156305000 !ruby/object:Gem::Requirement
87
+ none: false
88
+ requirements:
89
+ - - ! '>='
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
92
+ type: :development
93
+ prerelease: false
94
+ version_requirements: *2156305000
95
+ - !ruby/object:Gem::Dependency
96
+ name: jeweler
97
+ requirement: &2156294560 !ruby/object:Gem::Requirement
98
+ none: false
99
+ requirements:
100
+ - - ! '>='
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ type: :development
104
+ prerelease: false
105
+ version_requirements: *2156294560
106
+ - !ruby/object:Gem::Dependency
107
+ name: haml
108
+ requirement: &2156278680 !ruby/object:Gem::Requirement
109
+ none: false
110
+ requirements:
111
+ - - ! '>='
112
+ - !ruby/object:Gem::Version
113
+ version: '0'
114
+ type: :development
115
+ prerelease: false
116
+ version_requirements: *2156278680
117
+ - !ruby/object:Gem::Dependency
118
+ name: sass
119
+ requirement: &2156269660 !ruby/object:Gem::Requirement
120
+ none: false
121
+ requirements:
122
+ - - ! '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ type: :development
126
+ prerelease: false
127
+ version_requirements: *2156269660
128
+ - !ruby/object:Gem::Dependency
129
+ name: erubis
130
+ requirement: &2156267940 !ruby/object:Gem::Requirement
131
+ none: false
132
+ requirements:
133
+ - - ! '>='
134
+ - !ruby/object:Gem::Version
135
+ version: '0'
136
+ type: :development
137
+ prerelease: false
138
+ version_requirements: *2156267940
139
+ - !ruby/object:Gem::Dependency
140
+ name: rdoc
141
+ requirement: &2156264860 !ruby/object:Gem::Requirement
142
+ none: false
143
+ requirements:
144
+ - - ~>
145
+ - !ruby/object:Gem::Version
146
+ version: '2.3'
147
+ type: :development
148
+ prerelease: false
149
+ version_requirements: *2156264860
150
+ - !ruby/object:Gem::Dependency
151
+ name: wrong
152
+ requirement: &2156249840 !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
158
+ type: :development
159
+ prerelease: false
160
+ version_requirements: *2156249840
161
+ - !ruby/object:Gem::Dependency
162
+ name: treetop
163
+ requirement: &2156238400 !ruby/object:Gem::Requirement
21
164
  none: false
22
165
  requirements:
23
166
  - - ! '>='
@@ -25,10 +168,10 @@ dependencies:
25
168
  version: 1.2.3
26
169
  type: :runtime
27
170
  prerelease: false
28
- version_requirements: *2158316440
171
+ version_requirements: *2156238400
29
172
  - !ruby/object:Gem::Dependency
30
173
  name: rake
31
- requirement: &2158315880 !ruby/object:Gem::Requirement
174
+ requirement: &2156215560 !ruby/object:Gem::Requirement
32
175
  none: false
33
176
  requirements:
34
177
  - - ! '>='
@@ -36,7 +179,7 @@ dependencies:
36
179
  version: '0'
37
180
  type: :runtime
38
181
  prerelease: false
39
- version_requirements: *2158315880
182
+ version_requirements: *2156215560
40
183
  description: Erector is a Builder-like view framework, inspired by Markaby but overcoming
41
184
  some of its flaws. In Erector all views are objects, not template files, which allows
42
185
  the full power of object-oriented programming (inheritance, modular decomposition,
@@ -62,9 +205,6 @@ files:
62
205
  - lib/erector/erect/erected.rb
63
206
  - lib/erector/erect/indenting.rb
64
207
  - lib/erector/erect/rhtml.treetop
65
- - lib/erector/errors.rb
66
- - lib/erector/extensions/hash.rb
67
- - lib/erector/extensions/object.rb
68
208
  - lib/erector/externals.rb
69
209
  - lib/erector/html.rb
70
210
  - lib/erector/inline.rb
@@ -73,13 +213,19 @@ files:
73
213
  - lib/erector/needs.rb
74
214
  - lib/erector/output.rb
75
215
  - lib/erector/rails.rb
76
- - lib/erector/rails/extensions/action_controller.rb
77
- - lib/erector/rails/extensions/rails_helpers.rb
78
- - lib/erector/rails/extensions/rails_widget.rb
79
- - lib/erector/rails/rails_form_builder.rb
80
- - lib/erector/rails/rails_version.rb
81
- - lib/erector/rails/template_handlers/ert_handler.rb
82
- - lib/erector/rails/template_handlers/rb_handler.rb
216
+ - lib/erector/rails/form_builder.rb
217
+ - lib/erector/rails/railtie.rb
218
+ - lib/erector/rails/template_handler.rb
219
+ - lib/erector/rails/widget_renderer.rb
220
+ - lib/erector/rails2.rb
221
+ - lib/erector/rails2/extensions/action_controller.rb
222
+ - lib/erector/rails2/extensions/rails_helpers.rb
223
+ - lib/erector/rails2/extensions/rails_widget.rb
224
+ - lib/erector/rails2/rails_form_builder.rb
225
+ - lib/erector/rails2/rails_version.rb
226
+ - lib/erector/rails2/template_handlers/ert_handler.rb
227
+ - lib/erector/rails2/template_handlers/rb_handler.rb
228
+ - lib/erector/rails3.rb
83
229
  - lib/erector/raw_string.rb
84
230
  - lib/erector/sass.rb
85
231
  - lib/erector/unicode.rb
@@ -93,7 +239,6 @@ files:
93
239
  - lib/erector/widgets/form.rb
94
240
  - lib/erector/widgets/page.rb
95
241
  - lib/erector/widgets/table.rb
96
- - rails/init.rb
97
242
  - spec/erect/erect_rails_spec.rb
98
243
  - spec/erect/erect_spec.rb
99
244
  - spec/erect/erected_spec.rb
@@ -119,13 +264,102 @@ files:
119
264
  - spec/erector/widgets/form_spec.rb
120
265
  - spec/erector/widgets/page_spec.rb
121
266
  - spec/erector/widgets/table_spec.rb
267
+ - spec/rails2/erect_rails_spec.rb
268
+ - spec/rails2/rails_app/app/controllers/application_controller.rb
269
+ - spec/rails2/rails_app/app/helpers/application_helper.rb
270
+ - spec/rails2/rails_app/app/views/test/_erb.erb
271
+ - spec/rails2/rails_app/app/views/test/_erector.rb
272
+ - spec/rails2/rails_app/app/views/test/_partial_with_locals.rb
273
+ - spec/rails2/rails_app/app/views/test/bare.rb
274
+ - spec/rails2/rails_app/app/views/test/erb_from_erector.html.rb
275
+ - spec/rails2/rails_app/app/views/test/erector_from_erb.html.erb
276
+ - spec/rails2/rails_app/app/views/test/erector_with_locals_from_erb.html.erb
277
+ - spec/rails2/rails_app/app/views/test/implicit_assigns.html.rb
278
+ - spec/rails2/rails_app/app/views/test/needs.html.rb
279
+ - spec/rails2/rails_app/app/views/test/needs_subclass.html.rb
280
+ - spec/rails2/rails_app/app/views/test/protected_instance_variable.html.rb
281
+ - spec/rails2/rails_app/app/views/test/render_default.html.rb
282
+ - spec/rails2/rails_app/app/views/test/render_partial.html.rb
283
+ - spec/rails2/rails_app/config/boot.rb
284
+ - spec/rails2/rails_app/config/database.yml
285
+ - spec/rails2/rails_app/config/environment.rb
286
+ - spec/rails2/rails_app/config/environments/development.rb
287
+ - spec/rails2/rails_app/config/environments/production.rb
288
+ - spec/rails2/rails_app/config/environments/test.rb
289
+ - spec/rails2/rails_app/config/initializers/backtrace_silencers.rb
290
+ - spec/rails2/rails_app/config/initializers/cookie_verification_secret.rb
291
+ - spec/rails2/rails_app/config/initializers/inflections.rb
292
+ - spec/rails2/rails_app/config/initializers/mime_types.rb
293
+ - spec/rails2/rails_app/config/initializers/new_rails_defaults.rb
294
+ - spec/rails2/rails_app/config/initializers/session_store.rb
295
+ - spec/rails2/rails_app/config/locales/en.yml
296
+ - spec/rails2/rails_app/config/routes.rb
297
+ - spec/rails2/rails_app/db/development.sqlite3
298
+ - spec/rails2/rails_app/db/schema.rb
299
+ - spec/rails2/rails_app/db/seeds.rb
300
+ - spec/rails2/rails_app/doc/README_FOR_APP
301
+ - spec/rails2/rails_app/Gemfile
302
+ - spec/rails2/rails_app/Gemfile.lock
303
+ - spec/rails2/rails_app/log/development.log
304
+ - spec/rails2/rails_app/log/production.log
305
+ - spec/rails2/rails_app/log/server.log
306
+ - spec/rails2/rails_app/log/test.log
307
+ - spec/rails2/rails_app/public/404.html
308
+ - spec/rails2/rails_app/public/422.html
309
+ - spec/rails2/rails_app/public/500.html
310
+ - spec/rails2/rails_app/public/favicon.ico
311
+ - spec/rails2/rails_app/public/images/rails.png
312
+ - spec/rails2/rails_app/public/index.html
313
+ - spec/rails2/rails_app/public/javascripts/application.js
314
+ - spec/rails2/rails_app/public/javascripts/controls.js
315
+ - spec/rails2/rails_app/public/javascripts/dragdrop.js
316
+ - spec/rails2/rails_app/public/javascripts/effects.js
317
+ - spec/rails2/rails_app/public/javascripts/prototype.js
318
+ - spec/rails2/rails_app/public/robots.txt
319
+ - spec/rails2/rails_app/Rakefile
320
+ - spec/rails2/rails_app/README
321
+ - spec/rails2/rails_app/script/about
322
+ - spec/rails2/rails_app/script/console
323
+ - spec/rails2/rails_app/script/dbconsole
324
+ - spec/rails2/rails_app/script/destroy
325
+ - spec/rails2/rails_app/script/generate
326
+ - spec/rails2/rails_app/script/performance/benchmarker
327
+ - spec/rails2/rails_app/script/performance/profiler
328
+ - spec/rails2/rails_app/script/plugin
329
+ - spec/rails2/rails_app/script/runner
330
+ - spec/rails2/rails_app/script/server
331
+ - spec/rails2/rails_app/spec/rails_helpers_spec.rb
332
+ - spec/rails2/rails_app/spec/rails_spec_helper.rb
333
+ - spec/rails2/rails_app/spec/rails_widget_spec.rb
334
+ - spec/rails2/rails_app/spec/render_spec.rb
335
+ - spec/rails2/rails_app/test/performance/browsing_test.rb
336
+ - spec/rails2/rails_app/test/test_helper.rb
337
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/init.rb
338
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/lib/rails_xss/action_view.rb
339
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/lib/rails_xss/erubis.rb
340
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/lib/rails_xss/string_ext.rb
341
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/lib/rails_xss.rb
342
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/lib/tasks/rails_xss_tasks.rake
343
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/MIT-LICENSE
344
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/Rakefile
345
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/README.markdown
346
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/test/active_record_helper_test.rb
347
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/test/asset_tag_helper_test.rb
348
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/test/caching_test.rb
349
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/test/date_helper_test.rb
350
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/test/deprecated_output_safety_test.rb
351
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/test/erb_util_test.rb
352
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/test/form_helper_test.rb
353
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/test/form_tag_helper_test.rb
354
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/test/output_safety_test.rb
355
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/test/rails_xss_test.rb
356
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/test/test_helper.rb
357
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/test/text_helper_test.rb
122
358
  - spec/spec_helper.rb
123
- has_rdoc: true
124
359
  homepage: http://erector.rubyforge.org/
125
360
  licenses: []
126
361
  post_install_message:
127
- rdoc_options:
128
- - --charset=UTF-8
362
+ rdoc_options: []
129
363
  require_paths:
130
364
  - lib
131
365
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -136,7 +370,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
136
370
  version: '0'
137
371
  segments:
138
372
  - 0
139
- hash: 3942824524895088224
373
+ hash: -2892608317364591105
140
374
  required_rubygems_version: !ruby/object:Gem::Requirement
141
375
  none: false
142
376
  requirements:
@@ -145,7 +379,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
379
  version: '0'
146
380
  requirements: []
147
381
  rubyforge_project: erector
148
- rubygems_version: 1.5.2
382
+ rubygems_version: 1.8.5
149
383
  signing_key:
150
384
  specification_version: 3
151
385
  summary: Html Builder library.
@@ -175,4 +409,95 @@ test_files:
175
409
  - spec/erector/widgets/form_spec.rb
176
410
  - spec/erector/widgets/page_spec.rb
177
411
  - spec/erector/widgets/table_spec.rb
412
+ - spec/rails2/erect_rails_spec.rb
413
+ - spec/rails2/rails_app/app/controllers/application_controller.rb
414
+ - spec/rails2/rails_app/app/helpers/application_helper.rb
415
+ - spec/rails2/rails_app/app/views/test/_erb.erb
416
+ - spec/rails2/rails_app/app/views/test/_erector.rb
417
+ - spec/rails2/rails_app/app/views/test/_partial_with_locals.rb
418
+ - spec/rails2/rails_app/app/views/test/bare.rb
419
+ - spec/rails2/rails_app/app/views/test/erb_from_erector.html.rb
420
+ - spec/rails2/rails_app/app/views/test/erector_from_erb.html.erb
421
+ - spec/rails2/rails_app/app/views/test/erector_with_locals_from_erb.html.erb
422
+ - spec/rails2/rails_app/app/views/test/implicit_assigns.html.rb
423
+ - spec/rails2/rails_app/app/views/test/needs.html.rb
424
+ - spec/rails2/rails_app/app/views/test/needs_subclass.html.rb
425
+ - spec/rails2/rails_app/app/views/test/protected_instance_variable.html.rb
426
+ - spec/rails2/rails_app/app/views/test/render_default.html.rb
427
+ - spec/rails2/rails_app/app/views/test/render_partial.html.rb
428
+ - spec/rails2/rails_app/config/boot.rb
429
+ - spec/rails2/rails_app/config/database.yml
430
+ - spec/rails2/rails_app/config/environment.rb
431
+ - spec/rails2/rails_app/config/environments/development.rb
432
+ - spec/rails2/rails_app/config/environments/production.rb
433
+ - spec/rails2/rails_app/config/environments/test.rb
434
+ - spec/rails2/rails_app/config/initializers/backtrace_silencers.rb
435
+ - spec/rails2/rails_app/config/initializers/cookie_verification_secret.rb
436
+ - spec/rails2/rails_app/config/initializers/inflections.rb
437
+ - spec/rails2/rails_app/config/initializers/mime_types.rb
438
+ - spec/rails2/rails_app/config/initializers/new_rails_defaults.rb
439
+ - spec/rails2/rails_app/config/initializers/session_store.rb
440
+ - spec/rails2/rails_app/config/locales/en.yml
441
+ - spec/rails2/rails_app/config/routes.rb
442
+ - spec/rails2/rails_app/db/development.sqlite3
443
+ - spec/rails2/rails_app/db/schema.rb
444
+ - spec/rails2/rails_app/db/seeds.rb
445
+ - spec/rails2/rails_app/doc/README_FOR_APP
446
+ - spec/rails2/rails_app/Gemfile
447
+ - spec/rails2/rails_app/Gemfile.lock
448
+ - spec/rails2/rails_app/log/development.log
449
+ - spec/rails2/rails_app/log/production.log
450
+ - spec/rails2/rails_app/log/server.log
451
+ - spec/rails2/rails_app/log/test.log
452
+ - spec/rails2/rails_app/public/404.html
453
+ - spec/rails2/rails_app/public/422.html
454
+ - spec/rails2/rails_app/public/500.html
455
+ - spec/rails2/rails_app/public/favicon.ico
456
+ - spec/rails2/rails_app/public/images/rails.png
457
+ - spec/rails2/rails_app/public/index.html
458
+ - spec/rails2/rails_app/public/javascripts/application.js
459
+ - spec/rails2/rails_app/public/javascripts/controls.js
460
+ - spec/rails2/rails_app/public/javascripts/dragdrop.js
461
+ - spec/rails2/rails_app/public/javascripts/effects.js
462
+ - spec/rails2/rails_app/public/javascripts/prototype.js
463
+ - spec/rails2/rails_app/public/robots.txt
464
+ - spec/rails2/rails_app/Rakefile
465
+ - spec/rails2/rails_app/README
466
+ - spec/rails2/rails_app/script/about
467
+ - spec/rails2/rails_app/script/console
468
+ - spec/rails2/rails_app/script/dbconsole
469
+ - spec/rails2/rails_app/script/destroy
470
+ - spec/rails2/rails_app/script/generate
471
+ - spec/rails2/rails_app/script/performance/benchmarker
472
+ - spec/rails2/rails_app/script/performance/profiler
473
+ - spec/rails2/rails_app/script/plugin
474
+ - spec/rails2/rails_app/script/runner
475
+ - spec/rails2/rails_app/script/server
476
+ - spec/rails2/rails_app/spec/rails_helpers_spec.rb
477
+ - spec/rails2/rails_app/spec/rails_spec_helper.rb
478
+ - spec/rails2/rails_app/spec/rails_widget_spec.rb
479
+ - spec/rails2/rails_app/spec/render_spec.rb
480
+ - spec/rails2/rails_app/test/performance/browsing_test.rb
481
+ - spec/rails2/rails_app/test/test_helper.rb
482
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/init.rb
483
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/lib/rails_xss/action_view.rb
484
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/lib/rails_xss/erubis.rb
485
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/lib/rails_xss/string_ext.rb
486
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/lib/rails_xss.rb
487
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/lib/tasks/rails_xss_tasks.rake
488
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/MIT-LICENSE
489
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/Rakefile
490
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/README.markdown
491
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/test/active_record_helper_test.rb
492
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/test/asset_tag_helper_test.rb
493
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/test/caching_test.rb
494
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/test/date_helper_test.rb
495
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/test/deprecated_output_safety_test.rb
496
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/test/erb_util_test.rb
497
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/test/form_helper_test.rb
498
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/test/form_tag_helper_test.rb
499
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/test/output_safety_test.rb
500
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/test/rails_xss_test.rb
501
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/test/test_helper.rb
502
+ - spec/rails2/rails_app/vendor/plugins/rails_xss/test/text_helper_test.rb
178
503
  - spec/spec_helper.rb