middleman-core-x86-mingw32 3.0.8 → 3.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.
- data/features/missing-tilt-lib.feature +20 -0
- data/fixtures/missing-tilt-library-app/config.rb +2 -0
- data/fixtures/missing-tilt-library-app/source/danger-zone/more-wiki.html.wiki +1 -0
- data/fixtures/missing-tilt-library-app/source/safe-zone/my-wiki.html.wiki +1 -0
- data/fixtures/missing-tilt-library-app/source/textile-source.html.textile +1 -0
- data/fixtures/missing-tilt-library-app/source/wiki-source.html.wiki +1 -0
- data/lib/middleman-core/core_extensions/rendering.rb +13 -0
- data/lib/middleman-core/version.rb +1 -1
- data/middleman-core.gemspec +1 -1
- metadata +15 -3
| @@ -0,0 +1,20 @@ | |
| 1 | 
            +
            Feature: Tilt missing support libraries
         | 
| 2 | 
            +
             | 
| 3 | 
            +
              Scenario: Rendering Textile and Wiki files
         | 
| 4 | 
            +
                Given the Server is running at "missing-tilt-library-app"
         | 
| 5 | 
            +
                When I go to "/danger-zone/more-wiki.html.wiki"
         | 
| 6 | 
            +
                Then I should see "File Not Found"
         | 
| 7 | 
            +
                When I go to "/danger-zone/more-wiki.html"
         | 
| 8 | 
            +
                Then I should see "File Not Found"
         | 
| 9 | 
            +
                When I go to "/safe-zone/my-wiki.html.wiki"
         | 
| 10 | 
            +
                Then I should see "Safe"
         | 
| 11 | 
            +
                When I go to "/safe-zone/my-wiki.html"
         | 
| 12 | 
            +
                Then I should see "File Not Found"
         | 
| 13 | 
            +
                When I go to "/textile-source.html.textile"
         | 
| 14 | 
            +
                Then I should see "File Not Found"
         | 
| 15 | 
            +
                When I go to "/textile-source.html"
         | 
| 16 | 
            +
                Then I should see "File Not Found"
         | 
| 17 | 
            +
                When I go to "/wiki-source.html.wiki"
         | 
| 18 | 
            +
                Then I should see "Hola"
         | 
| 19 | 
            +
                When I go to "/wiki-source.html"
         | 
| 20 | 
            +
                Then I should see "File Not Found"
         | 
| @@ -0,0 +1 @@ | |
| 1 | 
            +
            More
         | 
| @@ -0,0 +1 @@ | |
| 1 | 
            +
            Safe
         | 
| @@ -0,0 +1 @@ | |
| 1 | 
            +
            Textx
         | 
| @@ -0,0 +1 @@ | |
| 1 | 
            +
            Hola
         | 
| @@ -75,6 +75,19 @@ module Middleman | |
| 75 75 | 
             
                        app.register Middleman::Renderers::Stylus
         | 
| 76 76 | 
             
                      rescue LoadError
         | 
| 77 77 | 
             
                      end
         | 
| 78 | 
            +
             | 
| 79 | 
            +
                      # Clean up missing Tilt exts
         | 
| 80 | 
            +
                      app.after_configuration do
         | 
| 81 | 
            +
                        Tilt.mappings.each do |key, klasses|
         | 
| 82 | 
            +
                          begin
         | 
| 83 | 
            +
                            Tilt[".#{key}"]
         | 
| 84 | 
            +
                          rescue LoadError
         | 
| 85 | 
            +
                            Tilt.mappings.delete(key)
         | 
| 86 | 
            +
                          rescue NameError
         | 
| 87 | 
            +
                            Tilt.mappings.delete(key)
         | 
| 88 | 
            +
                          end
         | 
| 89 | 
            +
                        end
         | 
| 90 | 
            +
                      end
         | 
| 78 91 | 
             
                    end
         | 
| 79 92 |  | 
| 80 93 | 
             
                    alias :included :registered
         | 
    
        data/middleman-core.gemspec
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: middleman-core-x86-mingw32
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 3.0. | 
| 4 | 
            +
              version: 3.0.9
         | 
| 5 5 | 
             
              prerelease: 
         | 
| 6 6 | 
             
            platform: ruby
         | 
| 7 7 | 
             
            authors:
         | 
| @@ -177,6 +177,7 @@ files: | |
| 177 177 | 
             
            - features/ignore.feature
         | 
