fortitude 0.0.4-java → 0.0.5-java
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/.travis.yml +19 -19
- data/CHANGES.md +31 -0
- data/Gemfile +1 -0
- data/README-erector.md +1 -1
- data/lib/fortitude/erector.rb +32 -0
- data/lib/fortitude/method_templates/tag_method_template.rb.smpl +6 -6
- data/lib/fortitude/method_templates/text_method_template.rb.smpl +3 -3
- data/lib/fortitude/rails/railtie.rb +6 -4
- data/lib/fortitude/rails/renderer.rb +7 -4
- data/lib/fortitude/rails/template_handler.rb +18 -3
- data/lib/fortitude/rendering_context.rb +20 -2
- data/lib/fortitude/tags/render_widget_placeholder.rb +19 -0
- data/lib/fortitude/tags/tag.rb +18 -4
- data/lib/fortitude/tags/tag_return_value.rb +1 -1
- data/lib/fortitude/tags/tag_store.rb +4 -0
- data/lib/fortitude/tilt/fortitude_template.rb +6 -128
- data/lib/fortitude/version.rb +1 -1
- data/lib/fortitude/widget.rb +2 -0
- data/lib/fortitude/widget/files.rb +162 -0
- data/lib/fortitude/widget/integration.rb +5 -3
- data/lib/fortitude/widget/modules_and_subclasses.rb +17 -0
- data/lib/fortitude/widget/rendering.rb +12 -5
- data/lib/fortitude/widget/start_and_end_comments.rb +4 -2
- data/lib/fortitude/widget/tags.rb +6 -1
- data/lib/fortitude/widget/widget_class_inheritable_attributes.rb +7 -0
- data/spec/helpers/rails_server.rb +4 -0
- data/spec/rails/basic_rails_system_spec.rb +4 -0
- data/spec/rails/erector_coexistence_system_spec.rb +33 -0
- data/spec/rails/rendering_context_system_spec.rb +19 -3
- data/spec/rails/rendering_system_spec.rb +6 -0
- data/spec/rails/templates/basic_rails_system_spec/app/controllers/basic_rails_system_spec_controller.rb +5 -0
- data/spec/rails/templates/basic_rails_system_spec/app/views/basic_rails_system_spec/double_render_one.rb +5 -0
- data/spec/rails/templates/basic_rails_system_spec/app/views/basic_rails_system_spec/double_render_three.rb +5 -0
- data/spec/rails/templates/basic_rails_system_spec/app/views/basic_rails_system_spec/double_render_two.rb +9 -0
- data/spec/rails/templates/erector_coexistence_system_spec/app/controllers/erector_coexistence_system_spec_controller.rb +19 -0
- data/spec/rails/templates/erector_coexistence_system_spec/app/v/views/erector_coexistence_system_spec/erector_widget_in_app_v_views.rb +7 -0
- data/spec/rails/templates/erector_coexistence_system_spec/app/v/views/erector_coexistence_system_spec/fortitude_widget_in_app_v_views.rb +7 -0
- data/spec/rails/templates/erector_coexistence_system_spec/app/views/erector_coexistence_system_spec/erector_widget_in_app_views.rb +7 -0
- data/spec/rails/templates/erector_coexistence_system_spec/app/views/erector_coexistence_system_spec/fortitude_widget_in_app_views.rb +7 -0
- data/spec/rails/templates/erector_coexistence_system_spec/config/application.rb +25 -0
- data/spec/rails/templates/rendering_context_system_spec/app/controllers/rendering_context_system_spec_controller.rb +2 -2
- data/spec/rails/templates/rendering_context_system_spec/app/views/rendering_context_system_spec/_current_element_nesting_intermediate.html.erb +3 -0
- data/spec/rails/templates/rendering_context_system_spec/app/views/rendering_context_system_spec/current_element_nesting_child.rb +13 -0
- data/spec/rails/templates/rendering_context_system_spec/app/views/rendering_context_system_spec/current_element_nesting_toplevel.rb +9 -0
- data/spec/rails/templates/rendering_context_system_spec/app/views/rendering_context_system_spec/start_end_widget_through_partials.rb +2 -2
- data/spec/system/convenience_methods_system_spec.rb +22 -0
- data/spec/system/inline_system_spec.rb +2 -2
- data/spec/system/record_tag_emission_system_spec.rb +71 -0
- data/spec/system/rendering_context_system_spec.rb +21 -0
- data/spec/system/setting_inheritance_system_spec.rb +52 -0
- data/spec/system/tag_return_value_system_spec.rb +7 -0
- data/spec/system/tilt_system_spec.rb +13 -18
- data/spec/system/widget_class_from_spec.rb +240 -0
- data/spec/system/widget_method_system_spec.rb +52 -0
- metadata +37 -2
    
        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.5
         | 
