fortitude 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +73 -0
- data/CONTRIBUTORS.md +17 -0
- data/ext/com/fortituderuby/ext/fortitude/FortitudeNativeLibrary.java +23 -7
- data/ext/fortitude_native_ext/fortitude_native_ext.c +91 -54
- data/lib/fortitude/doctypes/html4.rb +4 -0
- data/lib/fortitude/doctypes/html5.rb +4 -0
- data/lib/fortitude/doctypes/unknown_doctype.rb +4 -0
- data/lib/fortitude/doctypes/xhtml10.rb +4 -0
- data/lib/fortitude/doctypes/xhtml11.rb +4 -0
- data/lib/fortitude/erector.rb +1 -0
- data/lib/fortitude/errors.rb +16 -0
- data/lib/fortitude/extensions/fortitude_ruby_ext.rb +27 -12
- data/lib/fortitude/method_templates/assign_locals_from_template.rb.smpl +2 -0
- data/lib/fortitude/method_templates/need_assignment_template.rb.smpl +2 -2
- data/lib/fortitude/method_templates/simple_compiled_template.rb +94 -0
- data/lib/fortitude/method_templates/tag_method_template.rb.smpl +4 -4
- data/lib/fortitude/method_templates/text_method_template.rb.smpl +2 -2
- data/lib/fortitude/rails/railtie.rb +5 -1
- data/lib/fortitude/rails/rendering_methods.rb +66 -47
- data/lib/fortitude/rails/template_handler.rb +0 -1
- data/lib/fortitude/rendering_context.rb +2 -2
- data/lib/fortitude/tags/tag.rb +4 -3
- data/lib/fortitude/version.rb +1 -1
- data/lib/fortitude/widget.rb +1 -1
- data/lib/fortitude/widget/content.rb +1 -1
- data/lib/fortitude/widget/integration.rb +12 -3
- data/lib/fortitude/widget/localization.rb +1 -37
- data/lib/fortitude/widget/needs.rb +41 -12
- data/lib/fortitude/widget/rendering.rb +25 -7
- data/lib/fortitude/widget/start_and_end_comments.rb +1 -0
- data/lib/fortitude/widget/tags.rb +2 -1
- data/lib/fortitude/widget/widget_class_inheritable_attributes.rb +1 -0
- data/lib/fortitude_jruby_native_ext.jar +0 -0
- data/spec/helpers/system_helpers.rb +4 -0
- data/spec/rails/class_loading_system_spec.rb +10 -2
- data/spec/rails/development_mode_system_spec.rb +91 -0
- data/spec/rails/erector_coexistence_system_spec.rb +16 -0
- data/spec/rails/layouts_system_spec.rb +8 -3
- data/spec/rails/rendering_system_spec.rb +24 -2
- data/spec/rails/templates/class_loading_system_spec/app/controllers/class_loading_system_spec_controller.rb +6 -2
- data/spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/_foo.rb +5 -0
- data/spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/bar.html.rb +5 -0
- data/spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/bar.rb +5 -0
- data/spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/foo.rb +5 -0
- data/spec/rails/templates/development_mode_system_spec/app/controllers/development_mode_system_spec_controller.rb +4 -0
- data/spec/rails/templates/development_mode_system_spec/app/views/base.rb +5 -0
- data/spec/rails/templates/development_mode_system_spec/app/views/development_mode_system_spec/form.rb +11 -0
- data/spec/rails/templates/erector_coexistence_system_spec/app/controllers/erector_coexistence_system_spec_controller.rb +16 -0
- data/spec/rails/templates/erector_coexistence_system_spec/app/views/erector_widget.rb +5 -0
- data/spec/rails/templates/erector_coexistence_system_spec/app/views/fortitude_widget.rb +5 -0
- data/spec/rails/templates/localization_system_spec/app/views/localization_system_spec/content_method.rb +2 -0
- data/spec/rails/templates/rendering_system_spec/app/controllers/rendering_system_spec_controller.rb +14 -1
- data/spec/rails/templates/rendering_system_spec/app/helpers/application_helper.rb +5 -0
- data/spec/rails/templates/rendering_system_spec/app/views/widget_to_render_class_only.rb +5 -0
- data/spec/rails/templates/rendering_system_spec/app/views/widget_to_render_with_helper.rb +5 -0
- data/spec/system/doctypes_system_spec.rb +30 -8
- data/spec/system/erector_compatibility_system_spec.rb +27 -0
- data/spec/system/localization_system_spec.rb +4 -0
- data/spec/system/needs_system_spec.rb +31 -0
- data/spec/system/rebuild_notifications_system_spec.rb +180 -85
- data/spec/system/setting_inheritance_system_spec.rb +47 -0
- data/spec/system/static_method_system_spec.rb +2 -0
- data/spec/system/tag_rendering_system_spec.rb +41 -0
- data/spec/system/void_tags_system_spec.rb +1 -0
- data/spec/system/yield_system_spec.rb +188 -0
- metadata +27 -5
- data/lib/fortitude/method_templates/simple_template.rb +0 -50
- data/spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/_underscore_widget.rb +0 -11
@@ -11,6 +11,7 @@ describe "Fortitude setting inheritance", :type => :system do
|
|
11
11
|
# - translation_base
|
12
12
|
# - enforce_id_uniqueness
|
13
13
|
# - debug
|
14
|
+
# - use_localized_content_methods
|
14
15
|
#
|
15
16
|
# needs are covered by the needs_system_spec, and around_content is covered by the around_content_system_spec;
|
16
17
|
# these are not tested here because their semantics are quite a bit more complex than the settings here.
|
@@ -36,6 +37,32 @@ describe "Fortitude setting inheritance", :type => :system do
|
|
36
37
|
end
|
37
38
|
|
38
39
|
|
40
|
+
def use_localized_content_methods_should_be(expected_result, *klasses)
|
41
|
+
klasses.each do |klass|
|
42
|
+
expect(klass.use_localized_content_methods).to eq(expected_result)
|
43
|
+
send("localized_content_methods_should_be_for_class", expected_result, klass)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
def localized_content_methods_should_be_for_class(expected_result, klass)
|
48
|
+
klass.send(:define_method, :content) do
|
49
|
+
text "hello!"
|
50
|
+
end
|
51
|
+
|
52
|
+
klass.send(:define_method, :localized_content_fr) do
|
53
|
+
text "bonjour!"
|
54
|
+
end
|
55
|
+
|
56
|
+
klass.send(:define_method, :widget_locale) { :fr }
|
57
|
+
|
58
|
+
if expected_result
|
59
|
+
expect(render(klass)).to eq("bonjour!")
|
60
|
+
else
|
61
|
+
expect(render(klass)).to eq("hello!")
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
|
39
66
|
def enforce_id_uniqueness_should_be(expected_result, *klasses)
|
40
67
|
klasses.each do |klass|
|
41
68
|
expect(klass.enforce_id_uniqueness).to eq(expected_result)
|
@@ -634,4 +661,24 @@ describe "Fortitude setting inheritance", :type => :system do
|
|
634
661
|
use_instance_variables_for_assigns_should_be(false, @grandparent, @parent2, @child21, @child22)
|
635
662
|
use_instance_variables_for_assigns_should_be(true, @parent1, @child11, @child12)
|
636
663
|
end
|
664
|
+
|
665
|
+
it "should properly inherit use_localized_content_methods" do
|
666
|
+
use_localized_content_methods_should_be(false, @grandparent, @parent1, @child11, @child12, @parent2, @child21, @child22)
|
667
|
+
|
668
|
+
@parent1.use_localized_content_methods true
|
669
|
+
use_localized_content_methods_should_be(false, @grandparent, @parent2, @child21, @child22)
|
670
|
+
use_localized_content_methods_should_be(true, @parent1, @child11, @child12)
|
671
|
+
|
672
|
+
@parent2.use_localized_content_methods false
|
673
|
+
use_localized_content_methods_should_be(false, @grandparent, @parent2, @child21, @child22)
|
674
|
+
use_localized_content_methods_should_be(true, @parent1, @child11, @child12)
|
675
|
+
|
676
|
+
@grandparent.use_localized_content_methods true
|
677
|
+
use_localized_content_methods_should_be(false, @parent2, @child21, @child22)
|
678
|
+
use_localized_content_methods_should_be(true, @grandparent, @parent1, @child11, @child12)
|
679
|
+
|
680
|
+
@grandparent.use_localized_content_methods false
|
681
|
+
use_localized_content_methods_should_be(false, @grandparent, @parent2, @child21, @child22)
|
682
|
+
use_localized_content_methods_should_be(true, @parent1, @child11, @child12)
|
683
|
+
end
|
637
684
|
end
|
@@ -269,6 +269,8 @@ describe "Fortitude staticization behavior", :type => :system do
|
|
269
269
|
it "should still run the proper localized content methods even if #content, or one of them, is static" do
|
270
270
|
$global_value = 12345
|
271
271
|
wc = widget_class do
|
272
|
+
use_localized_content_methods true
|
273
|
+
|
272
274
|
def initialize(locale)
|
273
275
|
self.widget_locale = locale
|
274
276
|
super({ })
|
@@ -7,6 +7,47 @@ describe "Fortitude tag rendering", :type => :system do
|
|
7
7
|
expect(r(&block)).to eq(value)
|
8
8
|
end
|
9
9
|
|
10
|
+
it "should allow passing numbers to a tag" do
|
11
|
+
should_render_to("<p>123.45</p>") { p(123.45) }
|
12
|
+
end
|
13
|
+
|
14
|
+
it "should allow rendering nil to a tag" do
|
15
|
+
should_render_to("<p></p>") { p(nil) }
|
16
|
+
end
|
17
|
+
|
18
|
+
it "should allow rendering nil via text" do
|
19
|
+
should_render_to("") { text(nil) }
|
20
|
+
end
|
21
|
+
|
22
|
+
it "should allow rendering nil via rawtext" do
|
23
|
+
should_render_to("") { rawtext(nil) }
|
24
|
+
end
|
25
|
+
|
26
|
+
it "should render an attribute mapped to nil as missing" do
|
27
|
+
should_render_to("<p></p>") { p(:class => nil) }
|
28
|
+
should_render_to("<p></p>") { p(:foo => { :bar => nil }) }
|
29
|
+
end
|
30
|
+
|
31
|
+
it "should render an attribute mapped to the empty string as the empty string" do
|
32
|
+
should_render_to("<p class=\"\"></p>") { p(:class => '') }
|
33
|
+
should_render_to("<p foo-bar=\"\"></p>") { p(:foo => { :bar => '' }) }
|
34
|
+
end
|
35
|
+
|
36
|
+
it "should render an attribute mapped to false as missing" do
|
37
|
+
should_render_to("<p></p>") { p(:class => false) }
|
38
|
+
should_render_to("<p></p>") { p(:foo => { :bar => false }) }
|
39
|
+
end
|
40
|
+
|
41
|
+
it "should render an attribute mapped to true as just a bare attribute" do
|
42
|
+
should_render_to("<p class></p>") { p(:class => true) }
|
43
|
+
should_render_to("<p foo-bar></p>") { p(:foo => { :bar => true }) }
|
44
|
+
end
|
45
|
+
|
46
|
+
it "should render an attribute mapped to the string 'true' as that string" do
|
47
|
+
should_render_to("<p class=\"true\"></p>") { p(:class => 'true') }
|
48
|
+
should_render_to("<p foo-bar=\"true\"></p>") { p(:foo => { :bar => 'true' }) }
|
49
|
+
end
|
50
|
+
|
10
51
|
it "should render a void tag correctly" do
|
11
52
|
should_render_to("<hr>") { hr }
|
12
53
|
end
|
@@ -12,6 +12,7 @@ describe "Fortitude void tags", :type => :system do
|
|
12
12
|
|
13
13
|
it "should not close void tags by default" do
|
14
14
|
vtc = widget_class(:superclass => Fortitude::Widget) do
|
15
|
+
doctype SystemHelpers::TestDoctype.new
|
15
16
|
tag :thevoid, :content_allowed => false
|
16
17
|
|
17
18
|
def content
|
@@ -0,0 +1,188 @@
|
|
1
|
+
describe "Fortitude widgets and 'yield'", :type => :system do
|
2
|
+
it "should call the block passed to the constructor when you call 'yield' from #content" do
|
3
|
+
wc = widget_class do
|
4
|
+
def content
|
5
|
+
text "before"
|
6
|
+
yield
|
7
|
+
text "after"
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
expect(render(wc.new { |widget| widget.text "middle" })).to eq("beforemiddleafter")
|
12
|
+
end
|
13
|
+
|
14
|
+
it "should raise a clear error if you try to 'yield' from #content and there is no block passed" do
|
15
|
+
wc = widget_class do
|
16
|
+
def content
|
17
|
+
text "before"
|
18
|
+
yield
|
19
|
+
text "after"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
instance = wc.new
|
24
|
+
e = capture_exception(::Fortitude::Errors::NoBlockToYieldTo) { render(instance) }
|
25
|
+
expect(e.message).to match(/#{Regexp.escape(instance.to_s)}/)
|
26
|
+
expect(e.widget).to eq(instance)
|
27
|
+
end
|
28
|
+
|
29
|
+
it "should allow you to pass the block from #content to another method and run it from there just fine" do
|
30
|
+
wc = widget_class do
|
31
|
+
def content(&block)
|
32
|
+
text "before"
|
33
|
+
foo(&block)
|
34
|
+
text "after"
|
35
|
+
end
|
36
|
+
|
37
|
+
def foo
|
38
|
+
text "inner_before"
|
39
|
+
yield
|
40
|
+
text "inner_after"
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
expect(render(wc.new { |widget| widget.text "middle" })).to eq("beforeinner_beforemiddleinner_afterafter")
|
45
|
+
end
|
46
|
+
|
47
|
+
it "should allow you to call that same block using #yield_from_widget in #content" do
|
48
|
+
wc = widget_class do
|
49
|
+
def content
|
50
|
+
text "before"
|
51
|
+
yield_from_widget
|
52
|
+
text "after"
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
expect(render(wc.new { |widget| widget.text "middle" })).to eq("beforemiddleafter")
|
57
|
+
end
|
58
|
+
|
59
|
+
it "should allow you to call that same block using #yield_from_widget in some other method, too" do
|
60
|
+
wc = widget_class do
|
61
|
+
def content
|
62
|
+
text "before"
|
63
|
+
foo
|
64
|
+
text "after"
|
65
|
+
end
|
66
|
+
|
67
|
+
def foo
|
68
|
+
text "inner_before"
|
69
|
+
yield_from_widget
|
70
|
+
text "inner_after"
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
expect(render(wc.new { |widget| widget.text "middle" })).to eq("beforeinner_beforemiddleinner_afterafter")
|
75
|
+
end
|
76
|
+
|
77
|
+
it "should allow you to pass a block to #widget, and it should work the same way as passing it to the constructor" do
|
78
|
+
wc_sub = widget_class do
|
79
|
+
def content
|
80
|
+
text "inner_before"
|
81
|
+
yield
|
82
|
+
text "inner_after"
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
wc = widget_class do
|
87
|
+
cattr_accessor :other_widget_class
|
88
|
+
|
89
|
+
def content
|
90
|
+
text "before"
|
91
|
+
widget(self.class.other_widget_class) { text "middle" }
|
92
|
+
text "after"
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
wc.other_widget_class = wc_sub
|
97
|
+
expect(render(wc.new)).to eq("beforeinner_beforemiddleinner_afterafter")
|
98
|
+
end
|
99
|
+
|
100
|
+
it "should allow you to pass a block to #widget, and it should work the same way as passing it to the constructor, even if #widget is given a fully-intantiated widget" do
|
101
|
+
wc_sub = widget_class do
|
102
|
+
def content
|
103
|
+
text "inner_before"
|
104
|
+
yield
|
105
|
+
text "inner_after"
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
wc = widget_class do
|
110
|
+
cattr_accessor :other_widget_class
|
111
|
+
|
112
|
+
def content
|
113
|
+
text "before"
|
114
|
+
sub_widget = self.class.other_widget_class.new
|
115
|
+
widget(sub_widget) { text "middle" }
|
116
|
+
text "after"
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
wc.other_widget_class = wc_sub
|
121
|
+
expect(render(wc.new)).to eq("beforeinner_beforemiddleinner_afterafter")
|
122
|
+
end
|
123
|
+
|
124
|
+
it "should use the block passed to #widget in preference to the one in the constructor, if both are passed" do
|
125
|
+
wc_sub = widget_class do
|
126
|
+
def content
|
127
|
+
text "inner_before"
|
128
|
+
yield
|
129
|
+
text "inner_after"
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
133
|
+
wc = widget_class do
|
134
|
+
cattr_accessor :other_widget_class
|
135
|
+
|
136
|
+
def content
|
137
|
+
text "before"
|
138
|
+
sub_widget = self.class.other_widget_class.new { text "foobar" }
|
139
|
+
widget(sub_widget) { text "middle" }
|
140
|
+
text "after"
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
wc.other_widget_class = wc_sub
|
145
|
+
expect(render(wc.new)).to eq("beforeinner_beforemiddleinner_afterafter")
|
146
|
+
end
|
147
|
+
|
148
|
+
it "should use the block passed to the constructor in preference to the layout, if both exist" do
|
149
|
+
the_rc = rc(:yield_block => lambda { raise "kaboomba" })
|
150
|
+
|
151
|
+
wc = widget_class do
|
152
|
+
def content
|
153
|
+
text "before"
|
154
|
+
yield
|
155
|
+
text "after"
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
expect(render(wc.new { |widget| widget.text "middle" }, :rendering_context => the_rc)).to eq("beforemiddleafter")
|
160
|
+
end
|
161
|
+
|
162
|
+
it "should use the block passed to #content in preference to the one from the constructor or the layout" do
|
163
|
+
the_rc = rc(:yield_block => lambda { raise "kaboomba" })
|
164
|
+
|
165
|
+
wc_sub = widget_class do
|
166
|
+
def content
|
167
|
+
text "inner_before"
|
168
|
+
yield
|
169
|
+
text "inner_after"
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
wc = widget_class do
|
174
|
+
cattr_accessor :other_widget_class
|
175
|
+
|
176
|
+
def content
|
177
|
+
text "before"
|
178
|
+
other = self.class.other_widget_class.new { text "foobar" }
|
179
|
+
widget(other) { text "middle" }
|
180
|
+
text "after"
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
184
|
+
wc.other_widget_class = wc_sub
|
185
|
+
|
186
|
+
expect(render(wc.new { |widget| widget.text "constructor" }, :rendering_context => the_rc)).to eq("beforeinner_beforemiddleinner_afterafter")
|
187
|
+
end
|
188
|
+
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.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Geweke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -170,7 +170,7 @@ files:
|
|
170
170
|
- lib/fortitude/method_templates/assign_locals_from_template.rb.smpl
|
171
171
|
- lib/fortitude/method_templates/need_assignment_template.rb.smpl
|
172
172
|
- lib/fortitude/method_templates/need_method_template.rb.smpl
|
173
|
-
- lib/fortitude/method_templates/
|
173
|
+
- lib/fortitude/method_templates/simple_compiled_template.rb
|
174
174
|
- lib/fortitude/method_templates/tag_method_template.rb.smpl
|
175
175
|
- lib/fortitude/method_templates/text_method_template.rb.smpl
|
176
176
|
- lib/fortitude/rails.rb
|
@@ -270,12 +270,15 @@ files:
|
|
270
270
|
- spec/rails/templates/class_loading_system_spec/app/models/views/app_models_helper.rb
|
271
271
|
- spec/rails/templates/class_loading_system_spec/app/models/views/models_widget.rb
|
272
272
|
- spec/rails/templates/class_loading_system_spec/app/views/autoload_namespace/autoload_widget.rb
|
273
|
+
- spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/_foo.rb
|
273
274
|
- spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/_loaded_underscore_widget.rb
|
274
275
|
- spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/_underscore_view.rb
|
275
|
-
- spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/_underscore_widget.rb
|
276
276
|
- spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/app_models.rb
|
277
277
|
- spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/autoload_one_widget_from_another.rb
|
278
|
+
- spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/bar.html.rb
|
279
|
+
- spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/bar.rb
|
278
280
|
- spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/class_should_not_load.rb
|
281
|
+
- spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/foo.rb
|
279
282
|
- spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/lib_views.rb
|
280
283
|
- spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/use_lib_widget_from_view_widget.rb
|
281
284
|
- spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/use_models_widget_from_view_widget.rb
|
@@ -332,9 +335,11 @@ files:
|
|
332
335
|
- spec/rails/templates/development_mode_system_spec/app/controllers/development_mode_system_spec_controller.rb
|
333
336
|
- spec/rails/templates/development_mode_system_spec/app/controllers/replaced_controller.rb
|
334
337
|
- spec/rails/templates/development_mode_system_spec/app/mailers/development_mode_mailer.rb
|
338
|
+
- spec/rails/templates/development_mode_system_spec/app/views/base.rb
|
335
339
|
- spec/rails/templates/development_mode_system_spec/app/views/development_mode_mailer/mailer_formatting_test.rb
|
336
340
|
- spec/rails/templates/development_mode_system_spec/app/views/development_mode_mailer/mailer_layout_test.rb
|
337
341
|
- spec/rails/templates/development_mode_system_spec/app/views/development_mode_mailer/mailer_view_test.rb
|
342
|
+
- spec/rails/templates/development_mode_system_spec/app/views/development_mode_system_spec/form.rb
|
338
343
|
- spec/rails/templates/development_mode_system_spec/app/views/development_mode_system_spec/mailer_formatting_test.rb
|
339
344
|
- spec/rails/templates/development_mode_system_spec/app/views/development_mode_system_spec/mailer_layout_test.rb
|
340
345
|
- spec/rails/templates/development_mode_system_spec/app/views/development_mode_system_spec/mailer_view_test.rb
|
@@ -362,6 +367,8 @@ files:
|
|
362
367
|
- spec/rails/templates/erector_coexistence_system_spec/app/v/views/erector_coexistence_system_spec/fortitude_widget_in_app_v_views.rb
|
363
368
|
- spec/rails/templates/erector_coexistence_system_spec/app/views/erector_coexistence_system_spec/erector_widget_in_app_views.rb
|
364
369
|
- spec/rails/templates/erector_coexistence_system_spec/app/views/erector_coexistence_system_spec/fortitude_widget_in_app_views.rb
|
370
|
+
- spec/rails/templates/erector_coexistence_system_spec/app/views/erector_widget.rb
|
371
|
+
- spec/rails/templates/erector_coexistence_system_spec/app/views/fortitude_widget.rb
|
365
372
|
- spec/rails/templates/erector_coexistence_system_spec/config/application.rb
|
366
373
|
- spec/rails/templates/helpers_include_all_off_system_spec/app/controllers/helpers_include_all_off_system_spec_controller.rb
|
367
374
|
- spec/rails/templates/helpers_include_all_off_system_spec/app/helpers/application_helper.rb
|
@@ -454,6 +461,7 @@ files:
|
|
454
461
|
- spec/rails/templates/rendering_context_system_spec/app/views/rendering_context_system_spec/uses_specified_context_through_nesting_inner_partial.rb
|
455
462
|
- spec/rails/templates/rendering_context_system_spec/lib/simple_rc.rb
|
456
463
|
- spec/rails/templates/rendering_system_spec/app/controllers/rendering_system_spec_controller.rb
|
464
|
+
- spec/rails/templates/rendering_system_spec/app/helpers/application_helper.rb
|
457
465
|
- spec/rails/templates/rendering_system_spec/app/views/layouts/application.html.erb
|
458
466
|
- spec/rails/templates/rendering_system_spec/app/views/rendering_system_spec/_layout_for_partial.html.erb
|
459
467
|
- spec/rails/templates/rendering_system_spec/app/views/rendering_system_spec/_the_partial.html.erb
|
@@ -475,6 +483,8 @@ files:
|
|
475
483
|
- spec/rails/templates/rendering_system_spec/app/views/rendering_system_spec/widget_with_name.rb
|
476
484
|
- spec/rails/templates/rendering_system_spec/app/views/rendering_system_spec/word.rb
|
477
485
|
- spec/rails/templates/rendering_system_spec/app/views/widget_to_render.rb
|
486
|
+
- spec/rails/templates/rendering_system_spec/app/views/widget_to_render_class_only.rb
|
487
|
+
- spec/rails/templates/rendering_system_spec/app/views/widget_to_render_with_helper.rb
|
478
488
|
- spec/rails/templates/rules_system_spec/app/controllers/rules_system_spec_controller.rb
|
479
489
|
- spec/rails/templates/rules_system_spec/app/views/layouts/fortitude_layout_with_p.rb
|
480
490
|
- spec/rails/templates/rules_system_spec/app/views/rules_system_spec/_intervening_partial_erb_partial.html.erb
|
@@ -527,6 +537,7 @@ files:
|
|
527
537
|
- spec/system/widget_class_from_spec.rb
|
528
538
|
- spec/system/widget_method_system_spec.rb
|
529
539
|
- spec/system/widget_return_values_system_spec.rb
|
540
|
+
- spec/system/yield_system_spec.rb
|
530
541
|
homepage: https://github.com/ageweke/fortitude
|
531
542
|
licenses:
|
532
543
|
- MIT
|
@@ -597,12 +608,15 @@ test_files:
|
|
597
608
|
- spec/rails/templates/class_loading_system_spec/app/models/views/app_models_helper.rb
|
598
609
|
- spec/rails/templates/class_loading_system_spec/app/models/views/models_widget.rb
|
599
610
|
- spec/rails/templates/class_loading_system_spec/app/views/autoload_namespace/autoload_widget.rb
|
611
|
+
- spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/_foo.rb
|
600
612
|
- spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/_loaded_underscore_widget.rb
|
601
613
|
- spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/_underscore_view.rb
|
602
|
-
- spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/_underscore_widget.rb
|
603
614
|
- spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/app_models.rb
|
604
615
|
- spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/autoload_one_widget_from_another.rb
|
616
|
+
- spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/bar.html.rb
|
617
|
+
- spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/bar.rb
|
605
618
|
- spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/class_should_not_load.rb
|
619
|
+
- spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/foo.rb
|
606
620
|
- spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/lib_views.rb
|
607
621
|
- spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/use_lib_widget_from_view_widget.rb
|
608
622
|
- spec/rails/templates/class_loading_system_spec/app/views/class_loading_system_spec/use_models_widget_from_view_widget.rb
|
@@ -659,9 +673,11 @@ test_files:
|
|
659
673
|
- spec/rails/templates/development_mode_system_spec/app/controllers/development_mode_system_spec_controller.rb
|
660
674
|
- spec/rails/templates/development_mode_system_spec/app/controllers/replaced_controller.rb
|
661
675
|
- spec/rails/templates/development_mode_system_spec/app/mailers/development_mode_mailer.rb
|
676
|
+
- spec/rails/templates/development_mode_system_spec/app/views/base.rb
|
662
677
|
- spec/rails/templates/development_mode_system_spec/app/views/development_mode_mailer/mailer_formatting_test.rb
|
663
678
|
- spec/rails/templates/development_mode_system_spec/app/views/development_mode_mailer/mailer_layout_test.rb
|
664
679
|
- spec/rails/templates/development_mode_system_spec/app/views/development_mode_mailer/mailer_view_test.rb
|
680
|
+
- spec/rails/templates/development_mode_system_spec/app/views/development_mode_system_spec/form.rb
|
665
681
|
- spec/rails/templates/development_mode_system_spec/app/views/development_mode_system_spec/mailer_formatting_test.rb
|
666
682
|
- spec/rails/templates/development_mode_system_spec/app/views/development_mode_system_spec/mailer_layout_test.rb
|
667
683
|
- spec/rails/templates/development_mode_system_spec/app/views/development_mode_system_spec/mailer_view_test.rb
|
@@ -689,6 +705,8 @@ test_files:
|
|
689
705
|
- spec/rails/templates/erector_coexistence_system_spec/app/v/views/erector_coexistence_system_spec/fortitude_widget_in_app_v_views.rb
|
690
706
|
- spec/rails/templates/erector_coexistence_system_spec/app/views/erector_coexistence_system_spec/erector_widget_in_app_views.rb
|
691
707
|
- spec/rails/templates/erector_coexistence_system_spec/app/views/erector_coexistence_system_spec/fortitude_widget_in_app_views.rb
|
708
|
+
- spec/rails/templates/erector_coexistence_system_spec/app/views/erector_widget.rb
|
709
|
+
- spec/rails/templates/erector_coexistence_system_spec/app/views/fortitude_widget.rb
|
692
710
|
- spec/rails/templates/erector_coexistence_system_spec/config/application.rb
|
693
711
|
- spec/rails/templates/helpers_include_all_off_system_spec/app/controllers/helpers_include_all_off_system_spec_controller.rb
|
694
712
|
- spec/rails/templates/helpers_include_all_off_system_spec/app/helpers/application_helper.rb
|
@@ -781,6 +799,7 @@ test_files:
|
|
781
799
|
- spec/rails/templates/rendering_context_system_spec/app/views/rendering_context_system_spec/uses_specified_context_through_nesting_inner_partial.rb
|
782
800
|
- spec/rails/templates/rendering_context_system_spec/lib/simple_rc.rb
|
783
801
|
- spec/rails/templates/rendering_system_spec/app/controllers/rendering_system_spec_controller.rb
|
802
|
+
- spec/rails/templates/rendering_system_spec/app/helpers/application_helper.rb
|
784
803
|
- spec/rails/templates/rendering_system_spec/app/views/layouts/application.html.erb
|
785
804
|
- spec/rails/templates/rendering_system_spec/app/views/rendering_system_spec/_layout_for_partial.html.erb
|
786
805
|
- spec/rails/templates/rendering_system_spec/app/views/rendering_system_spec/_the_partial.html.erb
|
@@ -802,6 +821,8 @@ test_files:
|
|
802
821
|
- spec/rails/templates/rendering_system_spec/app/views/rendering_system_spec/widget_with_name.rb
|
803
822
|
- spec/rails/templates/rendering_system_spec/app/views/rendering_system_spec/word.rb
|
804
823
|
- spec/rails/templates/rendering_system_spec/app/views/widget_to_render.rb
|
824
|
+
- spec/rails/templates/rendering_system_spec/app/views/widget_to_render_class_only.rb
|
825
|
+
- spec/rails/templates/rendering_system_spec/app/views/widget_to_render_with_helper.rb
|
805
826
|
- spec/rails/templates/rules_system_spec/app/controllers/rules_system_spec_controller.rb
|
806
827
|
- spec/rails/templates/rules_system_spec/app/views/layouts/fortitude_layout_with_p.rb
|
807
828
|
- spec/rails/templates/rules_system_spec/app/views/rules_system_spec/_intervening_partial_erb_partial.html.erb
|
@@ -854,3 +875,4 @@ test_files:
|
|
854
875
|
- spec/system/widget_class_from_spec.rb
|
855
876
|
- spec/system/widget_method_system_spec.rb
|
856
877
|
- spec/system/widget_return_values_system_spec.rb
|
878
|
+
- spec/system/yield_system_spec.rb
|