| 178 178 | 
             
            - features/implied_extensions.feature
         | 
| 179 179 | 
             
            - features/instance_vars.feature
         | 
| 180 | 
            +
            - features/missing-tilt-lib.feature
         | 
| 180 181 | 
             
            - features/mount_rack.feature
         | 
| 181 182 | 
             
            - features/preview_changes.feature
         | 
| 182 183 | 
             
            - features/proxy_pages.feature
         | 
| @@ -338,6 +339,11 @@ files: | |
| 338 339 | 
             
            - fixtures/manual-layout/config.rb
         | 
| 339 340 | 
             
            - fixtures/manual-layout/source/index.html.erb
         | 
| 340 341 | 
             
            - fixtures/manual-layout/source/layouts/custom.erb
         | 
| 342 | 
            +
            - fixtures/missing-tilt-library-app/config.rb
         | 
| 343 | 
            +
            - fixtures/missing-tilt-library-app/source/danger-zone/more-wiki.html.wiki
         | 
| 344 | 
            +
            - fixtures/missing-tilt-library-app/source/safe-zone/my-wiki.html.wiki
         | 
| 345 | 
            +
            - fixtures/missing-tilt-library-app/source/textile-source.html.textile
         | 
| 346 | 
            +
            - fixtures/missing-tilt-library-app/source/wiki-source.html.wiki
         | 
| 341 347 | 
             
            - fixtures/multiple-layouts/config.rb
         | 
| 342 348 | 
             
            - fixtures/multiple-layouts/source/index.html.erb
         | 
| 343 349 | 
             
            - fixtures/multiple-layouts/source/layout.erb
         | 
| @@ -583,7 +589,7 @@ required_ruby_version: !ruby/object:Gem::Requirement | |
| 583 589 | 
             
                  version: '0'
         | 
| 584 590 | 
             
                  segments:
         | 
| 585 591 | 
             
                  - 0
         | 
| 586 | 
            -
                  hash:  | 
| 592 | 
            +
                  hash: -1855518811757288968
         | 
| 587 593 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 588 594 | 
             
              none: false
         | 
| 589 595 | 
             
              requirements:
         | 
| @@ -592,7 +598,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 592 598 | 
             
                  version: '0'
         | 
| 593 599 | 
             
                  segments:
         | 
| 594 600 | 
             
                  - 0
         | 
| 595 | 
            -
                  hash:  | 
| 601 | 
            +
                  hash: -1855518811757288968
         | 
| 596 602 | 
             
            requirements: []
         | 
| 597 603 | 
             
            rubyforge_project: 
         | 
| 598 604 | 
             
            rubygems_version: 1.8.24
         | 
| @@ -621,6 +627,7 @@ test_files: | |
| 621 627 | 
             
            - features/ignore.feature
         | 
| 622 628 | 
             
            - features/implied_extensions.feature
         | 
| 623 629 | 
             
            - features/instance_vars.feature
         | 
| 630 | 
            +
            - features/missing-tilt-lib.feature
         | 
| 624 631 | 
             
            - features/mount_rack.feature
         | 
| 625 632 | 
             
            - features/preview_changes.feature
         | 
| 626 633 | 
             
            - features/proxy_pages.feature
         | 
| @@ -782,6 +789,11 @@ test_files: | |
| 782 789 | 
             
            - fixtures/manual-layout/config.rb
         | 
| 783 790 | 
             
            - fixtures/manual-layout/source/index.html.erb
         | 
| 784 791 | 
             
            - fixtures/manual-layout/source/layouts/custom.erb
         | 
| 792 | 
            +
            - fixtures/missing-tilt-library-app/config.rb
         | 
| 793 | 
            +
            - fixtures/missing-tilt-library-app/source/danger-zone/more-wiki.html.wiki
         | 
| 794 | 
            +
            - fixtures/missing-tilt-library-app/source/safe-zone/my-wiki.html.wiki
         | 
| 795 | 
            +
            - fixtures/missing-tilt-library-app/source/textile-source.html.textile
         | 
| 796 | 
            +
            - fixtures/missing-tilt-library-app/source/wiki-source.html.wiki
         | 
| 785 797 | 
             
            - fixtures/multiple-layouts/config.rb
         | 
| 786 798 | 
             
            - fixtures/multiple-layouts/source/index.html.erb
         | 
| 787 799 | 
             
            - fixtures/multiple-layouts/source/layout.erb
         |