| 5 5 | 
             
            platform: java
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Andrew Geweke
         | 
| 8 8 | 
             
            autorequire:
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2014- | 
| 11 | 
            +
            date: 2014-09-24 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: activesupport
         | 
| @@ -148,6 +148,7 @@ files: | |
| 148 148 | 
             
            - lib/fortitude/doctypes/xhtml10_strict.rb
         | 
| 149 149 | 
             
            - lib/fortitude/doctypes/xhtml10_transitional.rb
         | 
| 150 150 | 
             
            - lib/fortitude/doctypes/xhtml11.rb
         | 
| 151 | 
            +
            - lib/fortitude/erector.rb
         | 
| 151 152 | 
             
            - lib/fortitude/errors.rb
         | 
| 152 153 | 
             
            - lib/fortitude/extensions/fortitude_ruby_ext.rb
         | 
| 153 154 | 
             
            - lib/fortitude/extensions/native_extensions.rb
         | 
| @@ -170,6 +171,7 @@ files: | |
| 170 171 | 
             
            - lib/fortitude/support/instance_variable_set.rb
         | 
| 171 172 | 
             
            - lib/fortitude/support/staticized_method.rb
         | 
| 172 173 | 
             
            - lib/fortitude/tags/partial_tag_placeholder.rb
         | 
| 174 | 
            +
            - lib/fortitude/tags/render_widget_placeholder.rb
         | 
| 173 175 | 
             
            - lib/fortitude/tags/tag.rb
         | 
| 174 176 | 
             
            - lib/fortitude/tags/tag_return_value.rb
         | 
| 175 177 | 
             
            - lib/fortitude/tags/tag_store.rb
         | 
| @@ -183,6 +185,7 @@ files: | |
| 183 185 | 
             
            - lib/fortitude/widget/capturing.rb
         | 
| 184 186 | 
             
            - lib/fortitude/widget/content.rb
         | 
| 185 187 | 
             
            - lib/fortitude/widget/doctypes.rb
         | 
| 188 | 
            +
            - lib/fortitude/widget/files.rb
         | 
| 186 189 | 
             
            - lib/fortitude/widget/helpers.rb
         | 
| 187 190 | 
             
            - lib/fortitude/widget/integration.rb
         | 
| 188 191 | 
             
            - lib/fortitude/widget/localization.rb
         | 
| @@ -218,6 +221,7 @@ files: | |
| 218 221 | 
             
            - spec/rails/default_layout_system_spec.rb
         | 
| 219 222 | 
             
            - spec/rails/development_mode_system_spec.rb
         | 
| 220 223 | 
             
            - spec/rails/erb_integration_system_spec.rb
         | 
| 224 | 
            +
            - spec/rails/erector_coexistence_system_spec.rb
         | 
| 221 225 | 
             
            - spec/rails/helpers_include_all_off_system_spec.rb
         | 
| 222 226 | 
             
            - spec/rails/helpers_system_spec.rb
         | 
| 223 227 | 
             
            - spec/rails/helpers_unrefined_system_spec.rb
         | 
| @@ -234,6 +238,9 @@ files: | |
| 234 238 | 
             
            - spec/rails/templates/base/config/routes.rb
         | 
| 235 239 | 
             
            - spec/rails/templates/base/config/secrets.yml
         | 
| 236 240 | 
             
            - spec/rails/templates/basic_rails_system_spec/app/controllers/basic_rails_system_spec_controller.rb
         | 
| 241 | 
            +
            - spec/rails/templates/basic_rails_system_spec/app/views/basic_rails_system_spec/double_render_one.rb
         | 
| 242 | 
            +
            - spec/rails/templates/basic_rails_system_spec/app/views/basic_rails_system_spec/double_render_three.rb
         | 
| 243 | 
            +
            - spec/rails/templates/basic_rails_system_spec/app/views/basic_rails_system_spec/double_render_two.rb
         | 
| 237 244 | 
             
            - spec/rails/templates/basic_rails_system_spec/app/views/basic_rails_system_spec/trivial_widget.rb
         | 
