fortitude 0.9.5-java → 0.9.6-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +11 -0
  3. data/CONTRIBUTORS.md +4 -0
  4. data/fortitude.gemspec +1 -1
  5. data/lib/fortitude/rails/helpers.rb +20 -1
  6. data/lib/fortitude/rails/railtie.rb +2 -0
  7. data/lib/fortitude/rails/yielded_object_outputter.rb +3 -0
  8. data/lib/fortitude/version.rb +1 -1
  9. data/lib/fortitude/widget/integration.rb +15 -1
  10. data/lib/rails/generators/fortitude/base_view/base_view_generator.rb +13 -0
  11. data/lib/rails/generators/fortitude/base_view/templates/views_base.rb +230 -0
  12. data/lib/rails/generators/fortitude/controller/controller_generator.rb +18 -0
  13. data/lib/rails/generators/fortitude/controller/templates/view.html.rb +6 -0
  14. data/lib/rails/generators/fortitude/controller/templates/views_base.rb +230 -0
  15. data/lib/rails/generators/fortitude/mailer/mailer_generator.rb +26 -0
  16. data/lib/rails/generators/fortitude/mailer/templates/layout.html.rb +9 -0
  17. data/lib/rails/generators/fortitude/mailer/templates/view.html.rb +12 -0
  18. data/lib/rails/generators/fortitude/scaffold/scaffold_generator.rb +29 -0
  19. data/lib/rails/generators/fortitude/scaffold/templates/edit.html.rb +13 -0
  20. data/lib/rails/generators/fortitude/scaffold/templates/form.html.rb +44 -0
  21. data/lib/rails/generators/fortitude/scaffold/templates/index.html.rb +45 -0
  22. data/lib/rails/generators/fortitude/scaffold/templates/new.html.rb +11 -0
  23. data/lib/rails/generators/fortitude/scaffold/templates/show.html.rb +18 -0
  24. data/spec/rails/complex_helpers_system_spec.rb +6 -0
  25. data/spec/rails/data_passing_system_spec.rb +4 -0
  26. data/spec/rails/generators_system_spec.rb +166 -0
  27. data/spec/rails/templates/complex_helpers_system_spec/app/controllers/carryover_controller.rb +11 -0
  28. data/spec/rails/templates/complex_helpers_system_spec/app/views/carryover/show.html.rb +9 -0
  29. data/spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/form_for_test.rb +2 -0
  30. data/spec/rails/templates/complex_helpers_system_spec/config/routes.rb +6 -0
  31. data/spec/rails/templates/data_passing_system_spec/app/controllers/data_passing_system_spec_controller.rb +5 -0
  32. data/spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/nil_data_widget.rb +8 -0
  33. data/spec/rails/templates/generators_system_spec/config/environments/development.rb +39 -0
  34. metadata +30 -4
@@ -5,6 +5,8 @@ class Views::ComplexHelpersSystemSpec::FormForTest < Fortitude::Widgets::Html5
5
5
  text "INSIDE_BEFORE"
6
6
  text "FIRST: "
7
7
  f.text_field :first_name
8
+ text "MIDDLE: "
9
+ f.send(:text_field, :middle_name)
8
10
  text "LAST: "
9
11
  f.text_field :last_name
10
12
  text "INSIDE_AFTER"
@@ -0,0 +1,6 @@
1
+ app_class = "#{File.basename(Rails.root).camelize}::Application".constantize
2
+ app_class.routes.draw do
3
+ resources :carryover
4
+
5
+ get ':controller/:action'
6
+ end
@@ -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,8 @@
1
+ class Views::DataPassingSystemSpec::NilDataWidget < Fortitude::Widgets::Html5
2
+ needs :foo, :bar
3
+
4
+ def content
5
+ p "foo is: #{foo.inspect}"
6
+ p "bar is: #{bar.inspect}"
7
+ end
8
+ 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.5
4
+ version: 0.9.6
5
5
  platform: java
6
6
  authors:
7
7
  - Andrew Geweke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-13 00:00:00.000000000 Z
11
+ date: 2016-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -128,12 +128,12 @@ dependencies:
128
128
  requirements:
129
129
  - - ">="
130
130
  - !ruby/object:Gem::Version
131
- version: 0.0.22
131
+ version: 0.0.24
132
132
  version_requirements: !ruby/object:Gem::Requirement
