middleman-core 4.4.3 → 4.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gemtest +0 -0
- data/.simplecov +2 -2
- data/features/i18n_builder.feature +2 -0
- data/features/i18n_link_to.feature +94 -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-for-app/source/content_for_haml.html.haml +2 -2
- 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/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/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/locales/en.yml +2 -1
- 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 +1 -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/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/builder.rb +2 -1
- data/lib/middleman-core/core_extensions/i18n.rb +59 -6
- data/lib/middleman-core/extensions/asset_hash.rb +2 -1
- data/lib/middleman-core/extensions/external_pipeline.rb +2 -1
- 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/rack.rb +2 -2
- data/lib/middleman-core/renderers/haml.rb +39 -10
- data/lib/middleman-core/step_definitions/server_steps.rb +4 -4
- data/lib/middleman-core/util/data.rb +9 -1
- data/lib/middleman-core/util/paths.rb +1 -2
- data/lib/middleman-core/version.rb +1 -1
- data/middleman-core.gemspec +2 -2
- 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 +1 -1
- metadata +11 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d17dfddbf442da6e1bbf5be0c19bab7de0b71357264de5bb3a421ef932ef0912
|
4
|
+
data.tar.gz: 6b20f531c4b57ecf0f35d7573708e8714e79c4c9b82806235243a9ae1b192029
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a345b95ff2e21b871351e163ced5c4148459b4cd24e34e3686b3e4c29d7070b3170e3ad92b0c108a532c873637eba6272f4fcbfea3091e7abf2c25eda2fbd6d0
|
7
|
+
data.tar.gz: 282d36c604c623fd5d0856bb8b559a52bbb381bd09f1df1d68cfa37676826a10b7a6f6d7f674b4c783b93d0cb4cff0b1660a6db55f0b116a1a5cf9dc1a330304
|
data/.gemtest
CHANGED
File without changes
|
data/.simplecov
CHANGED
@@ -123,8 +123,10 @@ Feature: i18n Builder
|
|
123
123
|
| hello.html |
|
124
124
|
And the file "en/index.html" should contain "Howdy"
|
125
125
|
And the file "en/hello.html" should contain "Hello World"
|
126
|
+
And the file "en/fallback.html" should contain "Fallback"
|
126
127
|
And the file "es/index.html" should contain "Como Esta?"
|
127
128
|
And the file "es/hola.html" should contain "Hola World"
|
129
|
+
And the file "es/fallback.html" should contain "Fallback"
|
128
130
|
|
129
131
|
Scenario: Running localize with the subset config
|
130
132
|
Given a fixture app "i18n-test-app"
|
@@ -211,3 +211,97 @@ Feature: i18n Paths
|
|
211
211
|
Then I should see 'Current: /es/article.html'
|
212
212
|
Then I should see 'Other: /article.html'
|
213
213
|
Then I should see 'Current with anchor: /es/article.html#test-anchor'
|
214
|
+
|
215
|
+
Scenario: Using url_for with the no mount config
|
216
|
+
Given a fixture app "empty-app"
|
217
|
+
And a file named "data/pages.yml" with:
|
218
|
+
"""
|
219
|
+
- hello.html
|
220
|
+
"""
|
221
|
+
And a file named "locales/en.yml" with:
|
222
|
+
"""
|
223
|
+
---
|
224
|
+
en:
|
225
|
+
msg: Hello
|
226
|
+
"""
|
227
|
+
And a file named "locales/es.yml" with:
|
228
|
+
"""
|
229
|
+
---
|
230
|
+
es:
|
231
|
+
paths:
|
232
|
+
hello: "hola"
|
233
|
+
msg: Hola
|
234
|
+
"""
|
235
|
+
And a file named "source/localizable/hello.html.erb" with:
|
236
|
+
"""
|
237
|
+
Page: <%= t(:msg) %>
|
238
|
+
<% data.pages.each_with_index do |p, i| %>
|
239
|
+
Current: <%= url_for "/#{p}" %>
|
240
|
+
Other: <%= url_for "/#{p}", locale: ::I18n.locale == :en ? :es : :en %>
|
241
|
+
<% end %>
|
242
|
+
"""
|
243
|
+
And a file named "source/localizable/article.html.erb" with:
|
244
|
+
"""
|
245
|
+
Page Lang: Default
|
246
|
+
|
247
|
+
Current: <%= url_for "/article.html" %>
|
248
|
+
Other: <%= url_for "/article.html", locale: ::I18n.locale == :en ? :es : :en %>
|
249
|
+
Current with anchor: <%= url_for "/article.html", :anchor => "test-anchor" %>
|
250
|
+
"""
|
251
|
+
And a file named "source/localizable/article.es.html.erb" with:
|
252
|
+
"""
|
253
|
+
Page Lang: Spanish
|
254
|
+
|
255
|
+
Current: <%= url_for "/article.html" %>
|
256
|
+
Other: <%= url_for "/article.html", locale: :en %>
|
257
|
+
Current with anchor: <%= url_for "/article.html", :anchor => "test-anchor" %>
|
258
|
+
"""
|
259
|
+
And a file named "source/localizable/post.en.html.erb" with:
|
260
|
+
"""
|
261
|
+
Page Lang: English
|
262
|
+
|
263
|
+
Current: <%= url_for "/post.html" %>
|
264
|
+
Other: <%= url_for "/post.html", locale: :es %>
|
265
|
+
Current with anchor: <%= url_for "/post.html", :anchor => "test-anchor" %>
|
266
|
+
"""
|
267
|
+
And a file named "source/localizable/post.es.html.erb" with:
|
268
|
+
"""
|
269
|
+
Page Lang: Spanish
|
270
|
+
|
271
|
+
Current: <%= url_for "/post.html" %>
|
272
|
+
Other: <%= url_for "/post.html", locale: :en %>
|
273
|
+
Current with anchor: <%= url_for "/post.html", :anchor => "test-anchor" %>
|
274
|
+
"""
|
275
|
+
And a file named "config.rb" with:
|
276
|
+
"""
|
277
|
+
activate :i18n, mount_at_root: false
|
278
|
+
"""
|
279
|
+
Given the Server is running
|
280
|
+
When I go to "/en/hello.html"
|
281
|
+
Then I should see "Page: Hello"
|
282
|
+
Then I should see 'Current: /en/hello.html'
|
283
|
+
Then I should see 'Other: /es/hola.html'
|
284
|
+
When I go to "/es/hola.html"
|
285
|
+
Then I should see "Page: Hola"
|
286
|
+
Then I should see 'Current: /es/hola.html'
|
287
|
+
Then I should see 'Other: /en/hello.html'
|
288
|
+
When I go to "/en/article.html"
|
289
|
+
Then I should see "Page Lang: Default"
|
290
|
+
Then I should see 'Current: /en/article.html'
|
291
|
+
Then I should see 'Other: /es/article.html'
|
292
|
+
Then I should see 'Current with anchor: /en/article.html#test-anchor'
|
293
|
+
When I go to "/es/article.html"
|
294
|
+
Then I should see "Page Lang: Spanish"
|
295
|
+
Then I should see 'Current: /es/article.html'
|
296
|
+
Then I should see 'Other: /en/article.html'
|
297
|
+
Then I should see 'Current with anchor: /es/article.html#test-anchor'
|
298
|
+
When I go to "/en/post.html"
|
299
|
+
Then I should see "Page Lang: English"
|
300
|
+
Then I should see 'Current: /en/post.html'
|
301
|
+
Then I should see 'Other: /es/post.html'
|
302
|
+
Then I should see 'Current with anchor: /en/post.html#test-anchor'
|
303
|
+
When I go to "/es/post.html"
|
304
|
+
Then I should see "Page Lang: Spanish"
|
305
|
+
Then I should see 'Current: /es/post.html'
|
306
|
+
Then I should see 'Other: /en/post.html'
|
307
|
+
Then I should see 'Current with anchor: /es/post.html#test-anchor'
|
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
|
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
|
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
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= I18n.t(:fallback) %>
|
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
|