| 238 245 | 
             
            - spec/rails/templates/capture_system_spec/app/controllers/capture_system_spec_controller.rb
         | 
| 239 246 | 
             
            - spec/rails/templates/capture_system_spec/app/views/capture_system_spec/_some_erb_partial.html.erb
         | 
| @@ -324,6 +331,12 @@ files: | |
| 324 331 | 
             
            - spec/rails/templates/erb_integration_system_spec/app/views/erb_integration_system_spec/fortitude_partial_with_underscore.html.erb
         | 
| 325 332 | 
             
            - spec/rails/templates/erb_integration_system_spec/app/views/erb_integration_system_spec/prefers_erb_partial.html.erb
         | 
| 326 333 | 
             
            - spec/rails/templates/erb_integration_system_spec/app/views/erb_integration_system_spec/prefers_erb_partial_partial.rb
         | 
| 334 | 
            +
            - spec/rails/templates/erector_coexistence_system_spec/app/controllers/erector_coexistence_system_spec_controller.rb
         | 
| 335 | 
            +
            - spec/rails/templates/erector_coexistence_system_spec/app/v/views/erector_coexistence_system_spec/erector_widget_in_app_v_views.rb
         | 
| 336 | 
            +
            - spec/rails/templates/erector_coexistence_system_spec/app/v/views/erector_coexistence_system_spec/fortitude_widget_in_app_v_views.rb
         | 
| 337 | 
            +
            - spec/rails/templates/erector_coexistence_system_spec/app/views/erector_coexistence_system_spec/erector_widget_in_app_views.rb
         | 
| 338 | 
            +
            - spec/rails/templates/erector_coexistence_system_spec/app/views/erector_coexistence_system_spec/fortitude_widget_in_app_views.rb
         | 
| 339 | 
            +
            - spec/rails/templates/erector_coexistence_system_spec/config/application.rb
         | 
| 327 340 | 
             
            - spec/rails/templates/helpers_include_all_off_system_spec/app/controllers/helpers_include_all_off_system_spec_controller.rb
         | 
| 328 341 | 
             
            - spec/rails/templates/helpers_include_all_off_system_spec/app/helpers/application_helper.rb
         | 
| 329 342 | 
             
            - spec/rails/templates/helpers_include_all_off_system_spec/app/helpers/some_helper.rb
         | 
| @@ -381,9 +394,12 @@ files: | |
| 381 394 | 
             
            - spec/rails/templates/production_mode_system_spec/app/controllers/production_mode_system_spec_controller.rb
         | 
| 382 395 | 
             
            - spec/rails/templates/production_mode_system_spec/app/views/production_mode_system_spec/sample_output.rb
         | 
| 383 396 | 
             
            - spec/rails/templates/rendering_context_system_spec/app/controllers/rendering_context_system_spec_controller.rb
         | 
| 397 | 
            +
            - spec/rails/templates/rendering_context_system_spec/app/views/rendering_context_system_spec/_current_element_nesting_intermediate.html.erb
         | 
| 384 398 | 
             
            - spec/rails/templates/rendering_context_system_spec/app/views/rendering_context_system_spec/_start_end_widget_through_partials_partial.html.erb
         | 
| 385 399 | 
             
            - spec/rails/templates/rendering_context_system_spec/app/views/rendering_context_system_spec/_uses_direct_context_for_all_widgets_partial.html.erb
         | 
| 386 400 | 
             
            - spec/rails/templates/rendering_context_system_spec/app/views/rendering_context_system_spec/_uses_specified_context_through_nesting_partial.html.erb
         | 
| 401 | 
            +
            - spec/rails/templates/rendering_context_system_spec/app/views/rendering_context_system_spec/current_element_nesting_child.rb
         | 
| 402 | 
            +
            - spec/rails/templates/rendering_context_system_spec/app/views/rendering_context_system_spec/current_element_nesting_toplevel.rb
         | 
| 387 403 | 
             
            - spec/rails/templates/rendering_context_system_spec/app/views/rendering_context_system_spec/render_widget.rb
         | 
| 388 404 | 
             
            - spec/rails/templates/rendering_context_system_spec/app/views/rendering_context_system_spec/start_end_widget_basic.rb
         | 
| 389 405 | 
             
            - spec/rails/templates/rendering_context_system_spec/app/views/rendering_context_system_spec/start_end_widget_basic_inner.rb
         | 
