middleman-core 4.4.0 → 4.4.3
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/.gemtest +0 -0
- data/features/i18n_preview.feature +226 -226
- data/features/support/env.rb +1 -2
- 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/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/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/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/core_extensions/default_helpers.rb +4 -1
- data/lib/middleman-core/core_extensions/i18n.rb +3 -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/sitemap/extensions/traversal.rb +2 -1
- data/lib/middleman-core/util.rb +1 -2
- data/lib/middleman-core/version.rb +1 -1
- data/middleman-core.gemspec +3 -3
- 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 -3
- metadata +9 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 47a1d9d5037e308781c5d071bdbd012631dffec9f2439e1c73b6bf8b6e9d27ff
|
|
4
|
+
data.tar.gz: fe51eb33932856df3019ad8ad8a41a4abf80266b814da9c716f0aeeda4db74c9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: df1e1c37ccb433f391dcc05122297f83c3a9d19bef1a8b4c8738f40d156ddd014affa6ecd583a358f9b749ad891afa4d788d7d837aef0d3c42eaa6e79d899029
|
|
7
|
+
data.tar.gz: 1cfdb65af805d4599b34b939d8dc1377a2d29f830d8aa21692e6e851cce5d6ff612d9122865aa67f8f4e142c46644b334eacccf9d0b1a9586add6d72539aac90
|
data/.gemtest
CHANGED
|
File without changes
|
|
@@ -1,241 +1,241 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
Feature: i18n Preview
|
|
2
|
+
In order to preview localized html
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
4
|
+
Scenario: Running localize with the default config
|
|
5
|
+
Given a fixture app "i18n-test-app"
|
|
6
|
+
And a file named "config.rb" with:
|
|
7
|
+
"""
|
|
8
|
+
activate :i18n
|
|
9
|
+
"""
|
|
10
|
+
Given the Server is running at "i18n-test-app"
|
|
11
|
+
When I go to "/"
|
|
12
|
+
Then I should see "Howdy"
|
|
13
|
+
When I go to "/hello.html"
|
|
14
|
+
Then I should see "Hello World"
|
|
15
|
+
When I go to "/morning.html"
|
|
16
|
+
Then I should see "Good morning"
|
|
17
|
+
When I go to "/one.html"
|
|
18
|
+
Then I should see "Only one"
|
|
19
|
+
When I go to "/defaults_en/index.html"
|
|
20
|
+
Then I should see "File Not Found"
|
|
21
|
+
When I go to "/en/index.html"
|
|
22
|
+
Then I should see "File Not Found"
|
|
23
|
+
When I go to "/en/morning.html"
|
|
24
|
+
Then I should see "File Not Found"
|
|
25
|
+
When I go to "/defaults_es/index.html"
|
|
26
|
+
Then I should see "File Not Found"
|
|
27
|
+
When I go to "/es/index.html"
|
|
28
|
+
Then I should see "Como Esta?"
|
|
29
|
+
When I go to "/es/hola.html"
|
|
30
|
+
Then I should see "Hola World"
|
|
31
|
+
When I go to "/es/manana.html"
|
|
32
|
+
Then I should see "Buenos días"
|
|
33
|
+
When I go to "/es/una.html"
|
|
34
|
+
Then I should see "Solamente una"
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
36
|
+
Scenario: A template changes i18n during preview
|
|
37
|
+
Given a fixture app "i18n-test-app"
|
|
38
|
+
And a file named "config.rb" with:
|
|
39
|
+
"""
|
|
40
|
+
activate :i18n
|
|
41
|
+
"""
|
|
42
|
+
Given the Server is running at "i18n-test-app"
|
|
43
|
+
And the file "locales/en.yml" has the contents
|
|
44
|
+
"""
|
|
45
|
+
---
|
|
46
|
+
en:
|
|
47
|
+
greetings: "Howdy"
|
|
48
|
+
hi: "Hello"
|
|
49
|
+
"""
|
|
50
|
+
When I go to "/"
|
|
51
|
+
Then I should see "Howdy"
|
|
52
|
+
When I go to "/hello.html"
|
|
53
|
+
Then I should see "Hello World"
|
|
54
|
+
When the file "locales/en.yml" has the contents
|
|
55
|
+
"""
|
|
56
|
+
---
|
|
57
|
+
en:
|
|
58
|
+
greetings: "How You Doin"
|
|
59
|
+
hi: "Sup"
|
|
60
|
+
"""
|
|
61
|
+
When I go to "/"
|
|
62
|
+
Then I should see "How You Doin"
|
|
63
|
+
When I go to "/hello.html"
|
|
64
|
+
Then I should see "Sup World"
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
66
|
+
Scenario: Running localize with the alt path config
|
|
67
|
+
Given a fixture app "i18n-test-app"
|
|
68
|
+
And a file named "config.rb" with:
|
|
69
|
+
"""
|
|
70
|
+
activate :i18n, path: "/lang_:locale/"
|
|
71
|
+
"""
|
|
72
|
+
Given the Server is running at "i18n-test-app"
|
|
73
|
+
When I go to "/"
|
|
74
|
+
Then I should see "Howdy"
|
|
75
|
+
When I go to "/hello.html"
|
|
76
|
+
Then I should see "Hello World"
|
|
77
|
+
When I go to "/lang_en/index.html"
|
|
78
|
+
Then I should see "File Not Found"
|
|
79
|
+
When I go to "/lang_es/index.html"
|
|
80
|
+
Then I should see "Como Esta?"
|
|
81
|
+
When I go to "/lang_es/hola.html"
|
|
82
|
+
Then I should see "Hola World"
|
|
83
83
|
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
85
|
+
Scenario: Running localize with the alt root config
|
|
86
|
+
Given a fixture app "i18n-alt-root-app"
|
|
87
|
+
And a file named "config.rb" with:
|
|
88
|
+
"""
|
|
89
|
+
activate :i18n, templates_dir: "lang_data"
|
|
90
|
+
"""
|
|
91
|
+
Given the Server is running at "i18n-alt-root-app"
|
|
92
|
+
When I go to "/"
|
|
93
|
+
Then I should see "Howdy"
|
|
94
|
+
When I go to "/hello.html"
|
|
95
|
+
Then I should see "Hello World"
|
|
96
|
+
When I go to "/en/index.html"
|
|
97
|
+
Then I should see "File Not Found"
|
|
98
|
+
When I go to "/es/index.html"
|
|
99
|
+
Then I should see "Como Esta?"
|
|
100
|
+
When I go to "/es/hola.html"
|
|
101
|
+
Then I should see "Hola World"
|
|
102
102
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
103
|
+
Scenario: Running localize with the lang map config
|
|
104
|
+
Given a fixture app "i18n-test-app"
|
|
105
|
+
And a file named "config.rb" with:
|
|
106
|
+
"""
|
|
107
|
+
activate :i18n, lang_map: { en: :english, es: :spanish }
|
|
108
|
+
"""
|
|
109
|
+
Given the Server is running at "i18n-test-app"
|
|
110
|
+
When I go to "/"
|
|
111
|
+
Then I should see "Howdy"
|
|
112
|
+
When I go to "/hello.html"
|
|
113
|
+
Then I should see "Hello World"
|
|
114
|
+
When I go to "/english/index.html"
|
|
115
|
+
Then I should see "File Not Found"
|
|
116
|
+
When I go to "/spanish/index.html"
|
|
117
|
+
Then I should see "Como Esta?"
|
|
118
|
+
When I go to "/spanish/hola.html"
|
|
119
|
+
Then I should see "Hola World"
|
|
120
120
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
121
|
+
Scenario: Running localize with a non-English mount config
|
|
122
|
+
Given a fixture app "i18n-test-app"
|
|
123
|
+
And a file named "config.rb" with:
|
|
124
|
+
"""
|
|
125
|
+
activate :i18n, mount_at_root: :es
|
|
126
|
+
"""
|
|
127
|
+
Given the Server is running at "i18n-test-app"
|
|
128
|
+
When I go to "/en/index.html"
|
|
129
|
+
Then I should see "Howdy"
|
|
130
|
+
When I go to "/en/hello.html"
|
|
131
|
+
Then I should see "Hello World"
|
|
132
|
+
When I go to "/"
|
|
133
|
+
Then I should see "Como Esta?"
|
|
134
|
+
When I go to "/hola.html"
|
|
135
|
+
Then I should see "Hola World"
|
|
136
|
+
When I go to "/manana.html"
|
|
137
|
+
Then I should see "Buenos días"
|
|
138
|
+
When I go to "/hello.html"
|
|
139
|
+
Then I should see "File Not Found"
|
|
140
|
+
When I go to "/en/morning.html"
|
|
141
|
+
Then I should see "Good morning"
|
|
142
|
+
When I go to "/es/manana.html"
|
|
143
|
+
Then I should see "File Not Found"
|
|
144
|
+
When I go to "/es/index.html"
|
|
145
|
+
Then I should see "File Not Found"
|
|
146
|
+
When I go to "/es/hola.html"
|
|
147
|
+
Then I should see "File Not Found"
|
|
148
148
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
149
|
+
Scenario: Running localize with a non-English lang subset
|
|
150
|
+
Given a fixture app "i18n-test-app"
|
|
151
|
+
And a file named "config.rb" with:
|
|
152
|
+
"""
|
|
153
|
+
activate :i18n, langs: :es
|
|
154
|
+
"""
|
|
155
|
+
Given the Server is running at "i18n-test-app"
|
|
156
|
+
When I go to "/en/index.html"
|
|
157
|
+
Then I should see "File Not Found"
|
|
158
|
+
When I go to "/en/hello.html"
|
|
159
|
+
Then I should see "File Not Found"
|
|
160
|
+
When I go to "/"
|
|
161
|
+
Then I should see "Como Esta?"
|
|
162
|
+
When I go to "/hola.html"
|
|
163
|
+
Then I should see "Hola World"
|
|
164
|
+
When I go to "/hello.html"
|
|
165
|
+
Then I should see "File Not Found"
|
|
166
|
+
When I go to "/es/index.html"
|
|
167
|
+
Then I should see "File Not Found"
|
|
168
|
+
When I go to "/es/hola.html"
|
|
169
|
+
Then I should see "File Not Found"
|
|
170
170
|
|
|
171
171
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
172
|
+
Scenario: Running localize with the no mount config
|
|
173
|
+
Given a fixture app "i18n-test-app"
|
|
174
|
+
And a file named "config.rb" with:
|
|
175
|
+
"""
|
|
176
|
+
activate :i18n, mount_at_root: false
|
|
177
|
+
"""
|
|
178
|
+
Given the Server is running at "i18n-test-app"
|
|
179
|
+
When I go to "/en/index.html"
|
|
180
|
+
Then I should see "Howdy"
|
|
181
|
+
When I go to "/en/hello.html"
|
|
182
|
+
Then I should see "Hello World"
|
|
183
|
+
When I go to "/"
|
|
184
|
+
Then I should see "File Not Found"
|
|
185
|
+
When I go to "/hello.html"
|
|
186
|
+
Then I should see "File Not Found"
|
|
187
|
+
When I go to "/es/index.html"
|
|
188
|
+
Then I should see "Como Esta?"
|
|
189
|
+
When I go to "/es/hola.html"
|
|
190
|
+
Then I should see "Hola World"
|
|
191
191
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
192
|
+
Scenario: Running localize with the subset config
|
|
193
|
+
Given a fixture app "i18n-test-app"
|
|
194
|
+
And a file named "config.rb" with:
|
|
195
|
+
"""
|
|
196
|
+
activate :i18n, langs: [:en]
|
|
197
|
+
"""
|
|
198
|
+
Given the Server is running at "i18n-test-app"
|
|
199
|
+
When I go to "/"
|
|
200
|
+
Then I should see "Howdy"
|
|
201
|
+
When I go to "/hello.html"
|
|
202
|
+
Then I should see "Hello World"
|
|
203
|
+
When I go to "/en/index.html"
|
|
204
|
+
Then I should see "File Not Found"
|
|
205
|
+
When I go to "/es/index.html"
|
|
206
|
+
Then I should see "File Not Found"
|
|
207
|
+
When I go to "/es/hola.html"
|
|
208
|
+
Then I should see "File Not Found"
|
|
209
209
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
210
|
+
Scenario: Running localize with relative_assets
|
|
211
|
+
Given a fixture app "i18n-test-app"
|
|
212
|
+
And a file named "config.rb" with:
|
|
213
|
+
"""
|
|
214
|
+
activate :i18n
|
|
215
|
+
activate :relative_assets
|
|
216
|
+
"""
|
|
217
|
+
Given the Server is running at "i18n-test-app"
|
|
218
|
+
When I go to "/"
|
|
219
|
+
Then I should see '"stylesheets/site.css"'
|
|
220
|
+
When I go to "/hello.html"
|
|
221
|
+
Then I should see '"stylesheets/site.css"'
|
|
222
|
+
When I go to "/es/index.html"
|
|
223
|
+
Then I should see '"../stylesheets/site.css"'
|
|
224
|
+
When I go to "/es/hola.html"
|
|
225
|
+
Then I should see '"../stylesheets/site.css"'
|
|
226
226
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
227
|
+
Scenario: Missing translations fall back to the default locale
|
|
228
|
+
Given a fixture app "i18n-default-app"
|
|
229
|
+
And a file named "config.rb" with:
|
|
230
|
+
"""
|
|
231
|
+
activate :i18n, mount_at_root: :es
|
|
232
|
+
"""
|
|
233
|
+
Given the Server is running at "i18n-default-app"
|
|
234
|
+
When I go to "/en/"
|
|
235
|
+
Then I should see "Default locale: es"
|
|
236
|
+
Then I should see "Current locale: en"
|
|
237
|
+
Then I should see "Buenos días"
|
|
238
|
+
Then I should see "Howdy"
|
|
239
239
|
|
|
240
240
|
# Scenario: Nested i18n yaml
|
|
241
241
|
# Given a fixture app "i18n-nested-app"
|
|
@@ -249,4 +249,4 @@
|
|
|
249
249
|
# Then I should see "More"
|
|
250
250
|
# When I go to "/es/"
|
|
251
251
|
# Then I should see "Como Esta?"
|
|
252
|
-
# Then I should see "Mucho"
|
|
252
|
+
# Then I should see "Mucho"
|
data/features/support/env.rb
CHANGED
|
@@ -5,8 +5,7 @@ require 'sassc'
|
|
|
5
5
|
require 'simplecov'
|
|
6
6
|
SimpleCov.root(File.expand_path(File.dirname(__FILE__) + '/../..'))
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
Coveralls.wear!
|
|
8
|
+
SimpleCov.start
|
|
10
9
|
|
|
11
10
|
PROJECT_ROOT_PATH = File.dirname(File.dirname(File.dirname(__FILE__)))
|
|
12
11
|
require File.join(PROJECT_ROOT_PATH, 'lib', 'middleman-core')
|
|
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
|