133
133
  requirements:
134
134
  - - ">="
135
135
  - !ruby/object:Gem::Version
136
- version: 0.0.22
136
+ version: 0.0.24
137
137
  prerelease: false
138
138
  type: :development
139
139
  description: 'Views Are Code: use all the power of Ruby to build views in your own
@@ -324,6 +324,20 @@ files:
324
324
  - lib/fortitude/widgets/xhtml10_transitional.rb
325
325
  - lib/fortitude/widgets/xhtml11.rb
326
326
  - lib/fortitude_jruby_native_ext.jar
327
+ - lib/rails/generators/fortitude/base_view/base_view_generator.rb
328
+ - lib/rails/generators/fortitude/base_view/templates/views_base.rb
329
+ - lib/rails/generators/fortitude/controller/controller_generator.rb
330
+ - lib/rails/generators/fortitude/controller/templates/view.html.rb
331
+ - lib/rails/generators/fortitude/controller/templates/views_base.rb
332
+ - lib/rails/generators/fortitude/mailer/mailer_generator.rb
333
+ - lib/rails/generators/fortitude/mailer/templates/layout.html.rb
334
+ - lib/rails/generators/fortitude/mailer/templates/view.html.rb
335
+ - lib/rails/generators/fortitude/scaffold/scaffold_generator.rb
336
+ - lib/rails/generators/fortitude/scaffold/templates/edit.html.rb
337
+ - lib/rails/generators/fortitude/scaffold/templates/form.html.rb
338
+ - lib/rails/generators/fortitude/scaffold/templates/index.html.rb
339
+ - lib/rails/generators/fortitude/scaffold/templates/new.html.rb
340
+ - lib/rails/generators/fortitude/scaffold/templates/show.html.rb
327
341
  - spec/helpers/fortitude_rails_helpers.rb
328
342
  - spec/helpers/global_helper.rb
329
343
  - spec/helpers/system_helpers.rb
@@ -336,6 +350,7 @@ files:
336
350
  - spec/rails/development_mode_system_spec.rb
337
351
  - spec/rails/erb_integration_system_spec.rb
338
352
  - spec/rails/erector_coexistence_system_spec.rb
353
+ - spec/rails/generators_system_spec.rb
339
354
  - spec/rails/helpers_include_all_off_system_spec.rb
340
355
  - spec/rails/helpers_system_spec.rb
341
356
  - spec/rails/helpers_unrefined_system_spec.rb
@@ -390,7 +405,9 @@ files:
390
405
  - spec/rails/templates/class_loading_system_spec/lib/views/class_loading_system_spec/lib_views_helper.rb
391
406
  - spec/rails/templates/class_loading_system_spec/lib/views/class_loading_system_spec/widget_defined_outside_app_views.rb
392
407
  - spec/rails/templates/class_loading_system_spec/lib/views/lib_widget.rb
408
+ - spec/rails/templates/complex_helpers_system_spec/app/controllers/carryover_controller.rb
393
409
  - spec/rails/templates/complex_helpers_system_spec/app/controllers/complex_helpers_system_spec_controller.rb
410
+ - spec/rails/templates/complex_helpers_system_spec/app/views/carryover/show.html.rb
394
411
  - spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/cache_tags_test.rb
395
412
  - spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/cache_test.rb
396
413
  - spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/fields_for_test.rb
@@ -398,6 +415,7 @@ files:
398
415
  - spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/label_block_test.rb
399
416
  - spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/nesting_test.rb
400
417
  - spec/rails/templates/complex_helpers_system_spec/config/environments/development.rb
418
+ - spec/rails/templates/complex_helpers_system_spec/config/routes.rb
401
419
  - spec/rails/templates/data_passing_system_spec/app/controllers/data_passing_system_spec_controller.rb
402
420
  - spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/_erb_to_parallel_widget_handoff_erb.html.erb
403
421
  - spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/_implicit_erb_to_widget_handoff_erb.html.erb
@@ -421,6 +439,7 @@ files:
421
439
  - spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/implicit_variable_read_inner.rb
422
440
  - spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/implicit_variable_write.html.erb
423
441
  - spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/implicit_variable_write_widget.rb
442
+ - spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/nil_data_widget.rb
424
443
  - spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/parent_to_child_passing.rb
425
444
  - spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/parent_to_child_passing_child.rb