| @@ -456,6 +472,7 @@ files: | |
| 456 472 | 
             
            - spec/system/other_outputters_system_spec.rb
         | 
| 457 473 | 
             
            - spec/system/rails_not_available_spec.rb
         | 
| 458 474 | 
             
            - spec/system/rebuild_notifications_system_spec.rb
         | 
| 475 | 
            +
            - spec/system/record_tag_emission_system_spec.rb
         | 
| 459 476 | 
             
            - spec/system/rendering_context_system_spec.rb
         | 
| 460 477 | 
             
            - spec/system/setting_inheritance_system_spec.rb
         | 
| 461 478 | 
             
            - spec/system/shared_variable_system_spec.rb
         | 
| @@ -468,6 +485,8 @@ files: | |
| 468 485 | 
             
            - spec/system/tilt_system_spec.rb
         | 
| 469 486 | 
             
            - spec/system/unparsed_data_system_spec.rb
         | 
| 470 487 | 
             
            - spec/system/void_tags_system_spec.rb
         | 
| 488 | 
            +
            - spec/system/widget_class_from_spec.rb
         | 
| 489 | 
            +
            - spec/system/widget_method_system_spec.rb
         | 
| 471 490 | 
             
            - spec/system/widget_return_values_system_spec.rb
         | 
| 472 491 | 
             
            homepage: https://github.com/ageweke/fortitude
         | 
| 473 492 | 
             
            licenses:
         | 
| @@ -506,6 +525,7 @@ test_files: | |
| 506 525 | 
             
            - spec/rails/default_layout_system_spec.rb
         | 
| 507 526 | 
             
            - spec/rails/development_mode_system_spec.rb
         | 
| 508 527 | 
             
            - spec/rails/erb_integration_system_spec.rb
         | 
| 528 | 
            +
            - spec/rails/erector_coexistence_system_spec.rb
         | 
| 509 529 | 
             
            - spec/rails/helpers_include_all_off_system_spec.rb
         | 
| 510 530 | 
             
            - spec/rails/helpers_system_spec.rb
         | 
| 511 531 | 
             
            - spec/rails/helpers_unrefined_system_spec.rb
         | 
| @@ -522,6 +542,9 @@ test_files: | |
| 522 542 | 
             
            - spec/rails/templates/base/config/routes.rb
         | 
| 523 543 | 
             
            - spec/rails/templates/base/config/secrets.yml
         | 
| 524 544 | 
             
            - spec/rails/templates/basic_rails_system_spec/app/controllers/basic_rails_system_spec_controller.rb
         | 
| 545 | 
            +
            - spec/rails/templates/basic_rails_system_spec/app/views/basic_rails_system_spec/double_render_one.rb
         | 
| 546 | 
            +
            - spec/rails/templates/basic_rails_system_spec/app/views/basic_rails_system_spec/double_render_three.rb
         | 
| 547 | 
            +
            - spec/rails/templates/basic_rails_system_spec/app/views/basic_rails_system_spec/double_render_two.rb
         | 
| 525 548 | 
             
            - spec/rails/templates/basic_rails_system_spec/app/views/basic_rails_system_spec/trivial_widget.rb
         | 
| 526 549 | 
             
            - spec/rails/templates/capture_system_spec/app/controllers/capture_system_spec_controller.rb
         | 
| 527 550 | 
             
            - spec/rails/templates/capture_system_spec/app/views/capture_system_spec/_some_erb_partial.html.erb
         | 
| @@ -612,6 +635,12 @@ test_files: | |
| 612 635 | 
             
            - spec/rails/templates/erb_integration_system_spec/app/views/erb_integration_system_spec/fortitude_partial_with_underscore.html.erb
         | 
| 613 636 | 
             
            - spec/rails/templates/erb_integration_system_spec/app/views/erb_integration_system_spec/prefers_erb_partial.html.erb
         | 
| 614 637 | 
             
            - spec/rails/templates/erb_integration_system_spec/app/views/erb_integration_system_spec/prefers_erb_partial_partial.rb
         | 
| 638 | 
            +
            - spec/rails/templates/erector_coexistence_system_spec/app/controllers/erector_coexistence_system_spec_controller.rb
         | 
| 639 | 
            +
            - spec/rails/templates/erector_coexistence_system_spec/app/v/views/erector_coexistence_system_spec/erector_widget_in_app_v_views.rb
         | 
