middleman-i18n 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/.travis.yml +7 -0
- data/Gemfile +4 -0
- data/README +6 -0
- data/Rakefile +15 -0
- data/features/builder_alt_path.feature +27 -0
- data/features/builder_alt_root.feature +27 -0
- data/features/builder_default.feature +27 -0
- data/features/builder_no_mount.feature +32 -0
- data/features/builder_subset.feature +27 -0
- data/features/preview_alt_path.feature +37 -0
- data/features/preview_alt_root.feature +37 -0
- data/features/preview_default.feature +37 -0
- data/features/preview_no_mount.feature +37 -0
- data/features/preview_subset.feature +37 -0
- data/features/step_definitions/builder_steps.rb +40 -0
- data/features/step_definitions/middleman_steps.rb +53 -0
- data/features/support/env.rb +4 -0
- data/fixtures/alt-path-app/.sass-cache/10724afd6f5974a893560df569c26d86a8c5edc2/_utilities.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_clearfix.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_float.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_hacks.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_min.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_reset.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_tag-cloud.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_ellipsis.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_force-wrap.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_nowrap.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_replacement.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/49ad737e3c38823be7cedc4cb08d0df08bba460e/_sprite-img.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/4c4992c06571c30502413267a4ed7c0dde0861ed/_alternating-rows-and-columns.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/4c4992c06571c30502413267a4ed7c0dde0861ed/_borders.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/4c4992c06571c30502413267a4ed7c0dde0861ed/_scaffolding.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/505433bc275003acf085f216eff8d41758a64b34/_compass.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_css3.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_reset.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_support.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_typography.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_utilities.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/asset_host.css.sassc +0 -0
- data/fixtures/alt-path-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/layout.css.sassc +0 -0
- data/fixtures/alt-path-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/relative_assets.css.sassc +0 -0
- data/fixtures/alt-path-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/site.css.sassc +0 -0
- data/fixtures/alt-path-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/site_scss.css.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_links.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_lists.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_text.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_vertical_rhythm.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_appearance.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_background-clip.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_background-origin.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_background-size.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_border-radius.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_box-shadow.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_box-sizing.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_box.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_columns.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_font-face.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_gradient.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_images.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_inline-block.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_opacity.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_shared.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_text-shadow.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_transform.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_transition.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_color.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_general.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_sprites.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_tables.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/e0442a673e623cb6ca8381eb07ccb93b13b71fe4/_contrast.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/e2d02fab84b0831aa8f421b7b8641b20851ca0e5/_hover-link.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/e2d02fab84b0831aa8f421b7b8641b20851ca0e5/_link-colors.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/e2d02fab84b0831aa8f421b7b8641b20851ca0e5/_unstyled-link.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_bullets.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_horizontal-list.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_inline-block-list.scssc +0 -0
- data/fixtures/alt-path-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_inline-list.scssc +0 -0
- data/fixtures/alt-path-app/config.rb +2 -0
- data/fixtures/alt-path-app/locales/en.yml +4 -0
- data/fixtures/alt-path-app/locales/es.yml +7 -0
- data/fixtures/alt-path-app/source/layout.erb +1 -0
- data/fixtures/alt-path-app/source/localizable/hello.html.erb +1 -0
- data/fixtures/alt-path-app/source/localizable/index.html.erb +1 -0
- data/fixtures/alt-root-app/.sass-cache/10724afd6f5974a893560df569c26d86a8c5edc2/_utilities.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_clearfix.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_float.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_hacks.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_min.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_reset.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_tag-cloud.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_ellipsis.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_force-wrap.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_nowrap.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_replacement.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/49ad737e3c38823be7cedc4cb08d0df08bba460e/_sprite-img.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/4c4992c06571c30502413267a4ed7c0dde0861ed/_alternating-rows-and-columns.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/4c4992c06571c30502413267a4ed7c0dde0861ed/_borders.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/4c4992c06571c30502413267a4ed7c0dde0861ed/_scaffolding.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/505433bc275003acf085f216eff8d41758a64b34/_compass.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_css3.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_reset.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_support.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_typography.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_utilities.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/asset_host.css.sassc +0 -0
- data/fixtures/alt-root-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/layout.css.sassc +0 -0
- data/fixtures/alt-root-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/relative_assets.css.sassc +0 -0
- data/fixtures/alt-root-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/site.css.sassc +0 -0
- data/fixtures/alt-root-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/site_scss.css.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_links.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_lists.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_text.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_vertical_rhythm.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_appearance.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_background-clip.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_background-origin.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_background-size.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_border-radius.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_box-shadow.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_box-sizing.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_box.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_columns.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_font-face.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_gradient.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_images.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_inline-block.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_opacity.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_shared.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_text-shadow.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_transform.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_transition.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_color.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_general.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_sprites.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_tables.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/e0442a673e623cb6ca8381eb07ccb93b13b71fe4/_contrast.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/e2d02fab84b0831aa8f421b7b8641b20851ca0e5/_hover-link.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/e2d02fab84b0831aa8f421b7b8641b20851ca0e5/_link-colors.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/e2d02fab84b0831aa8f421b7b8641b20851ca0e5/_unstyled-link.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_bullets.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_horizontal-list.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_inline-block-list.scssc +0 -0
- data/fixtures/alt-root-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_inline-list.scssc +0 -0
- data/fixtures/alt-root-app/config.rb +2 -0
- data/fixtures/alt-root-app/locales/en.yml +4 -0
- data/fixtures/alt-root-app/locales/es.yml +7 -0
- data/fixtures/alt-root-app/source/lang_data/hello.html.erb +1 -0
- data/fixtures/alt-root-app/source/lang_data/index.html.erb +1 -0
- data/fixtures/alt-root-app/source/layout.erb +1 -0
- data/fixtures/no-mount-app/.sass-cache/10724afd6f5974a893560df569c26d86a8c5edc2/_utilities.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_clearfix.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_float.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_hacks.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_min.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_reset.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_tag-cloud.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_ellipsis.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_force-wrap.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_nowrap.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_replacement.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/49ad737e3c38823be7cedc4cb08d0df08bba460e/_sprite-img.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/4c4992c06571c30502413267a4ed7c0dde0861ed/_alternating-rows-and-columns.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/4c4992c06571c30502413267a4ed7c0dde0861ed/_borders.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/4c4992c06571c30502413267a4ed7c0dde0861ed/_scaffolding.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/505433bc275003acf085f216eff8d41758a64b34/_compass.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_css3.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_reset.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_support.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_typography.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_utilities.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/asset_host.css.sassc +0 -0
- data/fixtures/no-mount-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/layout.css.sassc +0 -0
- data/fixtures/no-mount-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/relative_assets.css.sassc +0 -0
- data/fixtures/no-mount-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/site.css.sassc +0 -0
- data/fixtures/no-mount-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/site_scss.css.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_links.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_lists.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_text.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_vertical_rhythm.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_appearance.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_background-clip.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_background-origin.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_background-size.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_border-radius.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_box-shadow.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_box-sizing.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_box.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_columns.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_font-face.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_gradient.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_images.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_inline-block.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_opacity.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_shared.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_text-shadow.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_transform.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_transition.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_color.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_general.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_sprites.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_tables.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/e0442a673e623cb6ca8381eb07ccb93b13b71fe4/_contrast.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/e2d02fab84b0831aa8f421b7b8641b20851ca0e5/_hover-link.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/e2d02fab84b0831aa8f421b7b8641b20851ca0e5/_link-colors.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/e2d02fab84b0831aa8f421b7b8641b20851ca0e5/_unstyled-link.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_bullets.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_horizontal-list.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_inline-block-list.scssc +0 -0
- data/fixtures/no-mount-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_inline-list.scssc +0 -0
- data/fixtures/no-mount-app/config.rb +2 -0
- data/fixtures/no-mount-app/locales/en.yml +4 -0
- data/fixtures/no-mount-app/locales/es.yml +7 -0
- data/fixtures/no-mount-app/source/layout.erb +1 -0
- data/fixtures/no-mount-app/source/localizable/hello.html.erb +1 -0
- data/fixtures/no-mount-app/source/localizable/index.html.erb +1 -0
- data/fixtures/subset-app/.sass-cache/10724afd6f5974a893560df569c26d86a8c5edc2/_utilities.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_clearfix.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_float.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_hacks.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_min.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_reset.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_tag-cloud.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_ellipsis.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_force-wrap.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_nowrap.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_replacement.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/49ad737e3c38823be7cedc4cb08d0df08bba460e/_sprite-img.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/4c4992c06571c30502413267a4ed7c0dde0861ed/_alternating-rows-and-columns.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/4c4992c06571c30502413267a4ed7c0dde0861ed/_borders.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/4c4992c06571c30502413267a4ed7c0dde0861ed/_scaffolding.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/505433bc275003acf085f216eff8d41758a64b34/_compass.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_css3.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_reset.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_support.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_typography.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_utilities.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/asset_host.css.sassc +0 -0
- data/fixtures/subset-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/layout.css.sassc +0 -0
- data/fixtures/subset-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/relative_assets.css.sassc +0 -0
- data/fixtures/subset-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/site.css.sassc +0 -0
- data/fixtures/subset-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/site_scss.css.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_links.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_lists.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_text.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_vertical_rhythm.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_appearance.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_background-clip.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_background-origin.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_background-size.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_border-radius.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_box-shadow.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_box-sizing.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_box.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_columns.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_font-face.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_gradient.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_images.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_inline-block.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_opacity.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_shared.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_text-shadow.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_transform.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_transition.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_color.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_general.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_sprites.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_tables.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/e0442a673e623cb6ca8381eb07ccb93b13b71fe4/_contrast.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/e2d02fab84b0831aa8f421b7b8641b20851ca0e5/_hover-link.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/e2d02fab84b0831aa8f421b7b8641b20851ca0e5/_link-colors.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/e2d02fab84b0831aa8f421b7b8641b20851ca0e5/_unstyled-link.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_bullets.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_horizontal-list.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_inline-block-list.scssc +0 -0
- data/fixtures/subset-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_inline-list.scssc +0 -0
- data/fixtures/subset-app/config.rb +2 -0
- data/fixtures/subset-app/locales/en.yml +4 -0
- data/fixtures/subset-app/locales/es.yml +7 -0
- data/fixtures/subset-app/source/layout.erb +1 -0
- data/fixtures/subset-app/source/localizable/hello.html.erb +1 -0
- data/fixtures/subset-app/source/localizable/index.html.erb +1 -0
- data/fixtures/test-app/.sass-cache/10724afd6f5974a893560df569c26d86a8c5edc2/_utilities.scssc +0 -0
- data/fixtures/test-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_clearfix.scssc +0 -0
- data/fixtures/test-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_float.scssc +0 -0
- data/fixtures/test-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_hacks.scssc +0 -0
- data/fixtures/test-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_min.scssc +0 -0
- data/fixtures/test-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_reset.scssc +0 -0
- data/fixtures/test-app/.sass-cache/3042ced4cd348e207d3211006b2c68a362e6d19a/_tag-cloud.scssc +0 -0
- data/fixtures/test-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_ellipsis.scssc +0 -0
- data/fixtures/test-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_force-wrap.scssc +0 -0
- data/fixtures/test-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_nowrap.scssc +0 -0
- data/fixtures/test-app/.sass-cache/33a211ee6c1730d1758d9420e73d28bf583d55e6/_replacement.scssc +0 -0
- data/fixtures/test-app/.sass-cache/49ad737e3c38823be7cedc4cb08d0df08bba460e/_sprite-img.scssc +0 -0
- data/fixtures/test-app/.sass-cache/4c4992c06571c30502413267a4ed7c0dde0861ed/_alternating-rows-and-columns.scssc +0 -0
- data/fixtures/test-app/.sass-cache/4c4992c06571c30502413267a4ed7c0dde0861ed/_borders.scssc +0 -0
- data/fixtures/test-app/.sass-cache/4c4992c06571c30502413267a4ed7c0dde0861ed/_scaffolding.scssc +0 -0
- data/fixtures/test-app/.sass-cache/505433bc275003acf085f216eff8d41758a64b34/_compass.scssc +0 -0
- data/fixtures/test-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_css3.scssc +0 -0
- data/fixtures/test-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_reset.scssc +0 -0
- data/fixtures/test-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_support.scssc +0 -0
- data/fixtures/test-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_typography.scssc +0 -0
- data/fixtures/test-app/.sass-cache/64c06d71261a14ffecd9e3d9f2297133ea5e1a18/_utilities.scssc +0 -0
- data/fixtures/test-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/asset_host.css.sassc +0 -0
- data/fixtures/test-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/layout.css.sassc +0 -0
- data/fixtures/test-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/relative_assets.css.sassc +0 -0
- data/fixtures/test-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/site.css.sassc +0 -0
- data/fixtures/test-app/.sass-cache/7cd76a330b2b179d0e76e8faba8471e1b26230a5/site_scss.css.scssc +0 -0
- data/fixtures/test-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_links.scssc +0 -0
- data/fixtures/test-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_lists.scssc +0 -0
- data/fixtures/test-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_text.scssc +0 -0
- data/fixtures/test-app/.sass-cache/80b4c32b16909d1b79499b771ccc6b3a07c446bc/_vertical_rhythm.scssc +0 -0
- data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_appearance.scssc +0 -0
- data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_background-clip.scssc +0 -0
- data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_background-origin.scssc +0 -0
- data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_background-size.scssc +0 -0
- data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_border-radius.scssc +0 -0
- data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_box-shadow.scssc +0 -0
- data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_box-sizing.scssc +0 -0
- data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_box.scssc +0 -0
- data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_columns.scssc +0 -0
- data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_font-face.scssc +0 -0
- data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_gradient.scssc +0 -0
- data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_images.scssc +0 -0
- data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_inline-block.scssc +0 -0
- data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_opacity.scssc +0 -0
- data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_shared.scssc +0 -0
- data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_text-shadow.scssc +0 -0
- data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_transform.scssc +0 -0
- data/fixtures/test-app/.sass-cache/d07221099526fcdc9810773a1a41c06477884024/_transition.scssc +0 -0
- data/fixtures/test-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_color.scssc +0 -0
- data/fixtures/test-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_general.scssc +0 -0
- data/fixtures/test-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_sprites.scssc +0 -0
- data/fixtures/test-app/.sass-cache/d687da6d6d06a0f3ffb08f949bd46a74c3225960/_tables.scssc +0 -0
- data/fixtures/test-app/.sass-cache/e0442a673e623cb6ca8381eb07ccb93b13b71fe4/_contrast.scssc +0 -0
- data/fixtures/test-app/.sass-cache/e2d02fab84b0831aa8f421b7b8641b20851ca0e5/_hover-link.scssc +0 -0
- data/fixtures/test-app/.sass-cache/e2d02fab84b0831aa8f421b7b8641b20851ca0e5/_link-colors.scssc +0 -0
- data/fixtures/test-app/.sass-cache/e2d02fab84b0831aa8f421b7b8641b20851ca0e5/_unstyled-link.scssc +0 -0
- data/fixtures/test-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_bullets.scssc +0 -0
- data/fixtures/test-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_horizontal-list.scssc +0 -0
- data/fixtures/test-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_inline-block-list.scssc +0 -0
- data/fixtures/test-app/.sass-cache/f61ddd8505e17c06837607417b2236a8a8496714/_inline-list.scssc +0 -0
- data/fixtures/test-app/config.rb +2 -0
- data/fixtures/test-app/locales/en.yml +4 -0
- data/fixtures/test-app/locales/es.yml +7 -0
- data/fixtures/test-app/source/layout.erb +1 -0
- data/fixtures/test-app/source/localizable/hello.html.erb +1 -0
- data/fixtures/test-app/source/localizable/index.html.erb +1 -0
- data/lib/middleman-i18n.rb +1 -0
- data/lib/middleman-i18n/feature.rb +77 -0
- data/lib/middleman-i18n/version.rb +5 -0
- data/lib/middleman_init.rb +1 -0
- data/middleman-i18n.gemspec +26 -0
- metadata +497 -0
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/README
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'bundler'
|
2
|
+
Bundler::GemHelper.install_tasks
|
3
|
+
|
4
|
+
require 'cucumber/rake/task'
|
5
|
+
|
6
|
+
Cucumber::Rake::Task.new(:cucumber, 'Run features that should pass') do |t|
|
7
|
+
t.cucumber_opts = "--color --tags ~@wip --strict --format #{ENV['CUCUMBER_FORMAT'] || 'pretty'}"
|
8
|
+
end
|
9
|
+
|
10
|
+
#$LOAD_PATH.unshift 'lib'
|
11
|
+
|
12
|
+
require 'rake/testtask'
|
13
|
+
require 'rake/clean'
|
14
|
+
|
15
|
+
task :test => ["cucumber"]
|
@@ -0,0 +1,27 @@
|
|
1
|
+
Feature: Builder Alt Path
|
2
|
+
In order to preview localized html
|
3
|
+
|
4
|
+
Scenario: EN should be at root
|
5
|
+
Given a built app at "alt-path-app"
|
6
|
+
Then "index.html" should exist at "alt-path-app" and include "Howdy"
|
7
|
+
And cleanup built app at "alt-path-app"
|
8
|
+
|
9
|
+
Scenario: EN mounted at root should not be in directory
|
10
|
+
Given a built app at "alt-path-app"
|
11
|
+
Then "lang_en/index.html" should not exist at "alt-path-app"
|
12
|
+
And cleanup built app at "alt-path-app"
|
13
|
+
|
14
|
+
Scenario: Paths can be localized EN
|
15
|
+
Given a built app at "alt-path-app"
|
16
|
+
Then "hello.html" should exist at "alt-path-app" and include "Hello World"
|
17
|
+
And cleanup built app at "alt-path-app"
|
18
|
+
|
19
|
+
Scenario: ES should be under namespace
|
20
|
+
Given a built app at "alt-path-app"
|
21
|
+
Then "lang_es/index.html" should exist at "alt-path-app" and include "Como Esta?"
|
22
|
+
And cleanup built app at "alt-path-app"
|
23
|
+
|
24
|
+
Scenario: Paths can be localized ES
|
25
|
+
Given a built app at "alt-path-app"
|
26
|
+
Then "lang_es/hola.html" should exist at "alt-path-app" and include "Hola World"
|
27
|
+
And cleanup built app at "alt-path-app"
|
@@ -0,0 +1,27 @@
|
|
1
|
+
Feature: Builder Alt Root
|
2
|
+
In order to preview localized html
|
3
|
+
|
4
|
+
Scenario: EN should be at root
|
5
|
+
Given a built app at "alt-root-app"
|
6
|
+
Then "index.html" should exist at "alt-root-app" and include "Howdy"
|
7
|
+
And cleanup built app at "alt-root-app"
|
8
|
+
|
9
|
+
Scenario: EN mounted at root should not be in directory
|
10
|
+
Given a built app at "alt-root-app"
|
11
|
+
Then "en/index.html" should not exist at "alt-root-app"
|
12
|
+
And cleanup built app at "alt-root-app"
|
13
|
+
|
14
|
+
Scenario: Paths can be localized EN
|
15
|
+
Given a built app at "alt-root-app"
|
16
|
+
Then "hello.html" should exist at "alt-root-app" and include "Hello World"
|
17
|
+
And cleanup built app at "alt-root-app"
|
18
|
+
|
19
|
+
Scenario: ES should be under namespace
|
20
|
+
Given a built app at "alt-root-app"
|
21
|
+
Then "es/index.html" should exist at "alt-root-app" and include "Como Esta?"
|
22
|
+
And cleanup built app at "alt-root-app"
|
23
|
+
|
24
|
+
Scenario: Paths can be localized ES
|
25
|
+
Given a built app at "alt-root-app"
|
26
|
+
Then "es/hola.html" should exist at "alt-root-app" and include "Hola World"
|
27
|
+
And cleanup built app at "alt-root-app"
|
@@ -0,0 +1,27 @@
|
|
1
|
+
Feature: Builder Default
|
2
|
+
In order to preview localized html
|
3
|
+
|
4
|
+
Scenario: EN should be at root
|
5
|
+
Given a built app at "test-app"
|
6
|
+
Then "index.html" should exist at "test-app" and include "Howdy"
|
7
|
+
And cleanup built app at "test-app"
|
8
|
+
|
9
|
+
Scenario: EN mounted at root should not be in directory
|
10
|
+
Given a built app at "test-app"
|
11
|
+
Then "en/index.html" should not exist at "test-app"
|
12
|
+
And cleanup built app at "test-app"
|
13
|
+
|
14
|
+
Scenario: Paths can be localized EN
|
15
|
+
Given a built app at "test-app"
|
16
|
+
Then "hello.html" should exist at "test-app" and include "Hello World"
|
17
|
+
And cleanup built app at "test-app"
|
18
|
+
|
19
|
+
Scenario: ES should be under namespace
|
20
|
+
Given a built app at "test-app"
|
21
|
+
Then "es/index.html" should exist at "test-app" and include "Como Esta?"
|
22
|
+
And cleanup built app at "test-app"
|
23
|
+
|
24
|
+
Scenario: Paths can be localized ES
|
25
|
+
Given a built app at "test-app"
|
26
|
+
Then "es/hola.html" should exist at "test-app" and include "Hola World"
|
27
|
+
And cleanup built app at "test-app"
|
@@ -0,0 +1,32 @@
|
|
1
|
+
Feature: Builder No Mount
|
2
|
+
In order to preview localized html
|
3
|
+
|
4
|
+
Scenario: EN should be at root
|
5
|
+
Given a built app at "no-mount-app"
|
6
|
+
Then "en/index.html" should exist at "no-mount-app" and include "Howdy"
|
7
|
+
And cleanup built app at "no-mount-app"
|
8
|
+
|
9
|
+
Scenario: EN mounted at root should not be in directory
|
10
|
+
Given a built app at "no-mount-app"
|
11
|
+
Then "index.html" should not exist at "no-mount-app"
|
12
|
+
And cleanup built app at "no-mount-app"
|
13
|
+
|
14
|
+
Scenario: Paths can be localized EN
|
15
|
+
Given a built app at "no-mount-app"
|
16
|
+
Then "en/hello.html" should exist at "no-mount-app" and include "Hello World"
|
17
|
+
And cleanup built app at "no-mount-app"
|
18
|
+
|
19
|
+
Scenario: EN mounted at root should not be in directory
|
20
|
+
Given a built app at "no-mount-app"
|
21
|
+
Then "hello.html" should not exist at "no-mount-app"
|
22
|
+
And cleanup built app at "no-mount-app"
|
23
|
+
|
24
|
+
Scenario: ES should be under namespace
|
25
|
+
Given a built app at "test-app"
|
26
|
+
Then "es/index.html" should exist at "test-app" and include "Como Esta?"
|
27
|
+
And cleanup built app at "test-app"
|
28
|
+
|
29
|
+
Scenario: Paths can be localized ES
|
30
|
+
Given a built app at "test-app"
|
31
|
+
Then "es/hola.html" should exist at "test-app" and include "Hola World"
|
32
|
+
And cleanup built app at "test-app"
|
@@ -0,0 +1,27 @@
|
|
1
|
+
Feature: Builder Subset
|
2
|
+
In order to preview localized html
|
3
|
+
|
4
|
+
Scenario: EN should be at root
|
5
|
+
Given a built app at "subset-app"
|
6
|
+
Then "index.html" should exist at "subset-app" and include "Howdy"
|
7
|
+
And cleanup built app at "subset-app"
|
8
|
+
|
9
|
+
Scenario: EN mounted at root should not be in directory
|
10
|
+
Given a built app at "subset-app"
|
11
|
+
Then "en/index.html" should not exist at "subset-app"
|
12
|
+
And cleanup built app at "subset-app"
|
13
|
+
|
14
|
+
Scenario: Paths can be localized EN
|
15
|
+
Given a built app at "subset-app"
|
16
|
+
Then "hello.html" should exist at "subset-app" and include "Hello World"
|
17
|
+
And cleanup built app at "subset-app"
|
18
|
+
|
19
|
+
Scenario: ES should be under namespace
|
20
|
+
Given a built app at "subset-app"
|
21
|
+
Then "es/index.html" should not exist at "subset-app"
|
22
|
+
And cleanup built app at "subset-app"
|
23
|
+
|
24
|
+
Scenario: Paths can be localized ES
|
25
|
+
Given a built app at "subset-app"
|
26
|
+
Then "es/hola.html" should not exist at "subset-app"
|
27
|
+
And cleanup built app at "subset-app"
|
@@ -0,0 +1,37 @@
|
|
1
|
+
Feature: Preview Alt Path
|
2
|
+
In order to preview localized html
|
3
|
+
|
4
|
+
Scenario: EN should be at root
|
5
|
+
Given the Server is running at "alt-path-app"
|
6
|
+
When I go to "/"
|
7
|
+
Then I should see "Howdy"
|
8
|
+
|
9
|
+
Scenario: EN should be at root 2
|
10
|
+
Given the Server is running at "alt-path-app"
|
11
|
+
When I go to "/index.html"
|
12
|
+
Then I should see "Howdy"
|
13
|
+
|
14
|
+
Scenario: EN mounted at root should not be in directory
|
15
|
+
Given the Server is running at "alt-path-app"
|
16
|
+
When I go to "/lang_en/index.html"
|
17
|
+
Then I should see "File Not Found"
|
18
|
+
|
19
|
+
Scenario: Paths can be localized EN
|
20
|
+
Given the Server is running at "alt-path-app"
|
21
|
+
When I go to "/hello.html"
|
22
|
+
Then I should see "Hello World"
|
23
|
+
|
24
|
+
Scenario: ES should be under namespace
|
25
|
+
Given the Server is running at "alt-path-app"
|
26
|
+
When I go to "/lang_es/"
|
27
|
+
Then I should see "Como Esta?"
|
28
|
+
|
29
|
+
Scenario: ES should be under namespace 2
|
30
|
+
Given the Server is running at "alt-path-app"
|
31
|
+
When I go to "/lang_es/index.html"
|
32
|
+
Then I should see "Como Esta?"
|
33
|
+
|
34
|
+
Scenario: Paths can be localized ES
|
35
|
+
Given the Server is running at "alt-path-app"
|
36
|
+
When I go to "/lang_es/hola.html"
|
37
|
+
Then I should see "Hola World"
|
@@ -0,0 +1,37 @@
|
|
1
|
+
Feature: Preview Alt Root
|
2
|
+
In order to preview localized html
|
3
|
+
|
4
|
+
Scenario: EN should be at root
|
5
|
+
Given the Server is running at "alt-root-app"
|
6
|
+
When I go to "/"
|
7
|
+
Then I should see "Howdy"
|
8
|
+
|
9
|
+
Scenario: EN should be at root 2
|
10
|
+
Given the Server is running at "alt-root-app"
|
11
|
+
When I go to "/index.html"
|
12
|
+
Then I should see "Howdy"
|
13
|
+
|
14
|
+
Scenario: EN mounted at root should not be in directory
|
15
|
+
Given the Server is running at "alt-root-app"
|
16
|
+
When I go to "/en/index.html"
|
17
|
+
Then I should see "File Not Found"
|
18
|
+
|
19
|
+
Scenario: Paths can be localized EN
|
20
|
+
Given the Server is running at "alt-root-app"
|
21
|
+
When I go to "/hello.html"
|
22
|
+
Then I should see "Hello World"
|
23
|
+
|
24
|
+
Scenario: ES should be under namespace
|
25
|
+
Given the Server is running at "alt-root-app"
|
26
|
+
When I go to "/es/"
|
27
|
+
Then I should see "Como Esta?"
|
28
|
+
|
29
|
+
Scenario: ES should be under namespace 2
|
30
|
+
Given the Server is running at "alt-root-app"
|
31
|
+
When I go to "/es/index.html"
|
32
|
+
Then I should see "Como Esta?"
|
33
|
+
|
34
|
+
Scenario: Paths can be localized ES
|
35
|
+
Given the Server is running at "alt-root-app"
|
36
|
+
When I go to "/es/hola.html"
|
37
|
+
Then I should see "Hola World"
|
@@ -0,0 +1,37 @@
|
|
1
|
+
Feature: Preview Default
|
2
|
+
In order to preview localized html
|
3
|
+
|
4
|
+
Scenario: EN should be at root
|
5
|
+
Given the Server is running at "test-app"
|
6
|
+
When I go to "/"
|
7
|
+
Then I should see "Howdy"
|
8
|
+
|
9
|
+
Scenario: EN should be at root 2
|
10
|
+
Given the Server is running at "test-app"
|
11
|
+
When I go to "/index.html"
|
12
|
+
Then I should see "Howdy"
|
13
|
+
|
14
|
+
Scenario: EN mounted at root should not be in directory
|
15
|
+
Given the Server is running at "test-app"
|
16
|
+
When I go to "/en/index.html"
|
17
|
+
Then I should see "File Not Found"
|
18
|
+
|
19
|
+
Scenario: Paths can be localized EN
|
20
|
+
Given the Server is running at "test-app"
|
21
|
+
When I go to "/hello.html"
|
22
|
+
Then I should see "Hello World"
|
23
|
+
|
24
|
+
Scenario: ES should be under namespace
|
25
|
+
Given the Server is running at "test-app"
|
26
|
+
When I go to "/es/"
|
27
|
+
Then I should see "Como Esta?"
|
28
|
+
|
29
|
+
Scenario: ES should be under namespace 2
|
30
|
+
Given the Server is running at "test-app"
|
31
|
+
When I go to "/es/index.html"
|
32
|
+
Then I should see "Como Esta?"
|
33
|
+
|
34
|
+
Scenario: Paths can be localized ES
|
35
|
+
Given the Server is running at "test-app"
|
36
|
+
When I go to "/es/hola.html"
|
37
|
+
Then I should see "Hola World"
|
@@ -0,0 +1,37 @@
|
|
1
|
+
Feature: Preview No Mount
|
2
|
+
In order to preview localized html
|
3
|
+
|
4
|
+
Scenario: EN should be at root
|
5
|
+
Given the Server is running at "no-mount-app"
|
6
|
+
When I go to "/en/"
|
7
|
+
Then I should see "Howdy"
|
8
|
+
|
9
|
+
Scenario: EN should be at root 2
|
10
|
+
Given the Server is running at "no-mount-app"
|
11
|
+
When I go to "/en/index.html"
|
12
|
+
Then I should see "Howdy"
|
13
|
+
|
14
|
+
Scenario: EN mounted at root should not be in directory
|
15
|
+
Given the Server is running at "no-mount-app"
|
16
|
+
When I go to "/index.html"
|
17
|
+
Then I should see "File Not Found"
|
18
|
+
|
19
|
+
Scenario: Paths can be localized EN
|
20
|
+
Given the Server is running at "no-mount-app"
|
21
|
+
When I go to "/en/hello.html"
|
22
|
+
Then I should see "Hello World"
|
23
|
+
|
24
|
+
Scenario: ES should be under namespace
|
25
|
+
Given the Server is running at "no-mount-app"
|
26
|
+
When I go to "/es/"
|
27
|
+
Then I should see "Como Esta?"
|
28
|
+
|
29
|
+
Scenario: ES should be under namespace 2
|
30
|
+
Given the Server is running at "no-mount-app"
|
31
|
+
When I go to "/es/index.html"
|
32
|
+
Then I should see "Como Esta?"
|
33
|
+
|
34
|
+
Scenario: Paths can be localized ES
|
35
|
+
Given the Server is running at "no-mount-app"
|
36
|
+
When I go to "/es/hola.html"
|
37
|
+
Then I should see "Hola World"
|
@@ -0,0 +1,37 @@
|
|
1
|
+
Feature: Preview Subset
|
2
|
+
In order to preview localized html
|
3
|
+
|
4
|
+
Scenario: EN should be at root
|
5
|
+
Given the Server is running at "subset-app"
|
6
|
+
When I go to "/"
|
7
|
+
Then I should see "Howdy"
|
8
|
+
|
9
|
+
Scenario: EN should be at root 2
|
10
|
+
Given the Server is running at "subset-app"
|
11
|
+
When I go to "/index.html"
|
12
|
+
Then I should see "Howdy"
|
13
|
+
|
14
|
+
Scenario: EN mounted at root should not be in directory
|
15
|
+
Given the Server is running at "subset-app"
|
16
|
+
When I go to "/en/index.html"
|
17
|
+
Then I should see "File Not Found"
|
18
|
+
|
19
|
+
Scenario: Paths can be localized EN
|
20
|
+
Given the Server is running at "subset-app"
|
21
|
+
When I go to "/hello.html"
|
22
|
+
Then I should see "Hello World"
|
23
|
+
|
24
|
+
Scenario: ES should be under namespace
|
25
|
+
Given the Server is running at "subset-app"
|
26
|
+
When I go to "/es/"
|
27
|
+
Then I should see "File Not Found"
|
28
|
+
|
29
|
+
Scenario: ES should be under namespace 2
|
30
|
+
Given the Server is running at "subset-app"
|
31
|
+
When I go to "/es/index.html"
|
32
|
+
Then I should see "File Not Found"
|
33
|
+
|
34
|
+
Scenario: Paths can be localized ES
|
35
|
+
Given the Server is running at "subset-app"
|
36
|
+
When I go to "/es/hola.html"
|
37
|
+
Then I should see "File Not Found"
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
|
3
|
+
Given /^app "([^"]*)" is using config "([^"]*)"$/ do |path, config_name|
|
4
|
+
root = File.dirname(File.dirname(File.dirname(__FILE__)))
|
5
|
+
target = File.join(root, "fixtures", path)
|
6
|
+
config_path = File.join(target, "config-#{config_name}.rb")
|
7
|
+
config_dest = File.join(target, "config.rb")
|
8
|
+
FileUtils.cp(config_path, config_dest)
|
9
|
+
end
|
10
|
+
|
11
|
+
Given /^a built app at "([^"]*)"$/ do |path|
|
12
|
+
root = File.dirname(File.dirname(File.dirname(__FILE__)))
|
13
|
+
target = File.join(root, "fixtures", path)
|
14
|
+
`cd #{target} && bundle exec middleman build`
|
15
|
+
end
|
16
|
+
|
17
|
+
Then /^cleanup built app at "([^"]*)"$/ do |path|
|
18
|
+
root = File.dirname(File.dirname(File.dirname(__FILE__)))
|
19
|
+
target = File.join(root, "fixtures", path, "build")
|
20
|
+
FileUtils.rm_rf(target)
|
21
|
+
end
|
22
|
+
|
23
|
+
Then /^"([^"]*)" should exist at "([^"]*)"$/ do |target_file, path|
|
24
|
+
root = File.dirname(File.dirname(File.dirname(__FILE__)))
|
25
|
+
target = File.join(root, "fixtures", path, "build", target_file)
|
26
|
+
File.exists?(target).should be_true
|
27
|
+
end
|
28
|
+
|
29
|
+
Then /^"([^"]*)" should exist at "([^"]*)" and include "([^"]*)"$/ do |target_file, path, expected|
|
30
|
+
root = File.dirname(File.dirname(File.dirname(__FILE__)))
|
31
|
+
target = File.join(root, "fixtures", path, "build", target_file)
|
32
|
+
File.exists?(target).should be_true
|
33
|
+
File.read(target).should include(expected)
|
34
|
+
end
|
35
|
+
|
36
|
+
Then /^"([^"]*)" should not exist at "([^"]*)"$/ do |target_file, path|
|
37
|
+
root = File.dirname(File.dirname(File.dirname(__FILE__)))
|
38
|
+
target = File.join(root, "fixtures", path, "build", target_file)
|
39
|
+
File.exists?(target).should be_false
|
40
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
Given /^a clean server$/ do
|
2
|
+
@server = Middleman.server
|
3
|
+
@server.set :show_exceptions, false
|
4
|
+
end
|
5
|
+
|
6
|
+
Given /^"([^\"]*)" feature is "([^\"]*)"$/ do |feature, state|
|
7
|
+
@server = Middleman.server
|
8
|
+
@server.set :show_exceptions, false
|
9
|
+
|
10
|
+
if state == "enabled"
|
11
|
+
@server.activate(feature.to_sym)
|
12
|
+
end
|
13
|
+
|
14
|
+
@server.set :environment, @current_env || :development
|
15
|
+
end
|
16
|
+
|
17
|
+
Given /^"([^\"]*)" is set to "([^\"]*)"$/ do |variable, value|
|
18
|
+
@server ||= Middleman.server
|
19
|
+
@server.set :show_exceptions, false
|
20
|
+
@server.set variable.to_sym, value
|
21
|
+
end
|
22
|
+
|
23
|
+
Given /^current environment is "([^\"]*)"$/ do |env|
|
24
|
+
@current_env = env.to_sym
|
25
|
+
end
|
26
|
+
|
27
|
+
Given /^the Server is running at "([^\"]*)"$/ do |app_path|
|
28
|
+
@server ||= Middleman.server
|
29
|
+
@server.set :show_exceptions, false
|
30
|
+
root = File.dirname(File.dirname(File.dirname(__FILE__)))
|
31
|
+
@server.set :root, File.join(root, "fixtures", app_path)
|
32
|
+
@browser = Rack::Test::Session.new(Rack::MockSession.new(@server.new))
|
33
|
+
end
|
34
|
+
|
35
|
+
When /^I go to "([^\"]*)"$/ do |url|
|
36
|
+
@browser.get(url)
|
37
|
+
end
|
38
|
+
|
39
|
+
Then /^I should see "([^\"]*)"$/ do |expected|
|
40
|
+
@browser.last_response.body.should include(expected)
|
41
|
+
end
|
42
|
+
|
43
|
+
Then /^I should see '([^\']*)'$/ do |expected|
|
44
|
+
@browser.last_response.body.should include(expected)
|
45
|
+
end
|
46
|
+
|
47
|
+
Then /^I should not see "([^\"]*)"$/ do |expected|
|
48
|
+
@browser.last_response.body.should_not include(expected)
|
49
|
+
end
|
50
|
+
|
51
|
+
Then /^I should see "([^\"]*)" lines$/ do |lines|
|
52
|
+
@browser.last_response.body.chomp.split($/).length.should == lines.to_i
|
53
|
+
end
|