middleman-core 3.0.0.beta.1 → 3.0.0.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -44
- data/bin/middleman +12 -8
- data/features/3rd_party_cli.feature +12 -2
- data/features/builder.feature +1 -1
- data/features/clean_build.feature +24 -14
- data/features/cli.feature +9 -30
- data/features/custom_layouts.feature +6 -0
- data/features/directory_index.feature +2 -0
- data/features/dynamic_pages.feature +37 -0
- data/features/extensionless_text_files.feature +58 -0
- data/features/former_padrino_helpers.feature +5 -3
- data/features/frontmatter_page_settings.feature +27 -0
- data/features/helpers_external.feature +7 -1
- data/features/i18n_builder.feature +121 -0
- data/features/i18n_preview.feature +113 -0
- data/features/ignore.feature +198 -0
- data/features/implied_extensions.feature +52 -0
- data/features/instance_vars.feature +0 -2
- data/features/partials.feature +5 -0
- data/features/request_params.feature +6 -0
- data/features/{sitemap_traversal.features → sitemap_traversal.feature} +24 -24
- data/features/wildcard_page_helper.feature +1 -1
- data/fixtures/clean-dir-app/config.rb +2 -1
- data/fixtures/clean-nested-app/config.rb +3 -0
- data/fixtures/clean-nested-app/source/about.html +1 -0
- data/fixtures/dynamic-pages-app/config.rb +25 -5
- data/fixtures/dynamic-pages-app/source/real/index.html.erb +5 -1
- data/{lib/middleman-core/vendor/darwin/spec/fixtures/custom 'path/.gitignore → fixtures/extensionless-text-files-app/config.rb} +0 -0
- data/fixtures/extensionless-text-files-app/source/CNAME +1 -0
- data/fixtures/extensionless-text-files-app/source/LICENSE +1 -0
- data/fixtures/extensionless-text-files-app/source/README +1 -0
- data/fixtures/extensionless-text-files-app/source/index.html +1 -0
- data/fixtures/external-helpers/helpers/four_helper.rb +3 -0
- data/fixtures/external-helpers/helpers/one_helper.rb +3 -0
- data/fixtures/external-helpers/helpers/three_helper.rb +3 -0
- data/fixtures/external-helpers/helpers/two_helper.rb +3 -0
- data/fixtures/external-helpers/source/automatic.html.erb +1 -0
- data/fixtures/frontmatter-settings-app/config.rb +4 -0
- data/fixtures/frontmatter-settings-app/source/alternate_layout.html.erb +5 -0
- data/fixtures/frontmatter-settings-app/source/ignored.html.erb +5 -0
- data/fixtures/frontmatter-settings-app/source/layouts/alternate.erb +3 -0
- data/fixtures/frontmatter-settings-app/source/no_index.html.erb +5 -0
- data/fixtures/i18n-alt-root-app/locales/en.yml +4 -0
- data/fixtures/i18n-alt-root-app/locales/es.yml +7 -0
- data/fixtures/i18n-alt-root-app/source/lang_data/hello.html.erb +1 -0
- data/fixtures/i18n-alt-root-app/source/lang_data/index.html.erb +1 -0
- data/fixtures/i18n-alt-root-app/source/layout.erb +1 -0
- data/fixtures/i18n-test-app/locales/en.yml +4 -0
- data/fixtures/i18n-test-app/locales/es.yml +7 -0
- data/fixtures/i18n-test-app/source/layout.erb +1 -0
- data/fixtures/i18n-test-app/source/localizable/hello.html.erb +1 -0
- data/fixtures/i18n-test-app/source/localizable/index.html.erb +1 -0
- data/fixtures/ignore-app/source/about.html.erb +1 -0
- data/{lib/middleman-core/vendor/darwin/spec/fixtures/folder1/file1.txt → fixtures/ignore-app/source/images/icon/messages.png} +0 -0
- data/{lib/middleman-core/vendor/darwin/spec/fixtures/folder1/folder2/file2.txt → 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 +1 -0
- data/fixtures/ignore-app/source/reports/another.html +0 -0
- data/fixtures/ignore-app/source/reports/index.html +0 -0
- data/fixtures/implied-extensions-app/config.rb +0 -0
- data/fixtures/implied-extensions-app/source/index.erb +1 -0
- data/fixtures/indexable-app/config.rb +3 -1
- data/fixtures/indexable-app/source/wildcard_leave_me_alone.html +1 -0
- data/fixtures/large-build-app/source/feed.xml.builder +4 -0
- data/fixtures/lorem-app/config.rb +1 -0
- data/fixtures/padrino-helpers-app/source/former_padrino_test.html.erb +2 -1
- data/fixtures/partials-app/source/shared/_footer.erb +1 -1
- data/fixtures/partials-app/source/shared/snippet.erb +1 -0
- data/fixtures/partials-app/source/using_snippet.html.erb +1 -0
- data/fixtures/request-app/config.rb +0 -0
- data/fixtures/request-app/source/index.html.erb +3 -0
- data/fixtures/traversal-app/source/layout.erb +2 -0
- data/lib/middleman-core/application.rb +558 -0
- data/lib/middleman-core/cli/build.rb +67 -64
- data/lib/middleman-core/cli/init.rb +10 -4
- data/lib/middleman-core/cli/server.rb +7 -1
- data/lib/middleman-core/cli.rb +22 -2
- data/lib/middleman-core/core_extensions/assets.rb +12 -3
- data/lib/middleman-core/core_extensions/builder.rb +0 -37
- data/lib/middleman-core/core_extensions/data.rb +3 -3
- data/lib/middleman-core/core_extensions/default_helpers.rb +17 -26
- data/lib/middleman-core/core_extensions/extensions.rb +13 -10
- data/lib/middleman-core/core_extensions/external_helpers.rb +35 -0
- data/lib/middleman-core/core_extensions/file_watcher.rb +9 -5
- data/lib/middleman-core/core_extensions/front_matter.rb +85 -15
- data/lib/middleman-core/core_extensions/i18n.rb +137 -0
- data/lib/middleman-core/core_extensions/rendering.rb +134 -21
- data/lib/middleman-core/core_extensions/routing.rb +42 -23
- data/lib/middleman-core/core_extensions/show_exceptions.rb +13 -3
- data/lib/middleman-core/extensions/asset_host.rb +21 -3
- data/lib/middleman-core/extensions/automatic_image_sizes.rb +20 -1
- data/lib/middleman-core/extensions/directory_indexes.rb +42 -47
- data/lib/middleman-core/extensions/lorem.rb +54 -6
- data/lib/middleman-core/extensions.rb +179 -0
- data/lib/middleman-core/renderers/erb.rb +28 -21
- data/lib/middleman-core/sitemap/extensions/ignores.rb +86 -0
- data/lib/middleman-core/sitemap/extensions/on_disk.rb +77 -0
- data/lib/middleman-core/sitemap/extensions/proxies.rb +97 -0
- data/lib/middleman-core/sitemap/extensions/traversal.rb +77 -0
- data/lib/middleman-core/sitemap/resource.rb +126 -0
- data/lib/middleman-core/sitemap/store.rb +148 -97
- data/lib/middleman-core/sitemap.rb +78 -0
- data/lib/middleman-core/step_definitions/builder_steps.rb +15 -1
- data/lib/middleman-core/step_definitions/server_steps.rb +11 -4
- data/lib/middleman-core/templates/default.rb +10 -0
- data/lib/middleman-core/templates/html5/source/404.html +32 -27
- data/lib/middleman-core/templates/html5/source/README.md +34 -367
- data/lib/middleman-core/templates/html5/source/apple-touch-icon-114x114-precomposed.png +0 -0
- data/lib/middleman-core/templates/html5/source/apple-touch-icon-57x57-precomposed.png +0 -0
- data/lib/middleman-core/templates/html5/source/apple-touch-icon-72x72-precomposed.png +0 -0
- data/lib/middleman-core/templates/html5/source/apple-touch-icon-precomposed.png +0 -0
- data/lib/middleman-core/templates/html5/source/apple-touch-icon.png +0 -0
- data/lib/middleman-core/templates/html5/source/crossdomain.xml +0 -0
- data/lib/middleman-core/templates/html5/source/css/style.css +37 -37
- data/lib/middleman-core/templates/html5/source/favicon.ico +0 -0
- data/lib/middleman-core/templates/html5/source/humans.txt +0 -0
- data/lib/middleman-core/templates/html5/source/img/.gitignore +0 -2
- data/lib/middleman-core/templates/html5/source/index.html +31 -43
- data/lib/middleman-core/templates/html5/source/js/libs/{jquery-1.6.2.js → jquery-1.7.1.js} +1922 -1637
- data/lib/middleman-core/templates/html5/source/js/libs/jquery-1.7.1.min.js +4 -0
- data/lib/middleman-core/templates/html5/source/js/libs/modernizr-2.5.3.min.js +4 -0
- data/lib/middleman-core/templates/html5/source/js/plugins.js +3 -12
- data/lib/middleman-core/templates/html5/source/js/script.js +0 -0
- data/lib/middleman-core/templates/html5/source/robots.txt +1 -2
- data/lib/middleman-core/templates/html5.rb +10 -5
- data/lib/middleman-core/templates/local.rb +8 -1
- data/lib/middleman-core/templates/shared/config.tt +6 -6
- data/lib/middleman-core/templates.rb +10 -13
- data/lib/middleman-core/util.rb +90 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/.document +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/.gitignore +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/.yardopts +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/LICENSE.txt +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/README.rdoc +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/Rakefile +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/bin/padrino +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/application/rendering.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/application/routing.rb +38 -29
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/application/showexceptions.rb +0 -0
- data/lib/middleman-core/vendor/padrino-core-0.10.6/lib/padrino-core/application.rb +269 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/caller.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/cli/adapter.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/cli/base.rb +4 -5
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/cli/console.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/cli/rake.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/cli/rake_tasks.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/command.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/images/404.png +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/images/500.png +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/loader.rb +1 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/locale/cs.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/locale/da.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/locale/de.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/locale/en.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/locale/es.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/locale/fr.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/locale/hu.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/locale/it.yml +1 -1
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/locale/ja.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/locale/lv.yml +2 -2
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/locale/nl.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/locale/no.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/locale/pl.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/locale/pt_br.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/locale/ru.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/locale/tr.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/locale/uk.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/locale/zh_cn.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/locale/zh_tw.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/logger.rb +192 -109
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/mounter.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/reloader.rb +39 -39
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/router.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/server.rb +2 -2
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/support_lite.rb +4 -5
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/tasks.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core/version.rb +1 -1
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/lib/padrino-core.rb +0 -15
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/padrino-core.gemspec +1 -1
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/test/fixtures/apps/.components +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/test/fixtures/apps/.gitignore +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/test/fixtures/apps/complex.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/test/fixtures/apps/simple.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/test/fixtures/dependencies/a.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/test/fixtures/dependencies/b.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/test/fixtures/dependencies/c.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/test/fixtures/dependencies/circular/e.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/test/fixtures/dependencies/circular/f.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/test/fixtures/dependencies/circular/g.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/test/fixtures/dependencies/d.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/test/helper.rb +2 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/test/mini_shoulda.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/test/test_application.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/test/test_core.rb +0 -2
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/test/test_dependencies.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/test/test_filters.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/test/test_locale.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/test/test_logger.rb +54 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/test/test_mounter.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/test/test_reloader_complex.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/test/test_reloader_simple.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/test/test_rendering.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/test/test_restful_routing.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/test/test_router.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-core-0.10.5 → padrino-core-0.10.6}/test/test_routing.rb +7 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/.document +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/.gitignore +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/.yardopts +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/LICENSE.txt +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/README.rdoc +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/Rakefile +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers/asset_tag_helpers.rb +76 -79
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers/form_builder/abstract_form_builder.rb +31 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers/form_builder/standard_form_builder.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers/form_helpers.rb +211 -26
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers/format_helpers.rb +2 -2
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers/locale/cs.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers/locale/da.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers/locale/de.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers/locale/en.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers/locale/es.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers/locale/fr.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers/locale/hu.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers/locale/it.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers/locale/ja.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers/locale/lv.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers/locale/nl.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers/locale/no.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers/locale/pl.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers/locale/pt_br.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers/locale/ru.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers/locale/tr.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers/locale/uk.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers/locale/zh_cn.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers/locale/zh_tw.yml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers/number_helpers.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers/output_helpers/abstract_handler.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers/output_helpers/erb_handler.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers/output_helpers/haml_handler.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers/output_helpers/slim_handler.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers/output_helpers.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers/render_helpers.rb +0 -0
- data/lib/middleman-core/vendor/padrino-helpers-0.10.6/lib/padrino-helpers/tag_helpers.rb +260 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers/translation_helpers.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/lib/padrino-helpers.rb +4 -3
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/padrino-helpers.gemspec +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/app.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/capture_concat.erb +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/capture_concat.haml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/capture_concat.slim +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/content_for.erb +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/content_for.haml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/content_for.slim +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/content_tag.erb +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/content_tag.haml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/content_tag.slim +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/current_engine.erb +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/current_engine.haml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/current_engine.slim +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/fields_for.erb +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/fields_for.haml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/fields_for.slim +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/form_for.erb +20 -4
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/form_for.haml +15 -3
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/form_for.slim +15 -3
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/form_tag.erb +30 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/form_tag.haml +25 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/form_tag.slim +25 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/link_to.erb +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/link_to.haml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/link_to.slim +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/mail_to.erb +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/mail_to.haml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/mail_to.slim +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/meta_tag.erb +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/meta_tag.haml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/meta_tag.slim +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/partials/_erb.erb +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/partials/_haml.haml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/partials/_slim.slim +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/simple_partial.erb +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/simple_partial.haml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/markup_app/views/simple_partial.slim +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/render_app/app.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/render_app/views/current_engine.haml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/render_app/views/current_engines/_erb.erb +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/render_app/views/current_engines/_haml.haml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/render_app/views/current_engines/_slim.slim +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/render_app/views/erb/test.erb +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/render_app/views/explicit_engine.haml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/render_app/views/haml/test.haml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/render_app/views/template/_user.haml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/render_app/views/template/haml_template.haml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/fixtures/render_app/views/template/some_template.haml +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/helper.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/test_asset_tag_helpers.rb +14 -6
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/test_form_builder.rb +116 -6
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/test_form_helpers.rb +134 -9
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/test_format_helpers.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/test_locale.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/test_number_helpers.rb +3 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/test_output_helpers.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/test_render_helpers.rb +0 -0
- data/lib/middleman-core/vendor/{padrino-helpers-0.10.5 → padrino-helpers-0.10.6}/test/test_tag_helpers.rb +7 -6
- data/lib/middleman-core/version.rb +2 -2
- data/lib/middleman-core/watcher.rb +75 -36
- data/lib/middleman-core.rb +7 -252
- data/middleman-core.gemspec +14 -11
- metadata +396 -348
- data/bin/fsevent_watch_guard +0 -0
- data/ext/extconf.rb +0 -61
- data/ext/fsevent/fsevent_watch.c +0 -226
- data/fixtures/3rd-party-command/config.rb +0 -10
- data/fixtures/ignore-app/config.rb +0 -2
- data/fixtures/ignore-app/source/articles/template.html.erb +0 -1
- data/fixtures/ignore-app/source/template.html.erb +0 -1
- data/lib/middleman-core/base.rb +0 -494
- data/lib/middleman-core/cache.rb +0 -57
- data/lib/middleman-core/core_extensions/sitemap.rb +0 -72
- data/lib/middleman-core/sitemap/page.rb +0 -186
- data/lib/middleman-core/sitemap/template.rb +0 -82
- data/lib/middleman-core/templates/html5/source/js/libs/jquery-1.6.2.min.js +0 -18
- data/lib/middleman-core/templates/html5/source/js/libs/modernizr-2.0.6.min.js +0 -4
- data/lib/middleman-core/templates/html5/source/js/mylibs/.gitignore +0 -2
- data/lib/middleman-core/templates/html5/source/test/index.html +0 -31
- data/lib/middleman-core/templates/html5/source/test/qunit/qunit.css +0 -148
- data/lib/middleman-core/templates/html5/source/test/qunit/qunit.js +0 -1265
- data/lib/middleman-core/templates/html5/source/test/tests.js +0 -24
- data/lib/middleman-core/vendor/darwin/.gitignore +0 -18
- data/lib/middleman-core/vendor/darwin/Gemfile +0 -6
- data/lib/middleman-core/vendor/darwin/Guardfile +0 -8
- data/lib/middleman-core/vendor/darwin/LICENSE +0 -20
- data/lib/middleman-core/vendor/darwin/README.rdoc +0 -254
- data/lib/middleman-core/vendor/darwin/Rakefile +0 -21
- data/lib/middleman-core/vendor/darwin/ext/extconf.rb +0 -61
- data/lib/middleman-core/vendor/darwin/ext/fsevent/fsevent_watch.c +0 -226
- data/lib/middleman-core/vendor/darwin/lib/rb-fsevent/fsevent.rb +0 -105
- data/lib/middleman-core/vendor/darwin/lib/rb-fsevent/version.rb +0 -3
- data/lib/middleman-core/vendor/darwin/lib/rb-fsevent.rb +0 -2
- data/lib/middleman-core/vendor/darwin/rb-fsevent.gemspec +0 -24
- data/lib/middleman-core/vendor/darwin/spec/rb-fsevent/fsevent_spec.rb +0 -75
- data/lib/middleman-core/vendor/darwin/spec/spec_helper.rb +0 -24
- data/lib/middleman-core/vendor/linux/.gitignore +0 -3
- data/lib/middleman-core/vendor/linux/.yardopts +0 -4
- data/lib/middleman-core/vendor/linux/MIT-LICENSE +0 -20
- data/lib/middleman-core/vendor/linux/README.md +0 -66
- data/lib/middleman-core/vendor/linux/Rakefile +0 -54
- data/lib/middleman-core/vendor/linux/VERSION +0 -1
- data/lib/middleman-core/vendor/linux/lib/rb-inotify/event.rb +0 -139
- data/lib/middleman-core/vendor/linux/lib/rb-inotify/native/flags.rb +0 -89
- data/lib/middleman-core/vendor/linux/lib/rb-inotify/native.rb +0 -31
- data/lib/middleman-core/vendor/linux/lib/rb-inotify/notifier.rb +0 -308
- data/lib/middleman-core/vendor/linux/lib/rb-inotify/watcher.rb +0 -83
- data/lib/middleman-core/vendor/linux/lib/rb-inotify.rb +0 -17
- data/lib/middleman-core/vendor/linux/rb-inotify.gemspec +0 -53
- data/lib/middleman-core/vendor/padrino-core-0.10.5/lib/padrino-core/application.rb +0 -270
- data/lib/middleman-core/vendor/padrino-helpers-0.10.5/lib/padrino-helpers/tag_helpers.rb +0 -103
@@ -0,0 +1,113 @@
|
|
1
|
+
Feature: i18n Preview
|
2
|
+
In order to preview localized html
|
3
|
+
|
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
|
+
localize
|
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 "/en/index.html"
|
16
|
+
Then I should see "File Not Found"
|
17
|
+
When I go to "/es/index.html"
|
18
|
+
Then I should see "Como Esta?"
|
19
|
+
When I go to "/es/hola.html"
|
20
|
+
Then I should see "Hola World"
|
21
|
+
|
22
|
+
Scenario: Running localize with the alt path config
|
23
|
+
Given a fixture app "i18n-test-app"
|
24
|
+
And a file named "config.rb" with:
|
25
|
+
"""
|
26
|
+
localize :path => "/lang_:locale/"
|
27
|
+
"""
|
28
|
+
Given the Server is running at "i18n-test-app"
|
29
|
+
When I go to "/"
|
30
|
+
Then I should see "Howdy"
|
31
|
+
When I go to "/hello.html"
|
32
|
+
Then I should see "Hello World"
|
33
|
+
When I go to "/lang_en/index.html"
|
34
|
+
Then I should see "File Not Found"
|
35
|
+
When I go to "/lang_es/index.html"
|
36
|
+
Then I should see "Como Esta?"
|
37
|
+
When I go to "/lang_es/hola.html"
|
38
|
+
Then I should see "Hola World"
|
39
|
+
|
40
|
+
|
41
|
+
Scenario: Running localize with the alt root config
|
42
|
+
Given a fixture app "i18n-alt-root-app"
|
43
|
+
And a file named "config.rb" with:
|
44
|
+
"""
|
45
|
+
localize :templates_dir => "lang_data"
|
46
|
+
"""
|
47
|
+
Given the Server is running at "i18n-alt-root-app"
|
48
|
+
When I go to "/"
|
49
|
+
Then I should see "Howdy"
|
50
|
+
When I go to "/hello.html"
|
51
|
+
Then I should see "Hello World"
|
52
|
+
When I go to "/en/index.html"
|
53
|
+
Then I should see "File Not Found"
|
54
|
+
When I go to "/es/index.html"
|
55
|
+
Then I should see "Como Esta?"
|
56
|
+
When I go to "/es/hola.html"
|
57
|
+
Then I should see "Hola World"
|
58
|
+
|
59
|
+
Scenario: Running localize with the lang map config
|
60
|
+
Given a fixture app "i18n-test-app"
|
61
|
+
And a file named "config.rb" with:
|
62
|
+
"""
|
63
|
+
localize :lang_map => { :en => :english, :es => :spanish }
|
64
|
+
"""
|
65
|
+
Given the Server is running at "i18n-test-app"
|
66
|
+
When I go to "/"
|
67
|
+
Then I should see "Howdy"
|
68
|
+
When I go to "/hello.html"
|
69
|
+
Then I should see "Hello World"
|
70
|
+
When I go to "/english/index.html"
|
71
|
+
Then I should see "File Not Found"
|
72
|
+
When I go to "/spanish/index.html"
|
73
|
+
Then I should see "Como Esta?"
|
74
|
+
When I go to "/spanish/hola.html"
|
75
|
+
Then I should see "Hola World"
|
76
|
+
|
77
|
+
Scenario: Running localize with the no mount config
|
78
|
+
Given a fixture app "i18n-test-app"
|
79
|
+
And a file named "config.rb" with:
|
80
|
+
"""
|
81
|
+
localize :mount_at_root => false
|
82
|
+
"""
|
83
|
+
Given the Server is running at "i18n-test-app"
|
84
|
+
When I go to "/en/index.html"
|
85
|
+
Then I should see "Howdy"
|
86
|
+
When I go to "/en/hello.html"
|
87
|
+
Then I should see "Hello World"
|
88
|
+
When I go to "/"
|
89
|
+
Then I should see "File Not Found"
|
90
|
+
When I go to "/hello.html"
|
91
|
+
Then I should see "File Not Found"
|
92
|
+
When I go to "/es/index.html"
|
93
|
+
Then I should see "Como Esta?"
|
94
|
+
When I go to "/es/hola.html"
|
95
|
+
Then I should see "Hola World"
|
96
|
+
|
97
|
+
Scenario: Running localize with the subset config
|
98
|
+
Given a fixture app "i18n-test-app"
|
99
|
+
And a file named "config.rb" with:
|
100
|
+
"""
|
101
|
+
localize :langs => [:en]
|
102
|
+
"""
|
103
|
+
Given the Server is running at "i18n-test-app"
|
104
|
+
When I go to "/"
|
105
|
+
Then I should see "Howdy"
|
106
|
+
When I go to "/hello.html"
|
107
|
+
Then I should see "Hello World"
|
108
|
+
When I go to "/en/index.html"
|
109
|
+
Then I should see "File Not Found"
|
110
|
+
When I go to "/es/index.html"
|
111
|
+
Then I should see "File Not Found"
|
112
|
+
When I go to "/es/hola.html"
|
113
|
+
Then I should see "File Not Found"
|
@@ -0,0 +1,198 @@
|
|
1
|
+
Feature: Ignoring paths
|
2
|
+
Scenario: Ignore a single path (build)
|
3
|
+
Given a fixture app "ignore-app"
|
4
|
+
And a file named "config.rb" with:
|
5
|
+
"""
|
6
|
+
ignore 'about.html.erb'
|
7
|
+
ignore 'plain.html'
|
8
|
+
"""
|
9
|
+
And a successfully built app at "ignore-app"
|
10
|
+
Then the following files should exist:
|
11
|
+
| build/index.html |
|
12
|
+
And the following files should not exist:
|
13
|
+
| build/plain.html |
|
14
|
+
| build/about.html |
|
15
|
+
|
16
|
+
Scenario: Ignore a single path (server)
|
17
|
+
Given a fixture app "ignore-app"
|
18
|
+
And a file named "config.rb" with:
|
19
|
+
"""
|
20
|
+
ignore 'about.html.erb'
|
21
|
+
ignore 'plain.html'
|
22
|
+
"""
|
23
|
+
And the Server is running
|
24
|
+
When I go to "/index.html"
|
25
|
+
Then I should not see "File Not Found"
|
26
|
+
When I go to "/plain.html"
|
27
|
+
Then I should see "File Not Found"
|
28
|
+
When I go to "/about.html"
|
29
|
+
Then I should see "File Not Found"
|
30
|
+
|
31
|
+
Scenario: Ignore a globbed path (build)
|
32
|
+
Given a fixture app "ignore-app"
|
33
|
+
And a file named "config.rb" with:
|
34
|
+
"""
|
35
|
+
ignore '*.erb'
|
36
|
+
ignore 'reports/*'
|
37
|
+
ignore 'images/**/*.png'
|
38
|
+
"""
|
39
|
+
And a successfully built app at "ignore-app"
|
40
|
+
Then the following files should exist:
|
41
|
+
| build/plain.html |
|
42
|
+
| build/images/portrait.jpg |
|
43
|
+
| build/images/pic.png |
|
44
|
+
And the following files should not exist:
|
45
|
+
| build/about.html |
|
46
|
+
| build/index.html |
|
47
|
+
| build/reports/index.html |
|
48
|
+
| build/reports/another.html |
|
49
|
+
| build/images/icons/messages.png |
|
50
|
+
|
51
|
+
Scenario: Ignore a globbed path (server)
|
52
|
+
Given a fixture app "ignore-app"
|
53
|
+
And a file named "config.rb" with:
|
54
|
+
"""
|
55
|
+
ignore '*.erb'
|
56
|
+
ignore 'reports/*'
|
57
|
+
ignore 'images/**/*.png'
|
58
|
+
"""
|
59
|
+
And the Server is running
|
60
|
+
When I go to "/plain.html"
|
61
|
+
Then I should not see "File Not Found"
|
62
|
+
When I go to "/images/portrait.jpg"
|
63
|
+
Then I should not see "File Not Found"
|
64
|
+
When I go to "/images/pic.png"
|
65
|
+
Then I should not see "File Not Found"
|
66
|
+
When I go to "/about.html"
|
67
|
+
Then I should see "File Not Found"
|
68
|
+
When I go to "/index.html"
|
69
|
+
Then I should see "File Not Found"
|
70
|
+
When I go to "/reports/index.html"
|
71
|
+
Then I should see "File Not Found"
|
72
|
+
When I go to "/reports/another.html"
|
73
|
+
Then I should see "File Not Found"
|
74
|
+
When I go to "/images/icons/messages.png"
|
75
|
+
Then I should see "File Not Found"
|
76
|
+
|
77
|
+
Scenario: Ignore a regex (build)
|
78
|
+
Given a fixture app "ignore-app"
|
79
|
+
And a file named "config.rb" with:
|
80
|
+
"""
|
81
|
+
ignore /^.*\.erb/
|
82
|
+
ignore /^reports\/.*/
|
83
|
+
ignore /^images\.*\.png/
|
84
|
+
"""
|
85
|
+
And a successfully built app at "ignore-app"
|
86
|
+
Then the following files should exist:
|
87
|
+
| build/plain.html |
|
88
|
+
| build/images/portrait.jpg |
|
89
|
+
| build/images/pic.png |
|
90
|
+
And the following files should not exist:
|
91
|
+
| build/about.html |
|
92
|
+
| build/index.html |
|
93
|
+
| build/reports/index.html |
|
94
|
+
| build/reports/another.html |
|
95
|
+
| build/images/icons/messages.png |
|
96
|
+
|
97
|
+
Scenario: Ignore a regex (server)
|
98
|
+
Given a fixture app "ignore-app"
|
99
|
+
And a file named "config.rb" with:
|
100
|
+
"""
|
101
|
+
ignore /^.*\.erb/
|
102
|
+
ignore /^reports\/.*/
|
103
|
+
ignore /^images\.*\.png/
|
104
|
+
"""
|
105
|
+
And the Server is running
|
106
|
+
When I go to "/plain.html"
|
107
|
+
Then I should not see "File Not Found"
|
108
|
+
When I go to "/images/portrait.jpg"
|
109
|
+
Then I should not see "File Not Found"
|
110
|
+
When I go to "/images/pic.png"
|
111
|
+
Then I should not see "File Not Found"
|
112
|
+
When I go to "/about.html"
|
113
|
+
Then I should see "File Not Found"
|
114
|
+
When I go to "/index.html"
|
115
|
+
Then I should see "File Not Found"
|
116
|
+
When I go to "/reports/index.html"
|
117
|
+
Then I should see "File Not Found"
|
118
|
+
When I go to "/reports/another.html"
|
119
|
+
Then I should see "File Not Found"
|
120
|
+
When I go to "/images/icons/messages.png"
|
121
|
+
Then I should see "File Not Found"
|
122
|
+
|
123
|
+
Scenario: Ignore with directory indexes (source file, build)
|
124
|
+
Given a fixture app "ignore-app"
|
125
|
+
And a file named "config.rb" with:
|
126
|
+
"""
|
127
|
+
activate :directory_indexes
|
128
|
+
ignore 'about.html.erb'
|
129
|
+
ignore 'plain.html'
|
130
|
+
"""
|
131
|
+
And a successfully built app at "ignore-app"
|
132
|
+
Then the following files should exist:
|
133
|
+
| build/index.html |
|
134
|
+
And the following files should not exist:
|
135
|
+
| build/about/index.html |
|
136
|
+
| build/plain/index.html |
|
137
|
+
|
138
|
+
Scenario: Ignore with directory indexes (source file, server)
|
139
|
+
Given a fixture app "ignore-app"
|
140
|
+
And a file named "config.rb" with:
|
141
|
+
"""
|
142
|
+
activate :directory_indexes
|
143
|
+
ignore 'about.html.erb'
|
144
|
+
ignore 'plain.html'
|
145
|
+
"""
|
146
|
+
And the Server is running
|
147
|
+
When I go to "/index.html"
|
148
|
+
Then I should not see "File Not Found"
|
149
|
+
When I go to "/about/index.html"
|
150
|
+
Then I should see "File Not Found"
|
151
|
+
When I go to "/plain/index.html"
|
152
|
+
Then I should see "File Not Found"
|
153
|
+
|
154
|
+
Scenario: Ignore with directory indexes (output path splat, build)
|
155
|
+
Given a fixture app "ignore-app"
|
156
|
+
And a file named "config.rb" with:
|
157
|
+
"""
|
158
|
+
activate :directory_indexes
|
159
|
+
ignore 'about*'
|
160
|
+
ignore 'plain*'
|
161
|
+
"""
|
162
|
+
And a successfully built app at "ignore-app"
|
163
|
+
Then the following files should exist:
|
164
|
+
| build/index.html |
|
165
|
+
And the following files should not exist:
|
166
|
+
| build/about/index.html |
|
167
|
+
| build/plain/index.html |
|
168
|
+
|
169
|
+
Scenario: Ignore with directory indexes (output path splat, server)
|
170
|
+
Given a fixture app "ignore-app"
|
171
|
+
And a file named "config.rb" with:
|
172
|
+
"""
|
173
|
+
activate :directory_indexes
|
174
|
+
ignore 'about*'
|
175
|
+
ignore 'plain*'
|
176
|
+
"""
|
177
|
+
And the Server is running
|
178
|
+
When I go to "/index.html"
|
179
|
+
Then I should not see "File Not Found"
|
180
|
+
When I go to "/about/index.html"
|
181
|
+
Then I should see "File Not Found"
|
182
|
+
When I go to "/plain/index.html"
|
183
|
+
Then I should see "File Not Found"
|
184
|
+
|
185
|
+
# Scenario: Ignore with directory indexes (output path index)
|
186
|
+
# Given a fixture app "ignore-app"
|
187
|
+
# And a file named "config.rb" with:
|
188
|
+
# """
|
189
|
+
# activate :directory_indexes
|
190
|
+
# ignore 'about/index.html'
|
191
|
+
# ignore 'plain/index.html'
|
192
|
+
# """
|
193
|
+
# And a successfully built app at "ignore-app"
|
194
|
+
# Then the following files should exist:
|
195
|
+
# | build/index.html |
|
196
|
+
# And the following files should not exist:
|
197
|
+
# | build/about/index.html |
|
198
|
+
# | build/plain/index.html |
|
@@ -0,0 +1,52 @@
|
|
1
|
+
Feature: Use default extensions when user doesn't supply them
|
2
|
+
|
3
|
+
Scenario: Default extensions preview
|
4
|
+
Given the Server is running at "implied-extensions-app"
|
5
|
+
When I go to "/index.html"
|
6
|
+
Then I should see "hello: world"
|
7
|
+
When I go to "/index.erb"
|
8
|
+
Then I should see "File Not Found"
|
9
|
+
When I go to "/index"
|
10
|
+
Then I should see "File Not Found"
|
11
|
+
|
12
|
+
Scenario: Default extensions preview
|
13
|
+
Given a fixture app "implied-extensions-app"
|
14
|
+
And a file named "config.rb" with:
|
15
|
+
"""
|
16
|
+
template_extensions :erb => :htm
|
17
|
+
"""
|
18
|
+
And the Server is running
|
19
|
+
When I go to "/index.htm"
|
20
|
+
Then I should see "hello: world"
|
21
|
+
When I go to "/index.erb"
|
22
|
+
Then I should see "File Not Found"
|
23
|
+
When I go to "/index"
|
24
|
+
Then I should see "File Not Found"
|
25
|
+
When I go to "/index.html"
|
26
|
+
Then I should see "File Not Found"
|
27
|
+
|
28
|
+
Scenario: Default extensions build
|
29
|
+
Given a fixture app "implied-extensions-app"
|
30
|
+
And a successfully built app at "implied-extensions-app"
|
31
|
+
When I cd to "build"
|
32
|
+
Then the following files should exist:
|
33
|
+
| index.html |
|
34
|
+
Then the following files should not exist:
|
35
|
+
| index |
|
36
|
+
| index.erb |
|
37
|
+
And the file "index.html" should contain "hello: world"
|
38
|
+
|
39
|
+
Scenario: Default extensions build with override
|
40
|
+
Given a fixture app "implied-extensions-app"
|
41
|
+
And a file named "config.rb" with:
|
42
|
+
"""
|
43
|
+
template_extensions :erb => :htm
|
44
|
+
"""
|
45
|
+
And a successfully built app at "implied-extensions-app"
|
46
|
+
When I cd to "build"
|
47
|
+
Then the following files should exist:
|
48
|
+
| index.htm |
|
49
|
+
Then the following files should not exist:
|
50
|
+
| index |
|
51
|
+
| index.erb |
|
52
|
+
| index.html |
|
data/features/partials.feature
CHANGED
@@ -12,6 +12,11 @@ Feature: Provide Sane Defaults for Partial Behavior
|
|
12
12
|
Then I should see "Header"
|
13
13
|
And I should see "Footer"
|
14
14
|
|
15
|
+
Scenario: Finds shared partials without _ prefix
|
16
|
+
Given the Server is running at "partials-app"
|
17
|
+
When I go to "/using_snippet.html"
|
18
|
+
Then I should see "Snippet"
|
19
|
+
|
15
20
|
Scenario: Prefers partials of the same engine type
|
16
21
|
Given the Server is running at "partials-app"
|
17
22
|
When I go to "/index.html"
|
@@ -3,6 +3,7 @@ Feature: Step through sitemap as a tree
|
|
3
3
|
Scenario: Root
|
4
4
|
Given the Server is running at "traversal-app"
|
5
5
|
When I go to "/index.html"
|
6
|
+
Then I should see "Path: index.html"
|
6
7
|
Then I should not see "Parent: index.html"
|
7
8
|
Then I should see "Child: sub/index.html"
|
8
9
|
Then I should see "Child: root.html"
|
@@ -11,6 +12,7 @@ Feature: Step through sitemap as a tree
|
|
11
12
|
Scenario: Directories have children and a parent
|
12
13
|
Given the Server is running at "traversal-app"
|
13
14
|
When I go to "/sub/index.html"
|
15
|
+
Then I should see "Path: sub/index.html"
|
14
16
|
Then I should see "Parent: index.html"
|
15
17
|
Then I should see "Child: sub/fake.html"
|
16
18
|
Then I should see "Child: sub/fake2.html"
|
@@ -18,41 +20,38 @@ Feature: Step through sitemap as a tree
|
|
18
20
|
Then I should see "Child: sub/sibling2.html"
|
19
21
|
Then I should see "Child: sub/sub2/index.html"
|
20
22
|
Then I should see "Sibling: root.html"
|
21
|
-
|
22
|
-
Scenario:
|
23
|
+
|
24
|
+
Scenario: Directory accessed without index.html
|
25
|
+
Given the Server is running at "traversal-app"
|
26
|
+
When I go to "/sub/"
|
27
|
+
Then I should see "Path: sub/index.html"
|
28
|
+
Then I should see "Parent: index.html"
|
29
|
+
Then I should see "Child: sub/fake.html"
|
30
|
+
Then I should see "Child: sub/fake2.html"
|
31
|
+
Then I should see "Child: sub/sibling.html"
|
32
|
+
Then I should see "Child: sub/sibling2.html"
|
33
|
+
Then I should see "Child: sub/sub2/index.html"
|
34
|
+
Then I should see "Sibling: root.html"
|
35
|
+
|
36
|
+
Scenario: Page has siblings, parent, and source file
|
23
37
|
Given the Server is running at "traversal-app"
|
24
|
-
When I go to "/sub/sibling
|
38
|
+
When I go to "/sub/sibling/"
|
39
|
+
Then I should see "Parent: sub/index.html"
|
25
40
|
Then I should see "Sibling: sub/fake.html"
|
26
41
|
Then I should see "Sibling: sub/fake2.html"
|
27
42
|
Then I should see "Sibling: sub/sibling2.html"
|
28
43
|
Then I should see "Sibling: sub/sub2/index.html"
|
44
|
+
Then I should see "Source: source/sub/sibling.html.erb"
|
29
45
|
|
30
|
-
Scenario: Proxied page has siblings
|
46
|
+
Scenario: Proxied page has siblings, parent, and source file
|
31
47
|
Given the Server is running at "traversal-app"
|
32
|
-
When I go to "/sub/fake
|
48
|
+
When I go to "/sub/fake/"
|
49
|
+
Then I should see "Path: sub/fake.html"
|
50
|
+
Then I should see "Parent: sub/index.html"
|
33
51
|
Then I should see "Sibling: sub/fake2.html"
|
34
52
|
Then I should see "Sibling: sub/sibling.html"
|
35
53
|
Then I should see "Sibling: sub/sibling2.html"
|
36
54
|
Then I should see "Sibling: sub/sub2/index.html"
|
37
|
-
|
38
|
-
Scenario: Page has parent
|
39
|
-
Given the Server is running at "traversal-app"
|
40
|
-
When I go to "/sub/sibling.html"
|
41
|
-
Then I should see "Parent: sub/index.html"
|
42
|
-
|
43
|
-
Scenario: Proxied page has parent
|
44
|
-
Given the Server is running at "traversal-app"
|
45
|
-
When I go to "/sub/fake.html"
|
46
|
-
Then I should see "Parent: sub/index.html"
|
47
|
-
|
48
|
-
Scenario: Page has source_file
|
49
|
-
Given the Server is running at "traversal-app"
|
50
|
-
When I go to "/sub/sibling.html"
|
51
|
-
Then I should see "Source: source/sub/sibling.html.erb"
|
52
|
-
|
53
|
-
Scenario: Proxied page has source_file
|
54
|
-
Given the Server is running at "traversal-app"
|
55
|
-
When I go to "/sub/fake.html"
|
56
55
|
Then I should see "Source: source/proxied.html.erb"
|
57
56
|
|
58
57
|
Scenario: Child pages have data
|
@@ -64,6 +63,7 @@ Feature: Step through sitemap as a tree
|
|
64
63
|
Scenario: When directory_index extension is active, child pages are found in named directory
|
65
64
|
Given the Server is running at "traversal-app"
|
66
65
|
When I go to "/directory-indexed"
|
66
|
+
Then I should see "Path: directory-indexed.html"
|
67
67
|
Then I should see "Parent: index.html"
|
68
68
|
Then I should see "Child: directory-indexed/fake.html"
|
69
69
|
Then I should see "Child: directory-indexed/fake2.html"
|
@@ -1 +1,2 @@
|
|
1
|
-
activate :directory_indexes
|
1
|
+
activate :directory_indexes
|
2
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
Fun times
|
@@ -14,16 +14,36 @@ page "target_ignore3.html", :proxy => "should_be_ignored7.html", :ignore => true
|
|
14
14
|
page "/target_ignore4.html", :proxy => "should_be_ignored8.html", :ignore => true
|
15
15
|
|
16
16
|
%w(one two).each do |num|
|
17
|
-
page "/fake/#{num}.html", :proxy => "/real/index.html" do
|
17
|
+
page "/fake/#{num}.html", :proxy => "/real/index.html", :ignore => true do
|
18
18
|
@num = num
|
19
19
|
end
|
20
|
-
page "fake2/#{num}.html", :proxy => "/real/index.html" do
|
20
|
+
page "fake2/#{num}.html", :proxy => "/real/index.html", :ignore => true do
|
21
21
|
@num = num
|
22
22
|
end
|
23
|
-
page "fake3/#{num}.html", :proxy => "real/index.html" do
|
23
|
+
page "fake3/#{num}.html", :proxy => "real/index.html", :ignore => true do
|
24
24
|
@num = num
|
25
25
|
end
|
26
|
-
page "/fake4/#{num}.html", :proxy => "real/index.html" do
|
26
|
+
page "/fake4/#{num}.html", :proxy => "real/index.html", :ignore => true do
|
27
27
|
@num = num
|
28
28
|
end
|
29
|
-
end
|
29
|
+
end
|
30
|
+
|
31
|
+
page "f*/*" do
|
32
|
+
@all_glob = "I am all glob"
|
33
|
+
end
|
34
|
+
|
35
|
+
page "fake/*" do
|
36
|
+
@glob_var = "I am one glob"
|
37
|
+
end
|
38
|
+
|
39
|
+
page "fake2/*" do
|
40
|
+
@glob_var = "I am two glob"
|
41
|
+
end
|
42
|
+
|
43
|
+
page "fake3/*" do
|
44
|
+
@glob_var = "I am three glob"
|
45
|
+
end
|
46
|
+
|
47
|
+
page "fake4/*" do
|
48
|
+
@glob_var = "I am four glob"
|
49
|
+
end
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
test.github.com
|
@@ -0,0 +1 @@
|
|
1
|
+
You have the right to remain classy.
|
@@ -0,0 +1 @@
|
|
1
|
+
Bork bork bork
|
@@ -0,0 +1 @@
|
|
1
|
+
sup
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= one %>:<%= two %>:<%= three %>:<%= four %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= I18n.t(:hi) %> World
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= I18n.t(:greetings) %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= yield %>
|