fortitude 0.9.5 → 0.9.6
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 +11 -0
- data/CONTRIBUTORS.md +4 -0
- data/fortitude.gemspec +1 -1
- data/lib/fortitude/rails/helpers.rb +20 -1
- data/lib/fortitude/rails/railtie.rb +2 -0
- data/lib/fortitude/rails/yielded_object_outputter.rb +3 -0
- data/lib/fortitude/version.rb +1 -1
- data/lib/fortitude/widget/integration.rb +15 -1
- data/lib/rails/generators/fortitude/base_view/base_view_generator.rb +13 -0
- data/lib/rails/generators/fortitude/base_view/templates/views_base.rb +230 -0
- data/lib/rails/generators/fortitude/controller/controller_generator.rb +18 -0
- data/lib/rails/generators/fortitude/controller/templates/view.html.rb +6 -0
- data/lib/rails/generators/fortitude/controller/templates/views_base.rb +230 -0
- data/lib/rails/generators/fortitude/mailer/mailer_generator.rb +26 -0
- data/lib/rails/generators/fortitude/mailer/templates/layout.html.rb +9 -0
- data/lib/rails/generators/fortitude/mailer/templates/view.html.rb +12 -0
- data/lib/rails/generators/fortitude/scaffold/scaffold_generator.rb +29 -0
- data/lib/rails/generators/fortitude/scaffold/templates/edit.html.rb +13 -0
- data/lib/rails/generators/fortitude/scaffold/templates/form.html.rb +44 -0
- data/lib/rails/generators/fortitude/scaffold/templates/index.html.rb +45 -0
- data/lib/rails/generators/fortitude/scaffold/templates/new.html.rb +11 -0
- data/lib/rails/generators/fortitude/scaffold/templates/show.html.rb +18 -0
- data/spec/rails/complex_helpers_system_spec.rb +6 -0
- data/spec/rails/data_passing_system_spec.rb +4 -0
- data/spec/rails/generators_system_spec.rb +166 -0
- data/spec/rails/templates/complex_helpers_system_spec/app/controllers/carryover_controller.rb +11 -0
- data/spec/rails/templates/complex_helpers_system_spec/app/views/carryover/show.html.rb +9 -0
- data/spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/form_for_test.rb +2 -0
- data/spec/rails/templates/complex_helpers_system_spec/config/routes.rb +6 -0
- data/spec/rails/templates/data_passing_system_spec/app/controllers/data_passing_system_spec_controller.rb +5 -0
- data/spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/nil_data_widget.rb +8 -0
- data/spec/rails/templates/generators_system_spec/config/environments/development.rb +39 -0
- metadata +30 -4
@@ -12,6 +12,11 @@ class DataPassingSystemSpecController < ApplicationController
|
|
12
12
|
render :action => 'passing_data_widget'
|
13
13
|
end
|
14
14
|
|
15
|
+
def nil_data_widget
|
16
|
+
@foo = "the_foo"
|
17
|
+
@bar = nil
|
18
|
+
end
|
19
|
+
|
15
20
|
def passing_locals_widget
|
16
21
|
render :locals => { :foo => 'local_foo', :bar => 'local_bar' }
|
17
22
|
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
GeneratorsSystemSpec::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# In the development environment your application's code is reloaded on
|
5
|
+
# every request. This slows down response time but is perfect for development
|
6
|
+
# since you don't have to restart the web server when you make code changes.
|
7
|
+
config.cache_classes = false
|
8
|
+
|
9
|
+
# Do not eager load code on boot.
|
10
|
+
config.eager_load = false
|
11
|
+
|
12
|
+
# Show full error reports and disable caching.
|
13
|
+
config.consider_all_requests_local = true
|
14
|
+
config.action_controller.perform_caching = false
|
15
|
+
|
16
|
+
# Don't care if the mailer can't send.
|
17
|
+
config.action_mailer.raise_delivery_errors = false
|
18
|
+
|
19
|
+
# Print deprecation notices to the Rails logger.
|
20
|
+
config.active_support.deprecation = :log
|
21
|
+
|
22
|
+
# Raise an error on page load if there are pending migrations.
|
23
|
+
# config.active_record.migration_error = :page_load
|
24
|
+
|
25
|
+
# Debug mode disables concatenation and preprocessing of assets.
|
26
|
+
# This option may cause significant delays in view rendering with a large
|
27
|
+
# number of complex assets.
|
28
|
+
# config.assets.debug = true
|
29
|
+
|
30
|
+
# Adds additional error checking when serving assets at runtime.
|
31
|
+
# Checks for improperly declared sprockets dependencies.
|
32
|
+
# Raises helpful error messages.
|
33
|
+
# config.assets.raise_runtime_errors = true
|
34
|
+
|
35
|
+
# Raises error for missing translations
|
36
|
+
# config.action_view.raise_on_missing_translations = true
|
37
|
+
|
38
|
+
config.action_mailer.delivery_method = :file
|
39
|
+
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Geweke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -128,14 +128,14 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 0.0.
|
131
|
+
version: 0.0.24
|
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.24
|
139
139
|
description: 'Views Are Code: use all the power of Ruby to build views in your own
|
140
140
|
language.'
|
141
141
|
email:
|
@@ -325,6 +325,20 @@ files:
|
|
325
325
|
- lib/fortitude/widgets/xhtml10_transitional.rb
|
326
326
|
- lib/fortitude/widgets/xhtml11.rb
|
327
327
|
- lib/fortitude_jruby_native_ext.jar
|
328
|
+
- lib/rails/generators/fortitude/base_view/base_view_generator.rb
|
329
|
+
- lib/rails/generators/fortitude/base_view/templates/views_base.rb
|
330
|
+
- lib/rails/generators/fortitude/controller/controller_generator.rb
|
331
|
+
- lib/rails/generators/fortitude/controller/templates/view.html.rb
|
332
|
+
- lib/rails/generators/fortitude/controller/templates/views_base.rb
|
333
|
+
- lib/rails/generators/fortitude/mailer/mailer_generator.rb
|
334
|
+
- lib/rails/generators/fortitude/mailer/templates/layout.html.rb
|
335
|
+
- lib/rails/generators/fortitude/mailer/templates/view.html.rb
|
336
|
+
- lib/rails/generators/fortitude/scaffold/scaffold_generator.rb
|
337
|
+
- lib/rails/generators/fortitude/scaffold/templates/edit.html.rb
|
338
|
+
- lib/rails/generators/fortitude/scaffold/templates/form.html.rb
|
339
|
+
- lib/rails/generators/fortitude/scaffold/templates/index.html.rb
|
340
|
+
- lib/rails/generators/fortitude/scaffold/templates/new.html.rb
|
341
|
+
- lib/rails/generators/fortitude/scaffold/templates/show.html.rb
|
328
342
|
- spec/helpers/fortitude_rails_helpers.rb
|
329
343
|
- spec/helpers/global_helper.rb
|
330
344
|
- spec/helpers/system_helpers.rb
|
@@ -337,6 +351,7 @@ files:
|
|
337
351
|
- spec/rails/development_mode_system_spec.rb
|
338
352
|
- spec/rails/erb_integration_system_spec.rb
|
339
353
|
- spec/rails/erector_coexistence_system_spec.rb
|
354
|
+
- spec/rails/generators_system_spec.rb
|
340
355
|
- spec/rails/helpers_include_all_off_system_spec.rb
|
341
356
|
- spec/rails/helpers_system_spec.rb
|
342
357
|
- spec/rails/helpers_unrefined_system_spec.rb
|
@@ -391,7 +406,9 @@ files:
|
|
391
406
|
- spec/rails/templates/class_loading_system_spec/lib/views/class_loading_system_spec/lib_views_helper.rb
|
392
407
|
- spec/rails/templates/class_loading_system_spec/lib/views/class_loading_system_spec/widget_defined_outside_app_views.rb
|
393
408
|
- spec/rails/templates/class_loading_system_spec/lib/views/lib_widget.rb
|
409
|
+
- spec/rails/templates/complex_helpers_system_spec/app/controllers/carryover_controller.rb
|
394
410
|
- spec/rails/templates/complex_helpers_system_spec/app/controllers/complex_helpers_system_spec_controller.rb
|
411
|
+
- spec/rails/templates/complex_helpers_system_spec/app/views/carryover/show.html.rb
|
395
412
|
- spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/cache_tags_test.rb
|
396
413
|
- spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/cache_test.rb
|
397
414
|
- spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/fields_for_test.rb
|
@@ -399,6 +416,7 @@ files:
|
|
399
416
|
- spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/label_block_test.rb
|
400
417
|
- spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/nesting_test.rb
|
401
418
|
- spec/rails/templates/complex_helpers_system_spec/config/environments/development.rb
|
419
|
+
- spec/rails/templates/complex_helpers_system_spec/config/routes.rb
|
402
420
|
- spec/rails/templates/data_passing_system_spec/app/controllers/data_passing_system_spec_controller.rb
|
403
421
|
- spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/_erb_to_parallel_widget_handoff_erb.html.erb
|
404
422
|
- spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/_implicit_erb_to_widget_handoff_erb.html.erb
|
@@ -422,6 +440,7 @@ files:
|
|
422
440
|
- spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/implicit_variable_read_inner.rb
|
423
441
|
- spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/implicit_variable_write.html.erb
|
424
442
|
- spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/implicit_variable_write_widget.rb
|
443
|
+
- spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/nil_data_widget.rb
|
425
444
|
- spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/parent_to_child_passing.rb
|
426
445
|
- spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/parent_to_child_passing_child.rb
|
427
446
|
- spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/parent_to_child_passing_partial.rb
|
@@ -489,6 +508,7 @@ files:
|
|
489
508
|
- spec/rails/templates/erector_coexistence_system_spec/app/views/erector_widget.rb
|
490
509
|
- spec/rails/templates/erector_coexistence_system_spec/app/views/fortitude_widget.rb
|
491
510
|
- spec/rails/templates/erector_coexistence_system_spec/config/application.rb
|
511
|
+
- spec/rails/templates/generators_system_spec/config/environments/development.rb
|
492
512
|
- spec/rails/templates/helpers_include_all_off_system_spec/app/controllers/helpers_include_all_off_system_spec_controller.rb
|
493
513
|
- spec/rails/templates/helpers_include_all_off_system_spec/app/helpers/application_helper.rb
|
494
514
|
- spec/rails/templates/helpers_include_all_off_system_spec/app/helpers/some_helper.rb
|
@@ -711,6 +731,7 @@ test_files:
|
|
711
731
|
- spec/rails/development_mode_system_spec.rb
|
712
732
|
- spec/rails/erb_integration_system_spec.rb
|
713
733
|
- spec/rails/erector_coexistence_system_spec.rb
|
734
|
+
- spec/rails/generators_system_spec.rb
|
714
735
|
- spec/rails/helpers_include_all_off_system_spec.rb
|
715
736
|
- spec/rails/helpers_system_spec.rb
|
716
737
|
- spec/rails/helpers_unrefined_system_spec.rb
|
@@ -765,7 +786,9 @@ test_files:
|
|
765
786
|
- spec/rails/templates/class_loading_system_spec/lib/views/class_loading_system_spec/lib_views_helper.rb
|
766
787
|
- spec/rails/templates/class_loading_system_spec/lib/views/class_loading_system_spec/widget_defined_outside_app_views.rb
|
767
788
|
- spec/rails/templates/class_loading_system_spec/lib/views/lib_widget.rb
|
789
|
+
- spec/rails/templates/complex_helpers_system_spec/app/controllers/carryover_controller.rb
|
768
790
|
- spec/rails/templates/complex_helpers_system_spec/app/controllers/complex_helpers_system_spec_controller.rb
|
791
|
+
- spec/rails/templates/complex_helpers_system_spec/app/views/carryover/show.html.rb
|
769
792
|
- spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/cache_tags_test.rb
|
770
793
|
- spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/cache_test.rb
|
771
794
|
- spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/fields_for_test.rb
|
@@ -773,6 +796,7 @@ test_files:
|
|
773
796
|
- spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/label_block_test.rb
|
774
797
|
- spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/nesting_test.rb
|
775
798
|
- spec/rails/templates/complex_helpers_system_spec/config/environments/development.rb
|
799
|
+
- spec/rails/templates/complex_helpers_system_spec/config/routes.rb
|
776
800
|
- spec/rails/templates/data_passing_system_spec/app/controllers/data_passing_system_spec_controller.rb
|
777
801
|
- spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/_erb_to_parallel_widget_handoff_erb.html.erb
|
778
802
|
- spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/_implicit_erb_to_widget_handoff_erb.html.erb
|
@@ -796,6 +820,7 @@ test_files:
|
|
796
820
|
- spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/implicit_variable_read_inner.rb
|
797
821
|
- spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/implicit_variable_write.html.erb
|
798
822
|
- spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/implicit_variable_write_widget.rb
|
823
|
+
- spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/nil_data_widget.rb
|
799
824
|
- spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/parent_to_child_passing.rb
|
800
825
|
- spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/parent_to_child_passing_child.rb
|
801
826
|
- spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/parent_to_child_passing_partial.rb
|
@@ -863,6 +888,7 @@ test_files:
|
|
863
888
|
- spec/rails/templates/erector_coexistence_system_spec/app/views/erector_widget.rb
|
864
889
|
- spec/rails/templates/erector_coexistence_system_spec/app/views/fortitude_widget.rb
|
865
890
|
- spec/rails/templates/erector_coexistence_system_spec/config/application.rb
|
891
|
+
- spec/rails/templates/generators_system_spec/config/environments/development.rb
|
866
892
|
- spec/rails/templates/helpers_include_all_off_system_spec/app/controllers/helpers_include_all_off_system_spec_controller.rb
|
867
893
|
- spec/rails/templates/helpers_include_all_off_system_spec/app/helpers/application_helper.rb
|
868
894
|
- spec/rails/templates/helpers_include_all_off_system_spec/app/helpers/some_helper.rb
|