middleman-core 4.5.0 → 4.6.0
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/.simplecov +0 -2
- data/.yardopts +1 -2
- data/Rakefile +1 -1
- data/features/builder.feature +4 -4
- data/features/content_type.feature +1 -1
- data/features/data.feature +5 -0
- data/features/front-matter.feature +21 -0
- data/features/minify_javascript.feature +38 -39
- data/features/preview_changes.feature +11 -0
- data/features/sass_in_slim.feature +2 -2
- data/features/support/env.rb +8 -0
- data/fixtures/asset-hash-app/source/apple-touch-icon.png +0 -0
- data/fixtures/asset-hash-app/source/favicon.ico +0 -0
- data/fixtures/asset-hash-app/source/fonts/fontawesome-webfont.woff +0 -0
- data/fixtures/asset-hash-app/source/fonts/fontawesome-webfont.woff2 +0 -0
- data/fixtures/asset-hash-app/source/images/100px.gif +0 -0
- data/fixtures/asset-hash-app/source/images/100px.jpg +0 -0
- data/fixtures/asset-hash-app/source/images/100px.png +0 -0
- data/fixtures/asset-hash-app/source/images/200px.jpg +0 -0
- data/fixtures/asset-hash-app/source/images/300px.jpg +0 -0
- data/fixtures/asset-hash-host-app/source/images/100px.gif +0 -0
- data/fixtures/asset-hash-host-app/source/images/100px.jpg +0 -0
- data/fixtures/asset-hash-host-app/source/images/100px.png +0 -0
- data/fixtures/asset-hash-minified-app/source/images/100px.jpg +0 -0
- data/fixtures/asset-hash-prefix/source/javascripts/application.js.map +0 -0
- data/fixtures/asset-hash-remove-filename/source/javascripts/application.js.map +0 -0
- data/fixtures/asset-hash-source-map/source/javascripts/application.js.map +0 -0
- data/fixtures/asset-host-app/source/.htaccess +0 -0
- data/fixtures/asset-host-app/source/images/blank0.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank1.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank10.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank100.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank101.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank1010.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank102.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank1020.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank1021.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank1022.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank1023.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank1024.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank103.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank1030.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank1031.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank1032.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank1033.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank1034.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank104.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank1043.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank1054.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank2.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank20.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank21.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank22.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank23.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank24.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank3.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank30.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank31.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank32.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank33.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank34.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank4.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank43.gif +0 -0
- data/fixtures/asset-host-app/source/images/blank54.gif +0 -0
- data/fixtures/auto-css-app/source/stylesheets/auto-css/index.css +0 -0
- data/fixtures/auto-js-directory-index-app/config.rb +0 -0
- data/fixtures/automatic-alt-tags-app/config.rb +0 -0
- data/fixtures/automatic-directory-matcher-app/source/root-plain.html +0 -0
- data/fixtures/automatic-directory-matcher-app/source/root.html.erb +0 -0
- data/fixtures/automatic-directory-matcher-app/source/sub--sub--sub-plain.html +0 -0
- data/fixtures/automatic-directory-matcher-app/source/sub--sub--sub.html.erb +0 -0
- data/fixtures/automatic-directory-matcher-app/source/sub--sub-plain.html +0 -0
- data/fixtures/automatic-directory-matcher-app/source/sub--sub.html.erb +0 -0
- data/fixtures/automatic-image-size-app/config.rb +0 -0
- data/fixtures/build-with-errors-app/source/index.html.erb +0 -0
- data/fixtures/cache-buster-app/config.rb +0 -0
- data/fixtures/chained-app/config.rb +0 -0
- data/fixtures/clean-app/config-empty.rb +0 -0
- data/fixtures/clean-app/source/real.html +0 -0
- data/fixtures/clean-app/source/should_be_ignored.html +0 -0
- data/fixtures/clean-app/source/should_be_ignored2.html +0 -0
- data/fixtures/clean-app/source/should_be_ignored3.html +0 -0
- data/fixtures/clean-dir-app/source/about.html +0 -0
- data/fixtures/clean-nested-app/config.rb +0 -0
- data/fixtures/clean-nested-app/source/about.html +0 -0
- data/fixtures/clean-nested-app/source/nested/nested.html +0 -0
- data/fixtures/coffeescript-app/config.rb +0 -0
- data/fixtures/content-type-app/source/.htaccess +0 -0
- data/fixtures/content-type-app/source/README +0 -0
- data/fixtures/content-type-app/source/javascripts/app.js +0 -0
- data/fixtures/content-type-app/source/stylesheets/site.css +0 -0
- data/fixtures/csspie/config.rb +0 -0
- data/fixtures/custom-layout-app2/config.rb +0 -0
- data/fixtures/custom-src-app/src/index.html +0 -0
- data/fixtures/data-with-aliases-app/config.rb +3 -0
- data/fixtures/data-with-aliases-app/data/pages.yml +9 -0
- data/fixtures/data-with-aliases-app/source/index.html.erb +1 -0
- data/fixtures/data-with-aliases-app/source/layout.erb +5 -0
- data/fixtures/default-alt-tags-app/config.rb +0 -0
- data/fixtures/default-alt-tags-app/source/images/blank.gif +0 -0
- data/fixtures/different-engine-layout/config.rb +0 -0
- data/fixtures/different-engine-partial/config.rb +0 -0
- data/fixtures/different-engine-partial/source/index.html.erb +0 -0
- data/fixtures/different-engine-partial/source/shared/_footer.str +0 -0
- data/fixtures/different-engine-partial/source/shared/_header.erb +0 -0
- data/fixtures/dynamic-pages-app/source/real.html +0 -0
- data/fixtures/dynamic-pages-app/source/should_be_ignored.html +0 -0
- data/fixtures/dynamic-pages-app/source/should_be_ignored2.html +0 -0
- data/fixtures/dynamic-pages-app/source/should_be_ignored3.html +0 -0
- data/fixtures/dynamic-pages-app/source/should_be_ignored4.html +0 -0
- data/fixtures/dynamic-pages-app/source/should_be_ignored5.html +0 -0
- data/fixtures/dynamic-pages-app/source/should_be_ignored6.html +0 -0
- data/fixtures/dynamic-pages-app/source/should_be_ignored7.html +0 -0
- data/fixtures/dynamic-pages-app/source/should_be_ignored8.html +0 -0
- data/fixtures/ember-cli-app/source/javascripts/file.js +0 -0
- data/fixtures/ember-cli-app/test-app/app/components/.gitkeep +0 -0
- data/fixtures/ember-cli-app/test-app/app/controllers/.gitkeep +0 -0
- data/fixtures/ember-cli-app/test-app/app/helpers/.gitkeep +0 -0
- data/fixtures/ember-cli-app/test-app/app/models/.gitkeep +0 -0
- data/fixtures/ember-cli-app/test-app/app/routes/.gitkeep +0 -0
- data/fixtures/ember-cli-app/test-app/app/styles/.gitkeep +0 -0
- data/fixtures/ember-cli-app/test-app/app/templates/.gitkeep +0 -0
- data/fixtures/ember-cli-app/test-app/app/templates/components/.gitkeep +0 -0
- data/fixtures/ember-cli-app/test-app/app/views/.gitkeep +0 -0
- data/fixtures/ember-cli-app/test-app/public/.gitkeep +0 -0
- data/fixtures/ember-cli-app/test-app/tests/unit/.gitkeep +0 -0
- data/fixtures/empty-app/not-config.rb +0 -0
- data/fixtures/engine-matching-layout/config.rb +0 -0
- data/fixtures/env-app/config.rb +0 -0
- data/fixtures/extensionless-text-files-app/config.rb +0 -0
- data/fixtures/extensionless-text-files-app/source/CNAME +0 -0
- data/fixtures/extensionless-text-files-app/source/LICENSE +0 -0
- data/fixtures/extensionless-text-files-app/source/README +0 -0
- data/fixtures/extensionless-text-files-app/source/index.html +0 -0
- data/fixtures/external-helpers/source/automatic.html.erb +0 -0
- data/fixtures/external-helpers/source/index.html.erb +0 -0
- data/fixtures/external-pipeline-error/source/javascripts/file.js +0 -0
- data/fixtures/fonts-app/config.rb +0 -0
- data/fixtures/fonts-app/source/fonts/blank/blank.otf +0 -0
- data/fixtures/frontmatter-neighbor-app/source/raw-front-matter-toml.html +0 -0
- data/fixtures/frontmatter-neighbor-app/source/raw-front-matter.php +0 -0
- data/fixtures/frontmatter-settings-app/source/layouts/override.erb +0 -0
- data/fixtures/frontmatter-settings-neighbor-app/source/layouts/override.erb +0 -0
- data/fixtures/frontmatter-settings-neighbor-app/source/override_layout.html.erb +0 -0
- data/fixtures/frontmatter-settings-neighbor-app/source/page_mentioned.html.erb +0 -0
- data/fixtures/generator-test/config.rb +1 -14
- data/fixtures/gzip-app/source/index.html +0 -0
- data/fixtures/i18n-alt-root-app/source/lang_data/hello.html.erb +0 -0
- data/fixtures/i18n-alt-root-app/source/lang_data/index.html.erb +0 -0
- data/fixtures/i18n-alt-root-app/source/layout.erb +0 -0
- data/fixtures/i18n-test-app/data/defaults_en.yml +0 -0
- data/fixtures/i18n-test-app/data/defaults_es.yml +0 -0
- data/fixtures/i18n-test-app/data/en_defaults.yml +0 -0
- data/fixtures/i18n-test-app/source/_country.en.erb +0 -0
- data/fixtures/i18n-test-app/source/_country.es.erb +0 -0
- data/fixtures/i18n-test-app/source/_site.erb +0 -0
- data/fixtures/i18n-test-app/source/images/president.en.svg +0 -0
- data/fixtures/i18n-test-app/source/images/president.es.svg +0 -0
- data/fixtures/i18n-test-app/source/localizable/_state.en.erb +0 -0
- data/fixtures/i18n-test-app/source/localizable/_state.es.erb +0 -0
- data/fixtures/i18n-test-app/source/localizable/fallback.html.erb +0 -0
- data/fixtures/i18n-test-app/source/localizable/hello.html.erb +0 -0
- data/fixtures/i18n-test-app/source/localizable/images/flag.en.svg +0 -0
- data/fixtures/i18n-test-app/source/localizable/images/flag.es.svg +0 -0
- data/fixtures/i18n-test-app/source/localizable/index.html.erb +0 -0
- data/fixtures/i18n-test-app/source/localizable/partials/_greeting.en.erb +0 -0
- data/fixtures/i18n-test-app/source/localizable/partials/_greeting.es.erb +0 -0
- data/fixtures/ignore-app/source/about.html.erb +0 -0
- data/fixtures/ignore-app/source/images/icon/messages.png +0 -0
- data/fixtures/ignore-app/source/images/pic.png +0 -0
- data/fixtures/ignore-app/source/images/portrait.jpg +0 -0
- data/fixtures/ignore-app/source/index.html.erb +0 -0
- data/fixtures/ignore-app/source/plain.html +0 -0
- data/fixtures/ignore-app/source/reports/another.html +0 -0
- data/fixtures/ignore-app/source/reports/index.html +0 -0
- data/fixtures/import-app/bower_components/jquery/dist/jquery.min.map +0 -0
- data/fixtures/import-app/bower_components/jquery/src/sizzle/dist/sizzle.min.map +0 -0
- data/fixtures/import-app/source/test.html +0 -0
- data/fixtures/import-app/static.html +0 -0
- data/fixtures/indexable-app/source/.htaccess +0 -0
- data/fixtures/indexable-app/source/.htpasswd +0 -0
- data/fixtures/indexable-app/source/.nojekyll +0 -0
- data/fixtures/indexable-app/source/a_folder/needs_index.html +0 -0
- data/fixtures/indexable-app/source/leave_me_alone.html +0 -0
- data/fixtures/indexable-app/source/needs_index.html +0 -0
- data/fixtures/indexable-app/source/regular/index.html +0 -0
- data/fixtures/javascript-app/config.rb +0 -0
- data/fixtures/large-build-app/source/.htaccess +0 -0
- data/fixtures/large-build-app/source/.htpasswd +0 -0
- data/fixtures/large-build-app/source/other_layout.erb +0 -0
- data/fixtures/large-build-app/source/spaces in file.html.erb +0 -0
- data/fixtures/link-to-app/config.rb +0 -0
- data/fixtures/liquid-app/config.rb +0 -0
- data/fixtures/liquid-app/source/_liquid_partial.liquid +0 -0
- data/fixtures/liquid-app/source/liquid_master.html.liquid +0 -0
- data/fixtures/markdown-app/source/filter_html.html.markdown +0 -0
- data/fixtures/markdown-app/source/highlighted.html.markdown +0 -0
- data/fixtures/markdown-app/source/img.html.markdown +0 -0
- data/fixtures/markdown-app/source/link.html.markdown +0 -0
- data/fixtures/markdown-app/source/mailto.html.markdown +0 -0
- data/fixtures/markdown-app/source/quote.html.markdown +0 -0
- data/fixtures/markdown-app/source/safe_links.html.markdown +0 -0
- data/fixtures/markdown-app/source/underline.html.markdown +0 -0
- data/fixtures/markdown-in-haml-app/config.rb +0 -0
- data/fixtures/markdown-in-slim-app/config.rb +0 -0
- data/fixtures/minify-css-app/source/stylesheets/bourbon/css3/_selection.scss +0 -0
- data/fixtures/minify-css-app/source/stylesheets/report.css +0 -0
- data/fixtures/minify-js-app/config.rb +0 -0
- data/fixtures/missing-tilt-library-app/source/danger-zone/more-wiki.html.wiki +0 -0
- data/fixtures/missing-tilt-library-app/source/safe-zone/my-wiki.html.wiki +0 -0
- data/fixtures/missing-tilt-library-app/source/textile-source.html.textile +0 -0
- data/fixtures/missing-tilt-library-app/source/wiki-source.html.wiki +0 -0
- data/fixtures/more-extensionless-text-files-app/source/CNAME +0 -0
- data/fixtures/more-extensionless-text-files-app/source/LICENSE +0 -0
- data/fixtures/more-extensionless-text-files-app/source/README +0 -0
- data/fixtures/more-extensionless-text-files-app/source/index.html +0 -0
- data/fixtures/more-ignore-app/source/about.html.erb +0 -0
- data/fixtures/more-ignore-app/source/images/icon/messages.png +0 -0
- data/fixtures/more-ignore-app/source/images/pic.png +0 -0
- data/fixtures/more-ignore-app/source/images/portrait.jpg +0 -0
- data/fixtures/more-ignore-app/source/index.html.erb +0 -0
- data/fixtures/more-ignore-app/source/plain.html +0 -0
- data/fixtures/more-ignore-app/source/reports/another.html +0 -0
- data/fixtures/more-ignore-app/source/reports/index.html +0 -0
- data/fixtures/more-preview-app/config.rb +0 -0
- data/fixtures/more-preview-app/source/content.html.erb +0 -0
- data/fixtures/more-preview-app/source/layout.erb +0 -0
- data/fixtures/more-traversal-app/source/directory-indexed/sub2/index.html.erb +0 -0
- data/fixtures/more-traversal-app/source/directory-indexed/sub3/deep.html.erb +0 -0
- data/fixtures/more-traversal-app/source/directory-indexed.html.erb +0 -0
- data/fixtures/more-traversal-app/source/index.html.erb +0 -0
- data/fixtures/more-traversal-app/source/proxied.html.erb +0 -0
- data/fixtures/more-traversal-app/source/root.html.erb +0 -0
- data/fixtures/more-traversal-app/source/sub/index.html.erb +0 -0
- data/fixtures/more-traversal-app/source/sub/sibling.html.erb +0 -0
- data/fixtures/more-traversal-app/source/sub/sibling2.html.erb +0 -0
- data/fixtures/more-traversal-app/source/sub/sub2/index.html.erb +0 -0
- data/fixtures/more-traversal-app/source/sub/sub3/deep.html.erb +0 -0
- data/fixtures/multiple-data-sources-app/data/two.yml +0 -0
- data/fixtures/multiple-data-sources-app/data1/data1.yml +0 -0
- data/fixtures/multiple-data-sources-app/data2/data2.yml +0 -0
- data/fixtures/multiple-data-sources-app/data2/two.yml +0 -0
- data/fixtures/multiple-layouts/config.rb +0 -0
- data/fixtures/multiple-sources-app/source/index.html.erb +0 -0
- data/fixtures/multiple-sources-app/source/override-in-two.html.erb +0 -0
- data/fixtures/multiple-sources-app/source0/override-in-one.html.erb +0 -0
- data/fixtures/multiple-sources-app/source1/index1.html.erb +0 -0
- data/fixtures/multiple-sources-app/source1/override-in-one.html.erb +0 -0
- data/fixtures/multiple-sources-app/source2/index2.html.erb +0 -0
- data/fixtures/multiple-sources-app/source2/override-in-two.html.erb +0 -0
- data/fixtures/multiple-sources-with-duplicate-file-names-app/source/index.html.erb +0 -0
- data/fixtures/multiple-sources-with-duplicate-file-names-app/source2/index.html.erb +0 -0
- data/fixtures/nested-data-app/data/examples/deeper/stuff.yml +0 -0
- data/fixtures/nested-data-app/data/examples/more.yml +0 -0
- data/fixtures/no-layout/config.rb +0 -0
- data/fixtures/page-classes-app/source/1-folder/1-inside-with-numeric.html.erb +0 -0
- data/fixtures/page-classes-app/source/1-starts-with-numeric.html.erb +0 -0
- data/fixtures/page-classes-app/source/2-starts-with-numeric-custom.html.erb +0 -0
- data/fixtures/page-helper-layout-block-app/source/index.html.erb +0 -0
- data/fixtures/page-helper-layout-block-app/source/path/child.html.erb +0 -0
- data/fixtures/page-helper-layout-block-app/source/path/index.html.erb +0 -0
- data/fixtures/paginate-app/config.rb +0 -0
- data/fixtures/partial-chained_templates-app/config.rb +0 -0
- data/fixtures/partials-app/config.rb +0 -0
- data/fixtures/partials-app/source/_code_snippet.html +0 -0
- data/fixtures/partials-app/source/_locals.erb +0 -0
- data/fixtures/partials-app/source/_main.erb +0 -0
- data/fixtures/partials-app/source/_main.str +0 -0
- data/fixtures/partials-app/source/shared/_footer.erb +0 -0
- data/fixtures/partials-app/source/shared/_header.erb +0 -0
- data/fixtures/partials-app/source/shared/_snippet.html.erb +0 -0
- data/fixtures/partials-app/source/static_underscore.html.erb +0 -0
- data/fixtures/partials-app/source/sub/_local.erb +0 -0
- data/fixtures/partials-app/source/svg.html.erb +0 -0
- data/fixtures/passthrough-app/source/.htaccess +0 -0
- data/fixtures/preview-app/config.rb +0 -0
- data/fixtures/preview-app/source/content.html.erb +0 -0
- data/fixtures/preview-app/source/layout.erb +0 -0
- data/fixtures/proxy-pages-app/source/real.html +0 -0
- data/fixtures/proxy-pages-app/source/should_be_ignored3.html +0 -0
- data/fixtures/proxy-pages-app/source/should_be_ignored6.html +0 -0
- data/fixtures/proxy-pages-app/source/should_be_ignored7.html +0 -0
- data/fixtures/proxy-pages-app/source/should_be_ignored8.html +0 -0
- data/fixtures/related-files-app/config.rb +0 -0
- data/fixtures/related-files-app/source/index.html.erb +0 -0
- data/fixtures/related-files-app/source/partials/_test.erb +0 -0
- data/fixtures/related-files-app/source/partials/_test2.haml +0 -0
- data/fixtures/related-files-app/source/stylesheets/_include3.sass +0 -0
- data/fixtures/related-files-app/source/stylesheets/_include4.scss +0 -0
- data/fixtures/related-files-app/source/stylesheets/include1.css +0 -0
- data/fixtures/related-files-app/source/stylesheets/include2.css.scss +0 -0
- data/fixtures/related-files-app/source/stylesheets/site.css.scss +0 -0
- data/fixtures/relative-app/config.rb +0 -0
- data/fixtures/relative-assets-app/source/fonts/roboto/roboto-regular-webfont.eot +0 -0
- data/fixtures/relative-assets-app/source/fonts/roboto/roboto-regular-webfont.svg +0 -0
- data/fixtures/relative-assets-app/source/fonts/roboto/roboto-regular-webfont.ttf +0 -0
- data/fixtures/relative-assets-app/source/fonts/roboto/roboto-regular-webfont.woff +0 -0
- data/fixtures/relative-assets-app/source/images/blank2.gif +0 -0
- data/fixtures/sass-in-slim-app/config.rb +0 -0
- data/fixtures/scss-app/config.rb +0 -0
- data/fixtures/scss-app/source/stylesheets/error.css.sass +0 -0
- data/fixtures/sinatra-app/config.rb +2 -0
- data/fixtures/strip-url-app/config.rb +0 -0
- data/fixtures/stylus-preview-app/config.rb +0 -0
- data/fixtures/traversal-app/source/.htaccess +0 -0
- data/fixtures/traversal-app/source/directory-indexed/sub2/index.html.erb +0 -0
- data/fixtures/traversal-app/source/directory-indexed/sub3/deep.html.erb +0 -0
- data/fixtures/traversal-app/source/directory-indexed.html.erb +0 -0
- data/fixtures/traversal-app/source/index.html.erb +0 -0
- data/fixtures/traversal-app/source/proxied.html.erb +0 -0
- data/fixtures/traversal-app/source/root.html.erb +0 -0
- data/fixtures/traversal-app/source/sub/index.html.erb +0 -0
- data/fixtures/traversal-app/source/sub/sibling.html.erb +0 -0
- data/fixtures/traversal-app/source/sub/sibling2.html.erb +0 -0
- data/fixtures/traversal-app/source/sub/sub2/index.html.erb +0 -0
- data/fixtures/traversal-app/source/sub/sub3/deep.html.erb +0 -0
- data/fixtures/wildcard-app/source/admin/index.html.erb +0 -0
- data/fixtures/wildcard-app/source/admin/page.html.erb +0 -0
- data/fixtures/wildcard-app/source/index.html.erb +0 -0
- data/fixtures/wildcard-directory-index-app/source/admin/index.html.erb +0 -0
- data/fixtures/wildcard-directory-index-app/source/admin/page.html.erb +0 -0
- data/fixtures/wildcard-directory-index-app/source/index.html.erb +0 -0
- data/lib/middleman-core/application.rb +0 -13
- data/lib/middleman-core/builder.rb +3 -3
- data/lib/middleman-core/contracts.rb +0 -1
- data/lib/middleman-core/core_extensions/collections/lazy_root.rb +1 -1
- data/lib/middleman-core/core_extensions/collections/lazy_step.rb +1 -1
- data/lib/middleman-core/extensions/minify_javascript.rb +1 -1
- data/lib/middleman-core/file_renderer.rb +1 -7
- data/lib/middleman-core/meta_pages/assets/glyphicons-halflings.png +0 -0
- data/lib/middleman-core/meta_pages/assets/sitemap.js +0 -0
- data/lib/middleman-core/preview_server/server_hostname.rb +0 -2
- data/lib/middleman-core/preview_server.rb +3 -2
- data/lib/middleman-core/rack.rb +6 -6
- data/lib/middleman-core/renderers/coffee_script.rb +2 -6
- data/lib/middleman-core/renderers/erb.rb +15 -3
- data/lib/middleman-core/renderers/haml.rb +1 -3
- data/lib/middleman-core/renderers/kramdown.rb +7 -11
- data/lib/middleman-core/renderers/less.rb +10 -26
- data/lib/middleman-core/renderers/liquid.rb +1 -1
- data/lib/middleman-core/renderers/redcarpet.rb +4 -14
- data/lib/middleman-core/renderers/sass.rb +3 -10
- data/lib/middleman-core/renderers/sass_functions.rb +2 -2
- data/lib/middleman-core/renderers/slim.rb +9 -1
- data/lib/middleman-core/sources/source_watcher.rb +1 -1
- data/lib/middleman-core/step_definitions/commandline_steps.rb +14 -14
- data/lib/middleman-core/step_definitions/server_steps.rb +1 -1
- data/lib/middleman-core/step_definitions.rb +3 -0
- data/lib/middleman-core/template_renderer.rb +2 -2
- data/lib/middleman-core/util/data.rb +4 -5
- data/lib/middleman-core/util/paths.rb +2 -1
- data/lib/middleman-core/util.rb +6 -0
- data/lib/middleman-core/version.rb +1 -1
- data/lib/middleman-core.rb +0 -2
- data/middleman-core.gemspec +16 -15
- data/spec/middleman-core/binary_spec/middleman +0 -0
- data/spec/middleman-core/binary_spec/middleman.png +0 -0
- data/spec/middleman-core/binary_spec/stars.svgz +0 -0
- data/spec/spec_helper.rb +2 -2
- metadata +1176 -56
- data/.gemtest +0 -0
- data/.rspec +0 -1
- data/cucumber.yml +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f75b57d4f7b5046290d41e0748282ab8fa02a2b230be9fb5045242432f2a72d
|
4
|
+
data.tar.gz: 4aba8ff90a5e723281990b3a1a7341509c1aa8891d231ecc3fe3ad39de29c7e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e63cf33f58076d4b2d8ebcaf7803157236a86443e273ea0400d93aa6a8456c7e641ca0552a6ed9197f3494ba045dd22c8fafef293f6aad5273d1bc9cc8cc5b6
|
7
|
+
data.tar.gz: d2012044ebe3eaf1aaba82208b945d03fc18bc9830373cc5603242bc90eef9183c852ad0c7e2cf2ad6e047b7eace0c14228ca77e152c32579d34f9e5d4cfe393
|
data/.simplecov
CHANGED
data/.yardopts
CHANGED
data/Rakefile
CHANGED
data/features/builder.feature
CHANGED
@@ -55,7 +55,7 @@ Feature: Builder
|
|
55
55
|
Scenario: Builded text file(ex: html, css, xml, txt)'s permission is 0644
|
56
56
|
Given a successfully built app at "large-build-app"
|
57
57
|
When I cd to "build"
|
58
|
-
Then the
|
59
|
-
And the
|
60
|
-
And the
|
61
|
-
And the
|
58
|
+
Then the file named "index.html" should have permissions "0644"
|
59
|
+
And the file named "stylesheets/static.css" should have permissions "0644"
|
60
|
+
And the file named "feed.xml" should have permissions "0644"
|
61
|
+
And the file named ".htaccess" should have permissions "0644"
|
@@ -7,7 +7,7 @@ Feature: Setting the right content type for files
|
|
7
7
|
When I go to "/images/blank.gif"
|
8
8
|
Then the content type should be "image/gif"
|
9
9
|
When I go to "/javascripts/app.js"
|
10
|
-
Then the content type should be "
|
10
|
+
Then the content type should be "text/javascript"
|
11
11
|
When I go to "/stylesheets/site.css"
|
12
12
|
Then the content type should be "text/css"
|
13
13
|
When I go to "/README"
|
data/features/data.feature
CHANGED
@@ -83,6 +83,11 @@ Feature: Local Data API
|
|
83
83
|
Then I should see "title2:More"
|
84
84
|
Then I should see "title3:Stuff"
|
85
85
|
|
86
|
+
Scenario: Using data with aliases
|
87
|
+
Given the Server is running at "data-with-aliases-app"
|
88
|
+
When I go to "/test1.html"
|
89
|
+
Then I should see "Welcome"
|
90
|
+
|
86
91
|
Scenario: Using data postscript
|
87
92
|
Given the Server is running at "nested-data-app"
|
88
93
|
When I go to "/extracontent.html"
|
@@ -80,6 +80,27 @@ Feature: YAML Front Matter
|
|
80
80
|
When I go to "/front-matter-change.html"
|
81
81
|
Then I should see "Hello World"
|
82
82
|
|
83
|
+
Scenario: A template should handle YAML with types
|
84
|
+
Given the Server is running at "frontmatter-app"
|
85
|
+
And the file "source/front-matter-types.html.erb" has the contents
|
86
|
+
"""
|
87
|
+
---
|
88
|
+
date_matter: 2020-01-01
|
89
|
+
time_matter: 2020-12-31 13:14:15 +0000
|
90
|
+
symbol_matter: :a_symbol
|
91
|
+
regexp_matter: !ruby/regexp /a|b/
|
92
|
+
---
|
93
|
+
Date: <%= current_page.data.date_matter.strftime('%d %m %Y') %>
|
94
|
+
Time: <%= current_page.data.time_matter.strftime('%d %m %Y %H::%M::%S %z') %>
|
95
|
+
Symbol: <%= current_page.data.symbol_matter.is_a? Symbol %>
|
96
|
+
Regexp: <%= "za" =~ current_page.data.regexp_matter %>
|
97
|
+
"""
|
98
|
+
When I go to "/front-matter-types.html"
|
99
|
+
Then I should see "Date: 01 01 2020"
|
100
|
+
Then I should see "Time: 31 12 2020 13::14::15 +0000"
|
101
|
+
Then I should see "Symbol: true"
|
102
|
+
Then I should see "Regexp: 1"
|
103
|
+
|
83
104
|
Scenario: Rendering raw (template-less) (toml)
|
84
105
|
Given the Server is running at "frontmatter-app"
|
85
106
|
When I go to "/raw-front-matter-toml.html"
|
@@ -19,23 +19,23 @@ Feature: Minify Javascript
|
|
19
19
|
})();
|
20
20
|
</script>
|
21
21
|
<script>
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
22
|
+
;(function() {
|
23
|
+
this;
|
24
|
+
should();
|
25
|
+
too();
|
26
|
+
})();
|
27
27
|
</script>
|
28
28
|
<script type='text/javascript'>
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
29
|
+
//<!--
|
30
|
+
;(function() {
|
31
|
+
one;
|
32
|
+
line();
|
33
|
+
here();
|
34
|
+
})();
|
35
|
+
//-->
|
36
36
|
</script>
|
37
37
|
<script type='text/html'>
|
38
|
-
|
38
|
+
I'm a jQuery {{template}}.
|
39
39
|
</script>
|
40
40
|
"""
|
41
41
|
|
@@ -66,23 +66,23 @@ Feature: Minify Javascript
|
|
66
66
|
})();
|
67
67
|
</script>
|
68
68
|
<script>
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
;(function() {
|
70
|
+
this;
|
71
|
+
should();
|
72
|
+
too();
|
73
|
+
})();
|
74
74
|
</script>
|
75
75
|
<script type='text/javascript'>
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
76
|
+
//<!--
|
77
|
+
;(function() {
|
78
|
+
one;
|
79
|
+
line();
|
80
|
+
here();
|
81
|
+
})();
|
82
|
+
//-->
|
83
83
|
</script>
|
84
84
|
<script type='text/html'>
|
85
|
-
|
85
|
+
I'm a jQuery {{template}}.
|
86
86
|
</script>
|
87
87
|
"""
|
88
88
|
|
@@ -108,15 +108,15 @@ Feature: Minify Javascript
|
|
108
108
|
Hello
|
109
109
|
</script>
|
110
110
|
<script>
|
111
|
-
|
111
|
+
Hello
|
112
112
|
</script>
|
113
113
|
<script type='text/javascript'>
|
114
|
-
|
114
|
+
//<!--
|
115
115
|
Hello
|
116
|
-
|
116
|
+
//-->
|
117
117
|
</script>
|
118
118
|
<script type='text/html'>
|
119
|
-
|
119
|
+
I'm a jQuery {{template}}.
|
120
120
|
</script>
|
121
121
|
"""
|
122
122
|
|
@@ -131,18 +131,18 @@ Feature: Minify Javascript
|
|
131
131
|
Then I should see:
|
132
132
|
"""
|
133
133
|
<script>
|
134
|
-
|
134
|
+
should(),all.be(),on={one:line};
|
135
135
|
</script>
|
136
136
|
<script>
|
137
|
-
|
137
|
+
should(),too();
|
138
138
|
</script>
|
139
139
|
<script type='text/javascript'>
|
140
|
-
|
141
|
-
|
142
|
-
|
140
|
+
//<!--
|
141
|
+
one,line(),here();
|
142
|
+
//-->
|
143
143
|
</script>
|
144
144
|
<script type='text/html'>
|
145
|
-
|
145
|
+
I'm a jQuery {{template}}.
|
146
146
|
</script>
|
147
147
|
"""
|
148
148
|
|
@@ -159,11 +159,11 @@ Feature: Minify Javascript
|
|
159
159
|
<?='Hello'?>
|
160
160
|
|
161
161
|
<script>
|
162
|
-
|
162
|
+
should(),all.be(),on={one:line};
|
163
163
|
</script>
|
164
164
|
<script type='text/javascript'>
|
165
165
|
//<!--
|
166
|
-
|
166
|
+
one,line(),here();
|
167
167
|
//-->
|
168
168
|
</script>
|
169
169
|
<script type='text/html'>
|
@@ -263,4 +263,3 @@ Feature: Minify Javascript
|
|
263
263
|
And the Server is running at "passthrough-app"
|
264
264
|
When I go to "/javascripts/coffee_test.js"
|
265
265
|
Then I should see "11" lines
|
266
|
-
|
@@ -27,3 +27,14 @@ Feature: Preview Changes
|
|
27
27
|
And the file "source/a-page.html.erb" is removed
|
28
28
|
When I go to "/a-page.html"
|
29
29
|
Then I should see "File Not Found"
|
30
|
+
|
31
|
+
Scenario: A template with apostrophe is reloaded during preview
|
32
|
+
Given the Server is running at "preview-app"
|
33
|
+
And the file "source/a-page.html.erb" has the contents
|
34
|
+
"""
|
35
|
+
Matz's Ruby Interpreter
|
36
|
+
"""
|
37
|
+
When I go to "/a-page.html"
|
38
|
+
Then I should see "Matz's Ruby Interpreter"
|
39
|
+
When I go to "/a-page.html"
|
40
|
+
Then I should see "Matz's Ruby Interpreter"
|
@@ -15,7 +15,7 @@ Feature: Sass/SCSS support in Slim
|
|
15
15
|
"""
|
16
16
|
Given the Server is running at "sass-in-slim-app"
|
17
17
|
When I go to "/sass_filter/"
|
18
|
-
Then I should see "
|
18
|
+
Then I should see "<style>"
|
19
19
|
Then I should see ".sass"
|
20
20
|
Then I should see "margin:0"
|
21
21
|
|
@@ -35,6 +35,6 @@ Feature: Sass/SCSS support in Slim
|
|
35
35
|
"""
|
36
36
|
Given the Server is running at "sass-in-slim-app"
|
37
37
|
When I go to "/scss_filter/"
|
38
|
-
Then I should see "
|
38
|
+
Then I should see "<style>"
|
39
39
|
Then I should see ".scss"
|
40
40
|
Then I should see "margin:0"
|
data/features/support/env.rb
CHANGED
@@ -7,6 +7,14 @@ SimpleCov.root(File.expand_path(File.dirname(__FILE__) + '/../..'))
|
|
7
7
|
|
8
8
|
SimpleCov.start
|
9
9
|
|
10
|
+
require "rspec"
|
11
|
+
|
12
|
+
RSpec.configure do |config|
|
13
|
+
config.expect_with :rspec do |expectations|
|
14
|
+
expectations.max_formatted_output_length = nil
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
10
18
|
PROJECT_ROOT_PATH = File.dirname(File.dirname(File.dirname(__FILE__)))
|
11
19
|
require File.join(PROJECT_ROOT_PATH, 'lib', 'middleman-core')
|
12
20
|
require File.join(PROJECT_ROOT_PATH, 'lib', 'middleman-core', 'step_definitions')
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/fixtures/csspie/config.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
<p><%= content %></p>
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/fixtures/env-app/config.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|