erector-rails4 0.1.3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.coveralls.yml +1 -1
- data/.travis.yml +1 -1
- data/Appraisals +4 -1
- data/Guardfile +23 -0
- data/README.md +6 -1
- data/erector-rails4.gemspec +10 -3
- data/gemfiles/rails_3.gemfile +1 -0
- data/gemfiles/rails_4.0.gemfile +1 -0
- data/gemfiles/rails_4.1.gemfile +2 -1
- data/lib/erector-rails4.rb +1 -0
- data/lib/erector.rb +1 -4
- data/lib/erector/abstract_widget.rb +1 -12
- data/lib/erector/after_initialize.rb +7 -7
- data/lib/erector/caching.rb +35 -71
- data/lib/erector/element.rb +4 -4
- data/lib/erector/externals.rb +0 -8
- data/lib/erector/html_widget.rb +0 -11
- data/lib/erector/needs.rb +20 -9
- data/lib/erector/output.rb +2 -4
- data/lib/erector/promise.rb +4 -4
- data/lib/erector/rails.rb +6 -1
- data/lib/erector/rails/autoload_monkeypatch.rb +1 -1
- data/lib/erector/rails/railtie.rb +15 -8
- data/lib/erector/rails/template_handler.rb +2 -1
- data/lib/erector/text.rb +4 -8
- data/lib/erector/version.rb +1 -1
- data/lib/erector/widget.rb +2 -11
- data/lib/erector/xml_widget.rb +14 -18
- data/script/bootstrap +30 -0
- data/script/cibuild +3 -0
- data/script/performance +3 -0
- data/script/release +38 -0
- data/spec/dummy/app/views/test/_partial_with_rails_helpers.rb +7 -0
- data/spec/dummy/app/views/test/_user.rb +7 -0
- data/spec/dummy/app/views/test/_virtual_path_partial.rb +5 -0
- data/spec/dummy/app/views/test/erb_from_erector.html.rb +1 -1
- data/spec/dummy/app/views/test/erector_with_helpers_from_erb.html.erb +1 -0
- data/spec/dummy/app/views/test/{needs.html.rb → needs.rb} +0 -0
- data/spec/dummy/app/views/test/{needs_subclass.html.rb → needs_subclass.rb} +0 -0
- data/spec/dummy/app/views/test/render_partial.html.rb +1 -1
- data/spec/dummy/app/views/test/render_virtual_path.rb +7 -0
- data/spec/dummy/app/views/test/users.rb +9 -0
- data/spec/dummy/app/views/test_caching/_foos.rb +7 -0
- data/spec/dummy/app/views/test_caching/_partial.rb +9 -0
- data/spec/dummy/app/views/test_caching/cache_helper.rb +9 -0
- data/spec/dummy/app/views/test_caching/cache_helper_with_explicit_dependencies.rb +7 -0
- data/spec/dummy/app/views/test_caching/cache_helper_with_implicit_dependencies.rb +7 -0
- data/spec/dummy/app/views/test_caching/cache_helper_with_partial.rb +10 -0
- data/spec/dummy/app/views/test_caching/cache_helper_with_skip_digest.rb +9 -0
- data/spec/dummy/app/views/test_caching/cacheable_widget_with_dynamic_keys.rb +13 -0
- data/spec/dummy/app/views/test_caching/cacheable_widget_with_needs.rb +11 -0
- data/spec/dummy/app/views/test_caching/cacheable_widget_with_needs_keys.rb +11 -0
- data/spec/dummy/app/views/test_caching/cacheable_widget_with_skip_digest.rb +9 -0
- data/spec/dummy/app/views/test_caching/cacheable_widget_with_static_keys.rb +9 -0
- data/spec/dummy/config/application.rb +1 -1
- data/spec/dummy/spec/autoload_spec.rb +2 -2
- data/spec/dummy/spec/caching_spec.rb +180 -0
- data/spec/dummy/spec/form_builder_spec.rb +1 -1
- data/spec/dummy/spec/rails_helpers_spec.rb +21 -13
- data/spec/dummy/spec/rails_widget_spec.rb +1 -1
- data/spec/dummy/spec/render_spec.rb +23 -42
- data/spec/erector/dependency_spec.rb +0 -1
- data/spec/erector/html_spec.rb +4 -4
- data/spec/erector/indentation_spec.rb +2 -2
- data/spec/erector/needs_spec.rb +33 -0
- data/spec/erector/output_spec.rb +0 -2
- data/spec/erector/promise_spec.rb +2 -2
- data/spec/erector/widget_spec.rb +2 -2
- data/spec/performance/allocation_spec.rb +19 -0
- data/spec/performance/ruby_prof_spec.rb +23 -0
- data/spec/performance/widget_to_html_spec.rb +11 -5
- data/spec/spec_helper.rb +1 -10
- data/spec/support/capturing_output.rb +8 -0
- metadata +116 -17
- data/lib/erector/cache.rb +0 -41
- data/lib/erector/raw_string.rb +0 -12
- data/spec/dummy/spec/rails_spec_helper.rb +0 -10
- data/spec/erector/cache_spec.rb +0 -133
- data/spec/erector/caching_spec.rb +0 -202
data/spec/erector/html_spec.rb
CHANGED
@@ -159,7 +159,7 @@ describe Erector::HTML do
|
|
159
159
|
object = ['a', 'b']
|
160
160
|
erector do
|
161
161
|
element 'div', object
|
162
|
-
end.should == "<div>#{CGI
|
162
|
+
end.should == "<div>#{CGI::escapeHTML object.to_s}</div>"
|
163
163
|
end
|
164
164
|
end
|
165
165
|
|
@@ -273,7 +273,7 @@ describe Erector::HTML do
|
|
273
273
|
element 'a' do
|
274
274
|
text array
|
275
275
|
end
|
276
|
-
end.should == "<a>#{CGI
|
276
|
+
end.should == "<a>#{CGI::escapeHTML array.to_s}</a>"
|
277
277
|
end
|
278
278
|
end
|
279
279
|
end
|
@@ -466,9 +466,9 @@ describe Erector::HTML do
|
|
466
466
|
erector { rawtext plain }.should == plain
|
467
467
|
end
|
468
468
|
end
|
469
|
-
describe "#
|
469
|
+
describe "#rawtext" do
|
470
470
|
it "doesn't HTML escape its param" do
|
471
|
-
erector {
|
471
|
+
erector { rawtext plain }.should == plain
|
472
472
|
end
|
473
473
|
end
|
474
474
|
describe "#element" do
|
@@ -8,8 +8,8 @@ describe "indentation" do
|
|
8
8
|
widget.instance_eval do
|
9
9
|
@prettyprint = true
|
10
10
|
end
|
11
|
-
widget.send(:newliney?, "i").should == false
|
12
|
-
widget.send(:newliney?, "table").should == true
|
11
|
+
widget.class.send(:newliney?, "i").should == false
|
12
|
+
widget.class.send(:newliney?, "table").should == true
|
13
13
|
end
|
14
14
|
|
15
15
|
it "should not add newline for non-newliney tags" do
|
data/spec/erector/needs_spec.rb
CHANGED
@@ -15,6 +15,14 @@ describe Erector::Needs do
|
|
15
15
|
lambda { Thing2.new(:foo => 1) }.should raise_error(ArgumentError)
|
16
16
|
end
|
17
17
|
|
18
|
+
it "doesn't support needs 'string'" do
|
19
|
+
expect {
|
20
|
+
class Thing2 < Erector::Widget
|
21
|
+
needs 'asdf'
|
22
|
+
end
|
23
|
+
}.to raise_error
|
24
|
+
end
|
25
|
+
|
18
26
|
it "doesn't complain if you pass it a declared parameter" do
|
19
27
|
class Thing2b < Erector::Widget
|
20
28
|
needs :foo
|
@@ -98,6 +106,21 @@ describe Erector::Needs do
|
|
98
106
|
}.should_not raise_error
|
99
107
|
end
|
100
108
|
|
109
|
+
it "allows nil to be overridden by subclasses" do
|
110
|
+
class Thing10 < Erector::Widget
|
111
|
+
needs :title,
|
112
|
+
id: nil,
|
113
|
+
html_opts: {}
|
114
|
+
end
|
115
|
+
class Thing11 < Thing10
|
116
|
+
needs id: 'newProjectModal', title: 'asdf'
|
117
|
+
end
|
118
|
+
lambda {
|
119
|
+
thing = Thing11.new
|
120
|
+
thing.instance_variable_get(:@id).should eq 'newProjectModal'
|
121
|
+
}.should_not raise_error
|
122
|
+
end
|
123
|
+
|
101
124
|
it "doesn't attempt to dup undupable value if there's another need passed in (bug)" do
|
102
125
|
class Section < Erector::Widget
|
103
126
|
needs :title, :href => nil, :stinky => false, :awesome => true, :answer => 42, :shoe_size => 12.5, :event_type => :jump
|
@@ -138,4 +161,14 @@ describe Erector::Needs do
|
|
138
161
|
end
|
139
162
|
lambda { ThingWithOverlap.new(:text => "alas") }.should_not raise_error
|
140
163
|
end
|
164
|
+
|
165
|
+
# https://github.com/ajb/erector-rails4/issues/23
|
166
|
+
# ...but this is passing?
|
167
|
+
it 'can need variables of the same name as the class' do
|
168
|
+
class Post < Erector::Widget
|
169
|
+
needs :post
|
170
|
+
end
|
171
|
+
view = Post.new(post: { foo: 'bar' })
|
172
|
+
view.instance_variable_get(:@post)[:foo].should == 'bar'
|
173
|
+
end
|
141
174
|
end
|
data/spec/erector/output_spec.rb
CHANGED
@@ -73,10 +73,10 @@ module Erector
|
|
73
73
|
@output.to_s.should == "<foo />"
|
74
74
|
end
|
75
75
|
|
76
|
-
it "renders
|
76
|
+
it "renders html_safe strings for open and close" do
|
77
77
|
promise = Promise.new(@output, "foo")
|
78
78
|
promise._render
|
79
|
-
@buffer.each{|s| s.should
|
79
|
+
@buffer.each{|s| s.should be_html_safe}
|
80
80
|
end
|
81
81
|
|
82
82
|
it "fills its target with attributes" do
|
data/spec/erector/widget_spec.rb
CHANGED
@@ -201,12 +201,12 @@ module WidgetSpec
|
|
201
201
|
end.should == '<div><p>Captured Content</p></div>'
|
202
202
|
end
|
203
203
|
|
204
|
-
it "returns
|
204
|
+
it "returns an html_safe string" do
|
205
205
|
captured = nil
|
206
206
|
erector do
|
207
207
|
captured = capture_content {}
|
208
208
|
end.should == ""
|
209
|
-
captured.should
|
209
|
+
captured.should be_html_safe
|
210
210
|
end
|
211
211
|
|
212
212
|
it "works with nested captures" do
|
@@ -0,0 +1,19 @@
|
|
1
|
+
describe 'Allocation', performance: true do
|
2
|
+
|
3
|
+
it 'takes time' do
|
4
|
+
require 'spec_helper'
|
5
|
+
require 'allocation_stats'
|
6
|
+
require_relative 'support/basic_widget'
|
7
|
+
|
8
|
+
stats = AllocationStats.trace do
|
9
|
+
Erector.inline {
|
10
|
+
div(class: 'foo') {
|
11
|
+
p 'Hey!'
|
12
|
+
}
|
13
|
+
}.to_html
|
14
|
+
end
|
15
|
+
|
16
|
+
puts stats.allocations(alias_paths: true).group_by(:sourcefile, :sourceline, :class).to_text
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
describe 'Ruby Prof', performance: true do
|
2
|
+
|
3
|
+
it 'takes time' do
|
4
|
+
require 'spec_helper'
|
5
|
+
require 'ruby-prof'
|
6
|
+
require_relative 'support/basic_widget'
|
7
|
+
|
8
|
+
result = RubyProf.profile do
|
9
|
+
Erector.inline {
|
10
|
+
div(class: 'foo') {
|
11
|
+
p 'Hey!'
|
12
|
+
}
|
13
|
+
}.to_html
|
14
|
+
end
|
15
|
+
|
16
|
+
printer = RubyProf::GraphPrinter.new(result)
|
17
|
+
printer.print(STDOUT, sort_method: :self_time)
|
18
|
+
|
19
|
+
printer2 = RubyProf::FlatPrinter.new(result)
|
20
|
+
printer2.print(STDOUT, sort_method: :self_time)
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
@@ -1,10 +1,16 @@
|
|
1
|
-
|
2
|
-
require_relative 'support/basic_widget'
|
1
|
+
describe 'Widget to HTML', performance: true do
|
3
2
|
|
4
|
-
|
3
|
+
it 'takes time' do
|
4
|
+
require 'spec_helper'
|
5
|
+
require_relative 'support/basic_widget'
|
5
6
|
|
6
|
-
|
7
|
-
|
7
|
+
Benchmark.bmbm do |x|
|
8
|
+
x.report('BasicWidget#to_html') do
|
9
|
+
100.times do
|
10
|
+
BasicWidget.new.to_html
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
8
14
|
end
|
9
15
|
|
10
16
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -18,14 +18,5 @@ require 'rspec/rails'
|
|
18
18
|
Dir[Rails.root.join("../../spec/support/**/*.rb")].each {|f| require f}
|
19
19
|
|
20
20
|
RSpec.configure do |config|
|
21
|
-
|
22
|
-
end
|
23
|
-
|
24
|
-
def capturing_output
|
25
|
-
output = StringIO.new
|
26
|
-
$stdout = output
|
27
|
-
yield
|
28
|
-
output.string
|
29
|
-
ensure
|
30
|
-
$stdout = STDOUT
|
21
|
+
config.filter_run_excluding performance: true
|
31
22
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: erector-rails4
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Chaffee
|
@@ -13,10 +13,10 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2014-
|
16
|
+
date: 2014-10-10 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
|
-
name:
|
19
|
+
name: activesupport
|
20
20
|
requirement: !ruby/object:Gem::Requirement
|
21
21
|
requirements:
|
22
22
|
- - ">="
|
@@ -85,6 +85,20 @@ dependencies:
|
|
85
85
|
- - '='
|
86
86
|
- !ruby/object:Gem::Version
|
87
87
|
version: 4.0.5
|
88
|
+
- !ruby/object:Gem::Dependency
|
89
|
+
name: guard-rspec
|
90
|
+
requirement: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - '='
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: 4.3.1
|
95
|
+
type: :development
|
96
|
+
prerelease: false
|
97
|
+
version_requirements: !ruby/object:Gem::Requirement
|
98
|
+
requirements:
|
99
|
+
- - '='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 4.3.1
|
88
102
|
- !ruby/object:Gem::Dependency
|
89
103
|
name: nokogiri
|
90
104
|
requirement: !ruby/object:Gem::Requirement
|
@@ -99,6 +113,20 @@ dependencies:
|
|
99
113
|
- - '='
|
100
114
|
- !ruby/object:Gem::Version
|
101
115
|
version: 1.6.1
|
116
|
+
- !ruby/object:Gem::Dependency
|
117
|
+
name: rails
|
118
|
+
requirement: !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: 3.0.0
|
123
|
+
type: :development
|
124
|
+
prerelease: false
|
125
|
+
version_requirements: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - ">="
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: 3.0.0
|
102
130
|
- !ruby/object:Gem::Dependency
|
103
131
|
name: rr
|
104
132
|
requirement: !ruby/object:Gem::Requirement
|
@@ -183,6 +211,34 @@ dependencies:
|
|
183
211
|
- - '='
|
184
212
|
- !ruby/object:Gem::Version
|
185
213
|
version: 0.7.1
|
214
|
+
- !ruby/object:Gem::Dependency
|
215
|
+
name: allocation_stats
|
216
|
+
requirement: !ruby/object:Gem::Requirement
|
217
|
+
requirements:
|
218
|
+
- - '='
|
219
|
+
- !ruby/object:Gem::Version
|
220
|
+
version: 0.1.5
|
221
|
+
type: :development
|
222
|
+
prerelease: false
|
223
|
+
version_requirements: !ruby/object:Gem::Requirement
|
224
|
+
requirements:
|
225
|
+
- - '='
|
226
|
+
- !ruby/object:Gem::Version
|
227
|
+
version: 0.1.5
|
228
|
+
- !ruby/object:Gem::Dependency
|
229
|
+
name: ruby-prof
|
230
|
+
requirement: !ruby/object:Gem::Requirement
|
231
|
+
requirements:
|
232
|
+
- - '='
|
233
|
+
- !ruby/object:Gem::Version
|
234
|
+
version: 0.15.1
|
235
|
+
type: :development
|
236
|
+
prerelease: false
|
237
|
+
version_requirements: !ruby/object:Gem::Requirement
|
238
|
+
requirements:
|
239
|
+
- - '='
|
240
|
+
- !ruby/object:Gem::Version
|
241
|
+
version: 0.15.1
|
186
242
|
description: This is a fork of Erector, updated for Rails 4.
|
187
243
|
email: adam@dobt.co
|
188
244
|
executables: []
|
@@ -195,6 +251,7 @@ files:
|
|
195
251
|
- ".travis.yml"
|
196
252
|
- Appraisals
|
197
253
|
- Gemfile
|
254
|
+
- Guardfile
|
198
255
|
- LICENSE.md
|
199
256
|
- README.md
|
200
257
|
- Rakefile
|
@@ -202,11 +259,11 @@ files:
|
|
202
259
|
- gemfiles/rails_3.gemfile
|
203
260
|
- gemfiles/rails_4.0.gemfile
|
204
261
|
- gemfiles/rails_4.1.gemfile
|
262
|
+
- lib/erector-rails4.rb
|
205
263
|
- lib/erector.rb
|
206
264
|
- lib/erector/abstract_widget.rb
|
207
265
|
- lib/erector/after_initialize.rb
|
208
266
|
- lib/erector/attributes.rb
|
209
|
-
- lib/erector/cache.rb
|
210
267
|
- lib/erector/caching.rb
|
211
268
|
- lib/erector/convenience.rb
|
212
269
|
- lib/erector/dependencies.rb
|
@@ -228,7 +285,6 @@ files:
|
|
228
285
|
- lib/erector/rails/railtie.rb
|
229
286
|
- lib/erector/rails/template_handler.rb
|
230
287
|
- lib/erector/rails/widget_renderer.rb
|
231
|
-
- lib/erector/raw_string.rb
|
232
288
|
- lib/erector/sass.rb
|
233
289
|
- lib/erector/tag.rb
|
234
290
|
- lib/erector/text.rb
|
@@ -238,6 +294,10 @@ files:
|
|
238
294
|
- lib/erector/widget.rb
|
239
295
|
- lib/erector/widgets.rb
|
240
296
|
- lib/erector/xml_widget.rb
|
297
|
+
- script/bootstrap
|
298
|
+
- script/cibuild
|
299
|
+
- script/performance
|
300
|
+
- script/release
|
241
301
|
- spec/dummy/Rakefile
|
242
302
|
- spec/dummy/app/controllers/application.rb
|
243
303
|
- spec/dummy/app/controllers/application_controller.rb
|
@@ -247,21 +307,39 @@ files:
|
|
247
307
|
- spec/dummy/app/views/test/_erb.erb
|
248
308
|
- spec/dummy/app/views/test/_erector.rb
|
249
309
|
- spec/dummy/app/views/test/_partial_with_locals.rb
|
310
|
+
- spec/dummy/app/views/test/_partial_with_rails_helpers.rb
|
311
|
+
- spec/dummy/app/views/test/_user.rb
|
312
|
+
- spec/dummy/app/views/test/_virtual_path_partial.rb
|
250
313
|
- spec/dummy/app/views/test/bare.rb
|
251
314
|
- spec/dummy/app/views/test/erb_from_erector.html.rb
|
252
315
|
- spec/dummy/app/views/test/erector_from_erb.html.erb
|
316
|
+
- spec/dummy/app/views/test/erector_with_helpers_from_erb.html.erb
|
253
317
|
- spec/dummy/app/views/test/erector_with_locals_from_erb.html.erb
|
254
318
|
- spec/dummy/app/views/test/implicit_assigns.html.rb
|
255
|
-
- spec/dummy/app/views/test/needs.
|
256
|
-
- spec/dummy/app/views/test/needs_subclass.
|
319
|
+
- spec/dummy/app/views/test/needs.rb
|
320
|
+
- spec/dummy/app/views/test/needs_subclass.rb
|
257
321
|
- spec/dummy/app/views/test/protected_instance_variable.html.rb
|
258
322
|
- spec/dummy/app/views/test/render_default.html.rb
|
259
323
|
- spec/dummy/app/views/test/render_default_erb_with_layout.html.erb
|
260
324
|
- spec/dummy/app/views/test/render_default_widget_with_layout.html.rb
|
261
325
|
- spec/dummy/app/views/test/render_partial.html.rb
|
326
|
+
- spec/dummy/app/views/test/render_virtual_path.rb
|
262
327
|
- spec/dummy/app/views/test/render_with_widget_as_layout.rb
|
263
328
|
- spec/dummy/app/views/test/render_with_widget_as_layout_using_content_for.rb
|
264
329
|
- spec/dummy/app/views/test/simple_form.html.rb
|
330
|
+
- spec/dummy/app/views/test/users.rb
|
331
|
+
- spec/dummy/app/views/test_caching/_foos.rb
|
332
|
+
- spec/dummy/app/views/test_caching/_partial.rb
|
333
|
+
- spec/dummy/app/views/test_caching/cache_helper.rb
|
334
|
+
- spec/dummy/app/views/test_caching/cache_helper_with_explicit_dependencies.rb
|
335
|
+
- spec/dummy/app/views/test_caching/cache_helper_with_implicit_dependencies.rb
|
336
|
+
- spec/dummy/app/views/test_caching/cache_helper_with_partial.rb
|
337
|
+
- spec/dummy/app/views/test_caching/cache_helper_with_skip_digest.rb
|
338
|
+
- spec/dummy/app/views/test_caching/cacheable_widget_with_dynamic_keys.rb
|
339
|
+
- spec/dummy/app/views/test_caching/cacheable_widget_with_needs.rb
|
340
|
+
- spec/dummy/app/views/test_caching/cacheable_widget_with_needs_keys.rb
|
341
|
+
- spec/dummy/app/views/test_caching/cacheable_widget_with_skip_digest.rb
|
342
|
+
- spec/dummy/app/views/test_caching/cacheable_widget_with_static_keys.rb
|
265
343
|
- spec/dummy/config.ru
|
266
344
|
- spec/dummy/config/application.rb
|
267
345
|
- spec/dummy/config/boot.rb
|
@@ -280,14 +358,12 @@ files:
|
|
280
358
|
- spec/dummy/db/seeds.rb
|
281
359
|
- spec/dummy/script/rails
|
282
360
|
- spec/dummy/spec/autoload_spec.rb
|
361
|
+
- spec/dummy/spec/caching_spec.rb
|
283
362
|
- spec/dummy/spec/form_builder_spec.rb
|
284
363
|
- spec/dummy/spec/rails_helpers_spec.rb
|
285
|
-
- spec/dummy/spec/rails_spec_helper.rb
|
286
364
|
- spec/dummy/spec/rails_widget_spec.rb
|
287
365
|
- spec/dummy/spec/render_spec.rb
|
288
366
|
- spec/erector/after_initialize_spec.rb
|
289
|
-
- spec/erector/cache_spec.rb
|
290
|
-
- spec/erector/caching_spec.rb
|
291
367
|
- spec/erector/convenience_spec.rb
|
292
368
|
- spec/erector/dependency_spec.rb
|
293
369
|
- spec/erector/hello_from_readme.rb
|
@@ -306,10 +382,13 @@ files:
|
|
306
382
|
- spec/erector/unicode_builder_spec.rb
|
307
383
|
- spec/erector/widget_spec.rb
|
308
384
|
- spec/erector/xml_widget_spec.rb
|
385
|
+
- spec/performance/allocation_spec.rb
|
386
|
+
- spec/performance/ruby_prof_spec.rb
|
309
387
|
- spec/performance/support/basic_widget.rb
|
310
388
|
- spec/performance/widget_to_html_spec.rb
|
311
389
|
- spec/spec_helper.rb
|
312
|
-
|
390
|
+
- spec/support/capturing_output.rb
|
391
|
+
homepage: http://github.com/ajb/erector-rails4
|
313
392
|
licenses:
|
314
393
|
- MIT
|
315
394
|
metadata: {}
|
@@ -321,7 +400,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
321
400
|
requirements:
|
322
401
|
- - ">="
|
323
402
|
- !ruby/object:Gem::Version
|
324
|
-
version:
|
403
|
+
version: 1.9.3
|
325
404
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
326
405
|
requirements:
|
327
406
|
- - ">="
|
@@ -343,21 +422,39 @@ test_files:
|
|
343
422
|
- spec/dummy/app/views/test/_erb.erb
|
344
423
|
- spec/dummy/app/views/test/_erector.rb
|
345
424
|
- spec/dummy/app/views/test/_partial_with_locals.rb
|
425
|
+
- spec/dummy/app/views/test/_partial_with_rails_helpers.rb
|
426
|
+
- spec/dummy/app/views/test/_user.rb
|
427
|
+
- spec/dummy/app/views/test/_virtual_path_partial.rb
|
346
428
|
- spec/dummy/app/views/test/bare.rb
|
347
429
|
- spec/dummy/app/views/test/erb_from_erector.html.rb
|
348
430
|
- spec/dummy/app/views/test/erector_from_erb.html.erb
|
431
|
+
- spec/dummy/app/views/test/erector_with_helpers_from_erb.html.erb
|
349
432
|
- spec/dummy/app/views/test/erector_with_locals_from_erb.html.erb
|
350
433
|
- spec/dummy/app/views/test/implicit_assigns.html.rb
|
351
|
-
- spec/dummy/app/views/test/needs.
|
352
|
-
- spec/dummy/app/views/test/needs_subclass.
|
434
|
+
- spec/dummy/app/views/test/needs.rb
|
435
|
+
- spec/dummy/app/views/test/needs_subclass.rb
|
353
436
|
- spec/dummy/app/views/test/protected_instance_variable.html.rb
|
354
437
|
- spec/dummy/app/views/test/render_default.html.rb
|
355
438
|
- spec/dummy/app/views/test/render_default_erb_with_layout.html.erb
|
356
439
|
- spec/dummy/app/views/test/render_default_widget_with_layout.html.rb
|
357
440
|
- spec/dummy/app/views/test/render_partial.html.rb
|
441
|
+
- spec/dummy/app/views/test/render_virtual_path.rb
|
358
442
|
- spec/dummy/app/views/test/render_with_widget_as_layout.rb
|
359
443
|
- spec/dummy/app/views/test/render_with_widget_as_layout_using_content_for.rb
|
360
444
|
- spec/dummy/app/views/test/simple_form.html.rb
|
445
|
+
- spec/dummy/app/views/test/users.rb
|
446
|
+
- spec/dummy/app/views/test_caching/_foos.rb
|
447
|
+
- spec/dummy/app/views/test_caching/_partial.rb
|
448
|
+
- spec/dummy/app/views/test_caching/cache_helper.rb
|
449
|
+
- spec/dummy/app/views/test_caching/cache_helper_with_explicit_dependencies.rb
|
450
|
+
- spec/dummy/app/views/test_caching/cache_helper_with_implicit_dependencies.rb
|
451
|
+
- spec/dummy/app/views/test_caching/cache_helper_with_partial.rb
|
452
|
+
- spec/dummy/app/views/test_caching/cache_helper_with_skip_digest.rb
|
453
|
+
- spec/dummy/app/views/test_caching/cacheable_widget_with_dynamic_keys.rb
|
454
|
+
- spec/dummy/app/views/test_caching/cacheable_widget_with_needs.rb
|
455
|
+
- spec/dummy/app/views/test_caching/cacheable_widget_with_needs_keys.rb
|
456
|
+
- spec/dummy/app/views/test_caching/cacheable_widget_with_skip_digest.rb
|
457
|
+
- spec/dummy/app/views/test_caching/cacheable_widget_with_static_keys.rb
|
361
458
|
- spec/dummy/config.ru
|
362
459
|
- spec/dummy/config/application.rb
|
363
460
|
- spec/dummy/config/boot.rb
|
@@ -376,14 +473,12 @@ test_files:
|
|
376
473
|
- spec/dummy/db/seeds.rb
|
377
474
|
- spec/dummy/script/rails
|
378
475
|
- spec/dummy/spec/autoload_spec.rb
|
476
|
+
- spec/dummy/spec/caching_spec.rb
|
379
477
|
- spec/dummy/spec/form_builder_spec.rb
|
380
478
|
- spec/dummy/spec/rails_helpers_spec.rb
|
381
|
-
- spec/dummy/spec/rails_spec_helper.rb
|
382
479
|
- spec/dummy/spec/rails_widget_spec.rb
|
383
480
|
- spec/dummy/spec/render_spec.rb
|
384
481
|
- spec/erector/after_initialize_spec.rb
|
385
|
-
- spec/erector/cache_spec.rb
|
386
|
-
- spec/erector/caching_spec.rb
|
387
482
|
- spec/erector/convenience_spec.rb
|
388
483
|
- spec/erector/dependency_spec.rb
|
389
484
|
- spec/erector/hello_from_readme.rb
|
@@ -402,6 +497,10 @@ test_files:
|
|
402
497
|
- spec/erector/unicode_builder_spec.rb
|
403
498
|
- spec/erector/widget_spec.rb
|
404
499
|
- spec/erector/xml_widget_spec.rb
|
500
|
+
- spec/performance/allocation_spec.rb
|
501
|
+
- spec/performance/ruby_prof_spec.rb
|
405
502
|
- spec/performance/support/basic_widget.rb
|
406
503
|
- spec/performance/widget_to_html_spec.rb
|
407
504
|
- spec/spec_helper.rb
|
505
|
+
- spec/support/capturing_output.rb
|
506
|
+
has_rdoc:
|