426
445
  - spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/parent_to_child_passing_partial.rb
@@ -488,6 +507,7 @@ files:
488
507
  - spec/rails/templates/erector_coexistence_system_spec/app/views/erector_widget.rb
489
508
  - spec/rails/templates/erector_coexistence_system_spec/app/views/fortitude_widget.rb
490
509
  - spec/rails/templates/erector_coexistence_system_spec/config/application.rb
510
+ - spec/rails/templates/generators_system_spec/config/environments/development.rb
491
511
  - spec/rails/templates/helpers_include_all_off_system_spec/app/controllers/helpers_include_all_off_system_spec_controller.rb
492
512
  - spec/rails/templates/helpers_include_all_off_system_spec/app/helpers/application_helper.rb
493
513
  - spec/rails/templates/helpers_include_all_off_system_spec/app/helpers/some_helper.rb
@@ -710,6 +730,7 @@ test_files:
710
730
  - spec/rails/development_mode_system_spec.rb
711
731
  - spec/rails/erb_integration_system_spec.rb
712
732
  - spec/rails/erector_coexistence_system_spec.rb
733
+ - spec/rails/generators_system_spec.rb
713
734
  - spec/rails/helpers_include_all_off_system_spec.rb
714
735
  - spec/rails/helpers_system_spec.rb
715
736
  - spec/rails/helpers_unrefined_system_spec.rb
@@ -764,7 +785,9 @@ test_files:
764
785
  - spec/rails/templates/class_loading_system_spec/lib/views/class_loading_system_spec/lib_views_helper.rb
765
786
  - spec/rails/templates/class_loading_system_spec/lib/views/class_loading_system_spec/widget_defined_outside_app_views.rb
766
787
  - spec/rails/templates/class_loading_system_spec/lib/views/lib_widget.rb
788
+ - spec/rails/templates/complex_helpers_system_spec/app/controllers/carryover_controller.rb
767
789
  - spec/rails/templates/complex_helpers_system_spec/app/controllers/complex_helpers_system_spec_controller.rb
790
+ - spec/rails/templates/complex_helpers_system_spec/app/views/carryover/show.html.rb
768
791
  - spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/cache_tags_test.rb
769
792
  - spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/cache_test.rb
770
793
  - spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/fields_for_test.rb
@@ -772,6 +795,7 @@ test_files:
772
795
  - spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/label_block_test.rb
773
796
  - spec/rails/templates/complex_helpers_system_spec/app/views/complex_helpers_system_spec/nesting_test.rb
774
797
  - spec/rails/templates/complex_helpers_system_spec/config/environments/development.rb
798
+ - spec/rails/templates/complex_helpers_system_spec/config/routes.rb
775
799
  - spec/rails/templates/data_passing_system_spec/app/controllers/data_passing_system_spec_controller.rb
776
800
  - spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/_erb_to_parallel_widget_handoff_erb.html.erb
777
801
  - spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/_implicit_erb_to_widget_handoff_erb.html.erb
@@ -795,6 +819,7 @@ test_files:
795
819
  - spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/implicit_variable_read_inner.rb
796
820
  - spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/implicit_variable_write.html.erb
797
821
  - spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/implicit_variable_write_widget.rb
822
+ - spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/nil_data_widget.rb
798
823
  - spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/parent_to_child_passing.rb
799
824
  - spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/parent_to_child_passing_child.rb
800
825
  - spec/rails/templates/data_passing_system_spec/app/views/data_passing_system_spec/parent_to_child_passing_partial.rb
@@ -862,6 +887,7 @@ test_files:
862
887
  - spec/rails/templates/erector_coexistence_system_spec/app/views/erector_widget.rb
863
888
  - spec/rails/templates/erector_coexistence_system_spec/app/views/fortitude_widget.rb
864
889
  - spec/rails/templates/erector_coexistence_system_spec/config/application.rb
890
+ - spec/rails/templates/generators_system_spec/config/environments/development.rb
865
891
  - spec/rails/templates/helpers_include_all_off_system_spec/app/controllers/helpers_include_all_off_system_spec_controller.rb
866
892
  - spec/rails/templates/helpers_include_all_off_system_spec/app/helpers/application_helper.rb
867
893
  - spec/rails/templates/helpers_include_all_off_system_spec/app/helpers/some_helper.rb