| 640 | 
            +
            - spec/rails/templates/erector_coexistence_system_spec/app/v/views/erector_coexistence_system_spec/fortitude_widget_in_app_v_views.rb
         | 
| 641 | 
            +
            - spec/rails/templates/erector_coexistence_system_spec/app/views/erector_coexistence_system_spec/erector_widget_in_app_views.rb
         | 
| 642 | 
            +
            - spec/rails/templates/erector_coexistence_system_spec/app/views/erector_coexistence_system_spec/fortitude_widget_in_app_views.rb
         | 
| 643 | 
            +
            - spec/rails/templates/erector_coexistence_system_spec/config/application.rb
         | 
| 615 644 | 
             
            - spec/rails/templates/helpers_include_all_off_system_spec/app/controllers/helpers_include_all_off_system_spec_controller.rb
         | 
| 616 645 | 
             
            - spec/rails/templates/helpers_include_all_off_system_spec/app/helpers/application_helper.rb
         | 
| 617 646 | 
             
            - spec/rails/templates/helpers_include_all_off_system_spec/app/helpers/some_helper.rb
         | 
| @@ -669,9 +698,12 @@ test_files: | |
| 669 698 | 
             
            - spec/rails/templates/production_mode_system_spec/app/controllers/production_mode_system_spec_controller.rb
         | 
| 670 699 | 
             
            - spec/rails/templates/production_mode_system_spec/app/views/production_mode_system_spec/sample_output.rb
         | 
| 671 700 | 
             
            - spec/rails/templates/rendering_context_system_spec/app/controllers/rendering_context_system_spec_controller.rb
         | 
| 701 | 
            +
            - spec/rails/templates/rendering_context_system_spec/app/views/rendering_context_system_spec/_current_element_nesting_intermediate.html.erb
         | 
| 672 702 | 
             
            - spec/rails/templates/rendering_context_system_spec/app/views/rendering_context_system_spec/_start_end_widget_through_partials_partial.html.erb
         | 
| 673 703 | 
             
            - spec/rails/templates/rendering_context_system_spec/app/views/rendering_context_system_spec/_uses_direct_context_for_all_widgets_partial.html.erb
         | 
| 674 704 | 
             
            - spec/rails/templates/rendering_context_system_spec/app/views/rendering_context_system_spec/_uses_specified_context_through_nesting_partial.html.erb
         | 
| 705 | 
            +
            - spec/rails/templates/rendering_context_system_spec/app/views/rendering_context_system_spec/current_element_nesting_child.rb
         | 
| 706 | 
            +
            - spec/rails/templates/rendering_context_system_spec/app/views/rendering_context_system_spec/current_element_nesting_toplevel.rb
         | 
| 675 707 | 
             
            - spec/rails/templates/rendering_context_system_spec/app/views/rendering_context_system_spec/render_widget.rb
         | 
| 676 708 | 
             
            - spec/rails/templates/rendering_context_system_spec/app/views/rendering_context_system_spec/start_end_widget_basic.rb
         | 
| 677 709 | 
             
            - spec/rails/templates/rendering_context_system_spec/app/views/rendering_context_system_spec/start_end_widget_basic_inner.rb
         | 
| @@ -744,6 +776,7 @@ test_files: | |
| 744 776 | 
             
            - spec/system/other_outputters_system_spec.rb
         | 
| 745 777 | 
             
            - spec/system/rails_not_available_spec.rb
         | 
| 746 778 | 
             
            - spec/system/rebuild_notifications_system_spec.rb
         | 
| 779 | 
            +
            - spec/system/record_tag_emission_system_spec.rb
         | 
| 747 780 | 
             
            - spec/system/rendering_context_system_spec.rb
         | 
| 748 781 | 
             
            - spec/system/setting_inheritance_system_spec.rb
         | 
| 749 782 | 
             
            - spec/system/shared_variable_system_spec.rb
         | 
| @@ -756,4 +789,6 @@ test_files: | |
| 756 789 | 
             
            - spec/system/tilt_system_spec.rb
         | 
| 757 790 | 
             
            - spec/system/unparsed_data_system_spec.rb
         | 
| 758 791 | 
             
            - spec/system/void_tags_system_spec.rb
         | 
| 792 | 
            +
            - spec/system/widget_class_from_spec.rb
         | 
| 793 | 
            +
            - spec/system/widget_method_system_spec.rb
         | 
| 759 794 | 
             
            - spec/system/widget_return_values_system_spec.rb
         |