fortitude 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.fix_bundler_for_jruby_17 +26 -0
- data/.gitignore +1 -0
- data/.travis.yml +33 -40
- data/CHANGES.md +44 -0
- data/CONTRIBUTORS.md +26 -0
- data/Rakefile +1 -1
- data/ext/com/fortituderuby/ext/fortitude/FortitudeNativeLibrary.java +45 -33
- data/ext/fortitude_native_ext/fortitude_native_ext.c +23 -23
- data/fortitude.gemspec +25 -8
- data/lib/fortitude/erector.rb +26 -18
- data/lib/fortitude/errors.rb +15 -4
- data/lib/fortitude/extensions/fortitude_ruby_ext.rb +35 -10
- data/lib/fortitude/rails/helpers.rb +59 -2
- data/lib/fortitude/rails/railtie.rb +238 -157
- data/lib/fortitude/rails/renderer.rb +15 -0
- data/lib/fortitude/rails/rendering_methods.rb +46 -33
- data/lib/fortitude/rails/template_handler.rb +49 -18
- data/lib/fortitude/rails/yielded_object_outputter.rb +3 -2
- data/lib/fortitude/rendering_context.rb +14 -5
- data/lib/fortitude/support/method_overriding.rb +90 -0
- data/lib/fortitude/support/staticized_method.rb +12 -0
- data/lib/fortitude/version.rb +1 -1
- data/lib/fortitude/widget/content.rb +4 -2
- data/lib/fortitude/widget/files.rb +17 -11
- data/lib/fortitude/widget/helpers.rb +7 -1
- data/lib/fortitude/widget/integration.rb +4 -0
- data/lib/fortitude/widget/localization.rb +63 -4
- data/lib/fortitude/widget/rendering.rb +17 -10
- data/lib/fortitude_jruby_native_ext.jar +0 -0
- data/spec/helpers/fortitude_rails_helpers.rb +26 -4
- data/spec/rails/capture_system_spec.rb +1 -1
- data/spec/rails/class_loading_system_spec.rb +16 -2
- data/spec/rails/complex_helpers_system_spec.rb +29 -0
- data/spec/rails/data_passing_system_spec.rb +2 -2
- data/spec/rails/development_mode_system_spec.rb +1 -1
- data/spec/rails/erector_coexistence_system_spec.rb +1 -1
- data/spec/rails/helpers_system_spec.rb +20 -2
- data/spec/rails/layouts_system_spec.rb +1 -1
- data/spec/rails/rendering_system_spec.rb +4 -4
- data/spec/rails/rules_system_spec.rb +2 -2
- data/spec/rails/templates/class_loading_system_spec/app/views/some_namespace/some_other_namespace/placeholder.rb +5 -0
- data/spec/rails/templates/complex_helpers_system_spec/app/controllers/complex_helpers_system_spec_controller.rb +4 -0
- data/spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/label_block_test.rb +9 -0
- data/spec/rails/templates/helpers_system_spec/app/controllers/helpers_system_spec_controller.rb +4 -0
- data/spec/rails/templates/helpers_system_spec/app/controllers/home_controller.rb +9 -0
- data/spec/rails/templates/helpers_system_spec/app/views/helpers_system_spec/rails_helpers_without_automatic_helper_access.rb +37 -0
- data/spec/rails/templates/helpers_system_spec/app/views/helpers_system_spec/url_helpers_without_automatic_helper_access.rb +45 -0
- data/spec/rails/templates/helpers_system_spec/config/initializers/host.rb +1 -0
- data/spec/rails/templates/helpers_system_spec/config/routes.rb +7 -0
- data/spec/rails/templates/static_method_system_spec/app/views/static_method_system_spec/localization.rb +1 -1
- data/spec/rails/templates/view_paths_system_spec/app/controllers/view_paths_system_spec_controller.rb +15 -0
- data/spec/rails/templates/view_paths_system_spec/config/application.rb +30 -0
- data/spec/rails/templates/view_paths_system_spec/view_path_one/baseone/basetwo/base_class_one.rb +5 -0
- data/spec/rails/templates/view_paths_system_spec/view_path_one/view_paths_system_spec/added_view_path.html.rb +5 -0
- data/spec/rails/templates/view_paths_system_spec/view_path_one/view_paths_system_spec/autoloading_from_added_view_path.html.rb +5 -0
- data/spec/rails/templates/view_paths_system_spec/view_path_two/view_paths_system_spec/added_view_path_from_controller.html.rb +5 -0
- data/spec/rails/templates/view_paths_system_spec/view_path_two/view_paths_system_spec/added_view_path_from_controller_with_impossible_to_guess_name.html.rb +14 -0
- data/spec/rails/view_paths_system_spec.rb +19 -0
- data/spec/system/escaping_system_spec.rb +10 -2
- data/spec/system/helpers_system_spec.rb +37 -6
- data/spec/system/inline_system_spec.rb +19 -0
- data/spec/system/static_method_system_spec.rb +16 -0
- data/spec/system/tag_rendering_system_spec.rb +4 -4
- data/spec/system/widget_class_from_spec.rb +39 -0
- data/spec/system/yield_system_spec.rb +53 -1
- metadata +54 -22
@@ -60,6 +60,24 @@ describe "Fortitude widget-class-from-(file|source) support", :type => :system d
|
|
60
60
|
expect(cdne.tried_class_names).to be_include("WidgetFromClass11")
|
61
61
|
end
|
62
62
|
|
63
|
+
it "should allow specifying additional widget base classes, and return those if needed" do
|
64
|
+
eval("module WidgetFromClass26; class SomeOtherBase; end; end")
|
65
|
+
text = "class WidgetFromClass27 < WidgetFromClass26::SomeOtherBase; end"
|
66
|
+
eval(text)
|
67
|
+
expect(wcfs(text, :valid_base_classes => [ ::Fortitude::Widget, ::WidgetFromClass26::SomeOtherBase ])).to eq(::WidgetFromClass27)
|
68
|
+
end
|
69
|
+
|
70
|
+
it "should allow excluding Fortitude::Widget" do
|
71
|
+
eval("module WidgetFromClass28; class SomeOtherBase; end; end")
|
72
|
+
text = "class WidgetFromClass29 < ::Fortitude::Widget; end"
|
73
|
+
eval(text)
|
74
|
+
|
75
|
+
cdne = capture_exception(::Fortitude::Widget::Files::CannotDetermineWidgetClassNameError) do
|
76
|
+
wcfs(text, :valid_base_classes => [ ::WidgetFromClass28::SomeOtherBase ])
|
77
|
+
end
|
78
|
+
expect(cdne.tried_class_names).to eq([ 'WidgetFromClass29' ])
|
79
|
+
end
|
80
|
+
|
63
81
|
it "should fail, but return the object, if the source code contains an object of that class that just isn't a widget class" do
|
64
82
|
cdne = capture_exception(::Fortitude::Widget::Files::CannotDetermineWidgetClassNameError) do
|
65
83
|
wcfs("module WidgetFromClass24\nend")
|
@@ -198,11 +216,32 @@ class WidgetFromClass17 < Fortitude::Widget; end}
|
|
198
216
|
expect(wcff('wcfs10/wcfs_11/widget_from_class_23.rb', :root_dirs => tempdir)).to eq(Wcfs10::Wcfs11::WidgetFromClass23)
|
199
217
|
end
|
200
218
|
|
219
|
+
it "should be able to use a root directory to infer a class name, even if it the class name ends in other extensions before .rb" do
|
220
|
+
::Object.class_eval("module Wcfs12; end")
|
221
|
+
splat!('wcfs12/widget_from_class_30.html.rb', %{cname = 'WidgetFromCla' + 'ss30'; eval('class Wcfs12::' + cname + ' < ::Fortitude::Widget; end')})
|
222
|
+
expect(wcff('wcfs12/widget_from_class_30.html.rb', :root_dirs => tempdir)).to eq(Wcfs12::WidgetFromClass30)
|
223
|
+
end
|
224
|
+
|
201
225
|
it "should be able to use an array of root directories to infer a class name, and find the right one" do
|
202
226
|
::Object.class_eval("module Wcfs10; module Wcfs11; end; end")
|
203
227
|
splat!('bar/wcfs10/wcfs_11/widget_from_class_23.rb', %{cname = 'WidgetFromCla' + 'ss23'; eval('class Wcfs10::Wcfs11::' + cname + ' < ::Fortitude::Widget; end')})
|
204
228
|
expect(wcff('bar/wcfs10/wcfs_11/widget_from_class_23.rb', :root_dirs => [ "#{tempdir}/foo", "#{tempdir}/bar" ])).to eq(Wcfs10::Wcfs11::WidgetFromClass23)
|
205
229
|
end
|
230
|
+
|
231
|
+
it "should be able to have an additional base class and use it" do
|
232
|
+
eval("module Wcff12; class OtherBaseClass; end; end")
|
233
|
+
splat!("wcff12/widget_from_file_12.rb", %{class WidgetFromFile12 < Wcff12::OtherBaseClass; end})
|
234
|
+
expect(wcff('wcff12/widget_from_file_12.rb', :valid_base_classes => [ ::Fortitude::Widget, ::Wcff12::OtherBaseClass ])).to eq(WidgetFromFile12)
|
235
|
+
end
|
236
|
+
|
237
|
+
it "should be able to exclude ::Fortitude::Widget successfully" do
|
238
|
+
eval("module Wcff13; class OtherBaseClass; end; end")
|
239
|
+
splat!("wcff13/widget_from_file_13.rb", %{class WidgetFromFile13 < ::Fortitude::Widget; end})
|
240
|
+
cdne = capture_exception(::Fortitude::Widget::Files::CannotDetermineWidgetClassNameError) do
|
241
|
+
wcff('wcff13/widget_from_file_13.rb', :valid_base_classes => [ ::Wcff13::OtherBaseClass ])
|
242
|
+
end
|
243
|
+
expect(cdne.tried_class_names).to eq([ "WidgetFromFile13" ])
|
244
|
+
end
|
206
245
|
end
|
207
246
|
|
208
247
|
it "should prioritize a magic comment above class names you told it to try or directory-based names or scanned source text" do
|
@@ -1,4 +1,56 @@
|
|
1
1
|
describe "Fortitude widgets and 'yield'", :type => :system do
|
2
|
+
it "should not have a block available if none is supplied" do
|
3
|
+
wc = widget_class do
|
4
|
+
def content
|
5
|
+
text "block_given? #{block_given?.inspect}"
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
expect(render(wc.new)).to eq("block_given? false")
|
10
|
+
end
|
11
|
+
|
12
|
+
it "should have a block available if one is passed to the constructor" do
|
13
|
+
wc = widget_class do
|
14
|
+
def content
|
15
|
+
text "block_given? #{block_given?.inspect}"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
expect(render(wc.new { |w| nil })).to eq("block_given? true")
|
20
|
+
end
|
21
|
+
|
22
|
+
it "should have a block available if one is passed to #widget" do
|
23
|
+
wc_sub = widget_class do
|
24
|
+
def content
|
25
|
+
text "inner block_given? #{block_given?.inspect}"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
wc = widget_class do
|
30
|
+
cattr_accessor :other_widget_class
|
31
|
+
|
32
|
+
def content
|
33
|
+
text "before"
|
34
|
+
widget(self.class.other_widget_class) { text "middle" }
|
35
|
+
text "after"
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
wc.other_widget_class = wc_sub
|
40
|
+
expect(render(wc.new)).to eq("beforeinner block_given? trueafter")
|
41
|
+
end
|
42
|
+
|
43
|
+
it "should have a block available if one is passed to the rendering context" do
|
44
|
+
wc = widget_class do
|
45
|
+
def content
|
46
|
+
text "block_given? #{block_given?.inspect}"
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
the_rc = rc(:yield_block => lambda { |w| nil })
|
51
|
+
expect(render(wc.new, :rendering_context => the_rc)).to eq("block_given? true")
|
52
|
+
end
|
53
|
+
|
2
54
|
it "should call the block passed to the constructor when you call 'yield' from #content" do
|
3
55
|
wc = widget_class do
|
4
56
|
def content
|
@@ -88,7 +140,7 @@ describe "Fortitude widgets and 'yield'", :type => :system do
|
|
88
140
|
|
89
141
|
def content
|
90
142
|
text "before"
|
91
|
-
widget(self.class.other_widget_class) { text "middle"
|
143
|
+
widget(self.class.other_widget_class) { text "middle" }
|
92
144
|
text "after"
|
93
145
|
end
|
94
146
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fortitude
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Geweke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -39,63 +39,63 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 1.0.5
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '1.
|
47
|
+
version: '1.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '1.
|
54
|
+
version: '1.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: json
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
61
|
+
version: '1.0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
68
|
+
version: '1.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '1.5'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '1.5'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: rspec
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '2.99'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '2.99'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: rake-compiler
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
@@ -128,14 +128,14 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 0.0.
|
131
|
+
version: 0.0.22
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 0.0.
|
138
|
+
version: 0.0.22
|
139
139
|
description: 'Views Are Code: use all the power of Ruby to build views in your own
|
140
140
|
language.'
|
141
141
|
email:
|
@@ -145,6 +145,7 @@ extensions:
|
|
145
145
|
- ext/fortitude_native_ext/extconf.rb
|
146
146
|
extra_rdoc_files: []
|
147
147
|
files:
|
148
|
+
- ".fix_bundler_for_jruby_17"
|
148
149
|
- ".gitignore"
|
149
150
|
- ".rspec-local"
|
150
151
|
- ".travis.yml"
|
@@ -282,6 +283,7 @@ files:
|
|
282
283
|
- lib/fortitude/support/assigns_proxy.rb
|
283
284
|
- lib/fortitude/support/class_inheritable_attributes.rb
|
284
285
|
- lib/fortitude/support/instance_variable_set.rb
|
286
|
+
- lib/fortitude/support/method_overriding.rb
|
285
287
|
- lib/fortitude/support/staticized_method.rb
|
286
288
|
- lib/fortitude/tags/partial_tag_placeholder.rb
|
287
289
|
- lib/fortitude/tags/render_widget_placeholder.rb
|
@@ -383,6 +385,7 @@ files:
|
|
383
385
|
- spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/use_lib_widget_from_view_widget.rb
|
384
386
|
- spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/use_models_widget_from_view_widget.rb
|
385
387
|
- spec/rails/templates/class_loading_system_spec/app/views/some_namespace/some_other_namespace/.git_keep
|
388
|
+
- spec/rails/templates/class_loading_system_spec/app/views/some_namespace/some_other_namespace/placeholder.rb
|
386
389
|
- spec/rails/templates/class_loading_system_spec/app/views/sub_widget.rb
|
387
390
|
- spec/rails/templates/class_loading_system_spec/lib/arbitrary_name/some_widget.rb
|
388
391
|
- spec/rails/templates/class_loading_system_spec/lib/views/class_loading_system_spec/lib_views_helper.rb
|
@@ -393,6 +396,7 @@ files:
|
|
393
396
|
- spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/cache_test.rb
|
394
397
|
- spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/fields_for_test.rb
|
395
398
|
- spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/form_for_test.rb
|
399
|
+
- spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/label_block_test.rb
|
396
400
|
- spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/nesting_test.rb
|
397
401
|
- spec/rails/templates/complex_helpers_system_spec/config/environments/development.rb
|
398
402
|
- spec/rails/templates/data_passing_system_spec/app/controllers/data_passing_system_spec_controller.rb
|
@@ -491,6 +495,7 @@ files:
|
|
491
495
|
- spec/rails/templates/helpers_include_all_off_system_spec/app/views/helpers_include_all_off_system_spec/include_all_off.rb
|
492
496
|
- spec/rails/templates/helpers_include_all_off_system_spec/config/application.rb
|
493
497
|
- spec/rails/templates/helpers_system_spec/app/controllers/helpers_system_spec_controller.rb
|
498
|
+
- spec/rails/templates/helpers_system_spec/app/controllers/home_controller.rb
|
494
499
|
- spec/rails/templates/helpers_system_spec/app/helpers/some_helper.rb
|
495
500
|
- spec/rails/templates/helpers_system_spec/app/views/helpers_system_spec/automatic_helpers_disabled.rb
|
496
501
|
- spec/rails/templates/helpers_system_spec/app/views/helpers_system_spec/automatic_helpers_inheritance.rb
|
@@ -514,6 +519,10 @@ files:
|
|
514
519
|
- spec/rails/templates/helpers_system_spec/app/views/helpers_system_spec/helpers_that_output_when_refined.rb
|
515
520
|
- spec/rails/templates/helpers_system_spec/app/views/helpers_system_spec/private_helper_erb.html.erb
|
516
521
|
- spec/rails/templates/helpers_system_spec/app/views/helpers_system_spec/private_helper_fortitude.rb
|
522
|
+
- spec/rails/templates/helpers_system_spec/app/views/helpers_system_spec/rails_helpers_without_automatic_helper_access.rb
|
523
|
+
- spec/rails/templates/helpers_system_spec/app/views/helpers_system_spec/url_helpers_without_automatic_helper_access.rb
|
524
|
+
- spec/rails/templates/helpers_system_spec/config/initializers/host.rb
|
525
|
+
- spec/rails/templates/helpers_system_spec/config/routes.rb
|
517
526
|
- spec/rails/templates/helpers_system_spec/lib/some_stuff.rb
|
518
527
|
- spec/rails/templates/helpers_unrefined_system_spec/app/controllers/helpers_unrefined_system_spec_controller.rb
|
519
528
|
- spec/rails/templates/helpers_unrefined_system_spec/app/views/helpers_unrefined_system_spec/helpers_that_output_when_refined.rb
|
@@ -620,6 +629,14 @@ files:
|
|
620
629
|
- spec/rails/templates/static_method_system_spec/app/views/static_method_system_spec/localization.rb
|
621
630
|
- spec/rails/templates/static_method_system_spec/config/locales/en.yml
|
622
631
|
- spec/rails/templates/static_method_system_spec/config/locales/fr.yml
|
632
|
+
- spec/rails/templates/view_paths_system_spec/app/controllers/view_paths_system_spec_controller.rb
|
633
|
+
- spec/rails/templates/view_paths_system_spec/config/application.rb
|
634
|
+
- spec/rails/templates/view_paths_system_spec/view_path_one/baseone/basetwo/base_class_one.rb
|
635
|
+
- spec/rails/templates/view_paths_system_spec/view_path_one/view_paths_system_spec/added_view_path.html.rb
|
636
|
+
- spec/rails/templates/view_paths_system_spec/view_path_one/view_paths_system_spec/autoloading_from_added_view_path.html.rb
|
637
|
+
- spec/rails/templates/view_paths_system_spec/view_path_two/view_paths_system_spec/added_view_path_from_controller.html.rb
|
638
|
+
- spec/rails/templates/view_paths_system_spec/view_path_two/view_paths_system_spec/added_view_path_from_controller_with_impossible_to_guess_name.html.rb
|
639
|
+
- spec/rails/view_paths_system_spec.rb
|
623
640
|
- spec/system/around_content_system_spec.rb
|
624
641
|
- spec/system/assigns_system_spec.rb
|
625
642
|
- spec/system/attribute_rules_system_spec.rb
|
@@ -677,7 +694,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
677
694
|
version: '0'
|
678
695
|
requirements: []
|
679
696
|
rubyforge_project:
|
680
|
-
rubygems_version: 2.
|
697
|
+
rubygems_version: 2.5.1
|
681
698
|
signing_key:
|
682
699
|
specification_version: 4
|
683
700
|
summary: 'Views Are Code: use all the power of Ruby to build views in your own language.'
|
@@ -742,6 +759,7 @@ test_files:
|
|
742
759
|
- spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/use_lib_widget_from_view_widget.rb
|
743
760
|
- spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/use_models_widget_from_view_widget.rb
|
744
761
|
- spec/rails/templates/class_loading_system_spec/app/views/some_namespace/some_other_namespace/.git_keep
|
762
|
+
- spec/rails/templates/class_loading_system_spec/app/views/some_namespace/some_other_namespace/placeholder.rb
|
745
763
|
- spec/rails/templates/class_loading_system_spec/app/views/sub_widget.rb
|
746
764
|
- spec/rails/templates/class_loading_system_spec/lib/arbitrary_name/some_widget.rb
|
747
765
|
- spec/rails/templates/class_loading_system_spec/lib/views/class_loading_system_spec/lib_views_helper.rb
|
@@ -752,6 +770,7 @@ test_files:
|
|
752
770
|
- spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/cache_test.rb
|
753
771
|
- spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/fields_for_test.rb
|
754
772
|
- spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/form_for_test.rb
|
773
|
+
- spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/label_block_test.rb
|
755
774
|
- spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/nesting_test.rb
|
756
775
|
- spec/rails/templates/complex_helpers_system_spec/config/environments/development.rb
|
757
776
|
- spec/rails/templates/data_passing_system_spec/app/controllers/data_passing_system_spec_controller.rb
|
@@ -850,6 +869,7 @@ test_files:
|
|
850
869
|
- spec/rails/templates/helpers_include_all_off_system_spec/app/views/helpers_include_all_off_system_spec/include_all_off.rb
|
851
870
|
- spec/rails/templates/helpers_include_all_off_system_spec/config/application.rb
|
852
871
|
- spec/rails/templates/helpers_system_spec/app/controllers/helpers_system_spec_controller.rb
|
872
|
+
- spec/rails/templates/helpers_system_spec/app/controllers/home_controller.rb
|
853
873
|
- spec/rails/templates/helpers_system_spec/app/helpers/some_helper.rb
|
854
874
|
- spec/rails/templates/helpers_system_spec/app/views/helpers_system_spec/automatic_helpers_disabled.rb
|
855
875
|
- spec/rails/templates/helpers_system_spec/app/views/helpers_system_spec/automatic_helpers_inheritance.rb
|
@@ -873,6 +893,10 @@ test_files:
|
|
873
893
|
- spec/rails/templates/helpers_system_spec/app/views/helpers_system_spec/helpers_that_output_when_refined.rb
|
874
894
|
- spec/rails/templates/helpers_system_spec/app/views/helpers_system_spec/private_helper_erb.html.erb
|
875
895
|
- spec/rails/templates/helpers_system_spec/app/views/helpers_system_spec/private_helper_fortitude.rb
|
896
|
+
- spec/rails/templates/helpers_system_spec/app/views/helpers_system_spec/rails_helpers_without_automatic_helper_access.rb
|
897
|
+
- spec/rails/templates/helpers_system_spec/app/views/helpers_system_spec/url_helpers_without_automatic_helper_access.rb
|
898
|
+
- spec/rails/templates/helpers_system_spec/config/initializers/host.rb
|
899
|
+
- spec/rails/templates/helpers_system_spec/config/routes.rb
|
876
900
|
- spec/rails/templates/helpers_system_spec/lib/some_stuff.rb
|
877
901
|
- spec/rails/templates/helpers_unrefined_system_spec/app/controllers/helpers_unrefined_system_spec_controller.rb
|
878
902
|
- spec/rails/templates/helpers_unrefined_system_spec/app/views/helpers_unrefined_system_spec/helpers_that_output_when_refined.rb
|
@@ -979,6 +1003,14 @@ test_files:
|
|
979
1003
|
- spec/rails/templates/static_method_system_spec/app/views/static_method_system_spec/localization.rb
|
980
1004
|
- spec/rails/templates/static_method_system_spec/config/locales/en.yml
|
981
1005
|
- spec/rails/templates/static_method_system_spec/config/locales/fr.yml
|
1006
|
+
- spec/rails/templates/view_paths_system_spec/app/controllers/view_paths_system_spec_controller.rb
|
1007
|
+
- spec/rails/templates/view_paths_system_spec/config/application.rb
|
1008
|
+
- spec/rails/templates/view_paths_system_spec/view_path_one/baseone/basetwo/base_class_one.rb
|
1009
|
+
- spec/rails/templates/view_paths_system_spec/view_path_one/view_paths_system_spec/added_view_path.html.rb
|
1010
|
+
- spec/rails/templates/view_paths_system_spec/view_path_one/view_paths_system_spec/autoloading_from_added_view_path.html.rb
|
1011
|
+
- spec/rails/templates/view_paths_system_spec/view_path_two/view_paths_system_spec/added_view_path_from_controller.html.rb
|
1012
|
+
- spec/rails/templates/view_paths_system_spec/view_path_two/view_paths_system_spec/added_view_path_from_controller_with_impossible_to_guess_name.html.rb
|
1013
|
+
- spec/rails/view_paths_system_spec.rb
|
982
1014
|
- spec/system/around_content_system_spec.rb
|
983
1015
|
- spec/system/assigns_system_spec.rb
|
984
1016
|
- spec/system/attribute_rules_system_spec.rb
|