middleman-core-x86-mingw32 3.0.1.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/.cane +2 -0
- data/.cane-exclusions.yml +5 -0
- data/.gemtest +0 -0
- data/Rakefile +7 -0
- data/bin/middleman +25 -0
- data/features/3rd_party_cli.feature +15 -0
- data/features/auto_layout.feature +36 -0
- data/features/automatic_directory_matcher.feature +32 -0
- data/features/builder.feature +50 -0
- data/features/chained_templates.feature +19 -0
- data/features/clean_build.feature +28 -0
- data/features/cli_extension.feature +14 -0
- data/features/cli_init.feature +89 -0
- data/features/current_page_request_path_backwards.feature +6 -0
- data/features/custom_layout_engines.feature +8 -0
- data/features/custom_layouts.feature +64 -0
- data/features/data.feature +22 -0
- data/features/dynamic_pages.feature +133 -0
- data/features/extensionless_text_files.feature +24 -0
- data/features/feature_params.feature +6 -0
- data/features/front-matter.feature +72 -0
- data/features/frontmatter_page_settings.feature +43 -0
- data/features/helpers_external.feature +12 -0
- data/features/ignore.feature +121 -0
- data/features/implied_extensions.feature +69 -0
- data/features/instance_vars.feature +9 -0
- data/features/mount_rack.feature +8 -0
- data/features/preview_changes.feature +29 -0
- data/features/request_params.feature +6 -0
- data/features/sitemap_traversal.feature +73 -0
- data/features/static_server.feature +6 -0
- data/features/step_definitions/page_layout_steps.rb +15 -0
- data/features/strip_url.feature +40 -0
- data/features/support/env.rb +6 -0
- data/features/unicode_filenames.feature +36 -0
- data/features/wildcard_page_helper.feature +10 -0
- data/fixtures/automatic-directory-matcher-app/config.rb +1 -0
- data/fixtures/automatic-directory-matcher-app/source/root-plain.html +1 -0
- data/fixtures/automatic-directory-matcher-app/source/root.html.erb +1 -0
- data/fixtures/automatic-directory-matcher-app/source/sub--sub--sub-plain.html +1 -0
- data/fixtures/automatic-directory-matcher-app/source/sub--sub--sub.html.erb +1 -0
- data/fixtures/automatic-directory-matcher-app/source/sub--sub-plain.html +1 -0
- data/fixtures/automatic-directory-matcher-app/source/sub--sub.html.erb +1 -0
- data/fixtures/basic-data-app/config.rb +4 -0
- data/fixtures/basic-data-app/data/test.yml +4 -0
- data/fixtures/basic-data-app/data/test2.json +4 -0
- data/fixtures/basic-data-app/source/data.html.erb +1 -0
- data/fixtures/basic-data-app/source/data3.html.erb +1 -0
- data/fixtures/build-with-errors-app/config.rb +1 -0
- data/fixtures/build-with-errors-app/source/index.html.erb +1 -0
- data/fixtures/chained-app/config.rb +0 -0
- data/fixtures/chained-app/data/article.yml +2 -0
- data/fixtures/chained-app/source/index.html.str.erb +8 -0
- data/fixtures/clean-app/config-complications.rb +11 -0
- data/fixtures/clean-app/config-empty.rb +0 -0
- data/fixtures/clean-app/config.rb +11 -0
- data/fixtures/clean-app/source/index.html.erb +1 -0
- data/fixtures/clean-app/source/layout.erb +9 -0
- data/fixtures/clean-app/source/layouts/custom.erb +8 -0
- data/fixtures/clean-app/source/real/index.html.erb +5 -0
- data/fixtures/clean-app/source/real.html +1 -0
- data/fixtures/clean-app/source/should_be_ignored.html +1 -0
- data/fixtures/clean-app/source/should_be_ignored2.html +1 -0
- data/fixtures/clean-app/source/should_be_ignored3.html +1 -0
- data/fixtures/clean-app/source/static.html +1 -0
- data/fixtures/clean-nested-app/config.rb +3 -0
- data/fixtures/clean-nested-app/source/about.html +1 -0
- data/fixtures/csspie/config.rb +0 -0
- data/fixtures/csspie/source/stylesheets/PIE.htc +96 -0
- data/fixtures/current-page-app/config.rb +3 -0
- data/fixtures/current-page-app/source/request-path.html.erb +1 -0
- data/fixtures/custom-layout-app/config.rb +1 -0
- data/fixtures/custom-layout-app/source/index.html.erb +1 -0
- data/fixtures/custom-layout-app/source/layout.str +9 -0
- data/fixtures/custom-layout-app2/config.rb +0 -0
- data/fixtures/custom-layout-app2/source/custom-layout-dir/index.html.erb +1 -0
- data/fixtures/custom-layout-app2/source/custom-layout.html.erb +1 -0
- data/fixtures/custom-layout-app2/source/layouts/custom.erb +8 -0
- data/fixtures/data-app/config.rb +3 -0
- data/fixtures/data-app/data/pages.yml +6 -0
- data/fixtures/data-app/source/index.html.erb +1 -0
- data/fixtures/data-app/source/layout.erb +5 -0
- data/fixtures/different-engine-layout/config.rb +0 -0
- data/fixtures/different-engine-layout/source/index.html.str +1 -0
- data/fixtures/different-engine-layout/source/layout.erb +9 -0
- data/fixtures/dynamic-pages-app/config.rb +52 -0
- data/fixtures/dynamic-pages-app/source/real/index.html.erb +9 -0
- data/fixtures/dynamic-pages-app/source/real.html +1 -0
- data/fixtures/dynamic-pages-app/source/should_be_ignored.html +1 -0
- data/fixtures/dynamic-pages-app/source/should_be_ignored2.html +1 -0
- data/fixtures/dynamic-pages-app/source/should_be_ignored3.html +1 -0
- data/fixtures/dynamic-pages-app/source/should_be_ignored4.html +1 -0
- data/fixtures/dynamic-pages-app/source/should_be_ignored5.html +1 -0
- data/fixtures/dynamic-pages-app/source/should_be_ignored6.html +1 -0
- data/fixtures/dynamic-pages-app/source/should_be_ignored7.html +1 -0
- data/fixtures/dynamic-pages-app/source/should_be_ignored8.html +1 -0
- data/fixtures/empty-app/not-config.rb +0 -0
- data/fixtures/engine-matching-layout/config.rb +0 -0
- data/fixtures/engine-matching-layout/source/index.html.erb +1 -0
- data/fixtures/engine-matching-layout/source/layout.erb +9 -0
- data/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/config.rb +4 -0
- data/fixtures/external-helpers/helpers/derp.rb +3 -0
- data/fixtures/external-helpers/helpers/four_helpers.rb +3 -0
- data/fixtures/external-helpers/helpers/one_helper.rb +3 -0
- data/fixtures/external-helpers/helpers/yet_another_thingy.rb +3 -0
- data/fixtures/external-helpers/lib/hello_helper.rb +5 -0
- data/fixtures/external-helpers/source/automatic.html.erb +1 -0
- data/fixtures/external-helpers/source/index.html.erb +1 -0
- data/fixtures/feature-params-app/config.rb +12 -0
- data/fixtures/feature-params-app/source/index.html.erb +3 -0
- data/fixtures/frontmatter-app/config.rb +0 -0
- data/fixtures/frontmatter-app/source/front-matter-2.php.erb +7 -0
- data/fixtures/frontmatter-app/source/front-matter-auto.erb +6 -0
- data/fixtures/frontmatter-app/source/front-matter-change.html.erb +5 -0
- data/fixtures/frontmatter-app/source/front-matter-encoding.html.erb +7 -0
- data/fixtures/frontmatter-app/source/front-matter-line-2.html.erb +7 -0
- data/fixtures/frontmatter-app/source/json-front-matter-2.php.erb +7 -0
- data/fixtures/frontmatter-app/source/json-front-matter-auto.erb +6 -0
- data/fixtures/frontmatter-app/source/json-front-matter-encoding.html.erb +7 -0
- data/fixtures/frontmatter-app/source/json-front-matter-line-2.html.erb +7 -0
- data/fixtures/frontmatter-app/source/json-front-matter.html.erb +6 -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/layouts/override.erb +2 -0
- data/fixtures/frontmatter-settings-app/source/override_layout.html.erb +4 -0
- data/fixtures/frontmatter-settings-app/source/page_mentioned.html.erb +4 -0
- data/fixtures/generator-test/config.rb +80 -0
- data/fixtures/generator-test/source/index.html.erb +10 -0
- data/fixtures/glob-app/config.rb +1 -0
- data/fixtures/glob-app/source/index.html.erb +4 -0
- data/fixtures/glob-app/source/stylesheets/site.css.str +3 -0
- data/fixtures/ignore-app/source/about.html.erb +1 -0
- data/fixtures/ignore-app/source/images/icon/messages.png +0 -0
- data/fixtures/ignore-app/source/images/pic.png +0 -0
- data/fixtures/ignore-app/source/images/portrait.jpg +0 -0
- data/fixtures/ignore-app/source/index.html.erb +0 -0
- data/fixtures/ignore-app/source/plain.html +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 +0 -0
- data/fixtures/indexable-app/source/.htaccess +1 -0
- data/fixtures/indexable-app/source/a_folder/needs_index.html +1 -0
- data/fixtures/indexable-app/source/leave_me_alone.html +1 -0
- data/fixtures/indexable-app/source/needs_index.html +1 -0
- data/fixtures/indexable-app/source/regular/index.html +1 -0
- data/fixtures/indexable-app/source/wildcard_leave_me_alone.html +1 -0
- data/fixtures/instance-vars-app/config.rb +7 -0
- data/fixtures/instance-vars-app/source/content.html.erb +2 -0
- data/fixtures/instance-vars-app/source/layout.erb +1 -0
- data/fixtures/large-build-app/config.rb +3 -0
- data/fixtures/large-build-app/source/.htaccess +1 -0
- data/fixtures/large-build-app/source/_partial.erb +1 -0
- data/fixtures/large-build-app/source/feed.xml.builder +4 -0
- data/fixtures/large-build-app/source/images/Child folder/regular_file(example).txt +1 -0
- data/fixtures/large-build-app/source/images/Read me (example).txt +1 -0
- data/fixtures/large-build-app/source/images/blank.gif +0 -0
- data/fixtures/large-build-app/source/index.html.erb +1 -0
- data/fixtures/large-build-app/source/layout.erb +9 -0
- data/fixtures/large-build-app/source/layouts/content_for.erb +4 -0
- data/fixtures/large-build-app/source/layouts/custom.erb +8 -0
- data/fixtures/large-build-app/source/other_layout.erb +1 -0
- data/fixtures/large-build-app/source/services/index.html.erb +1 -0
- data/fixtures/large-build-app/source/spaces in file.html.erb +1 -0
- data/fixtures/large-build-app/source/static.html +1 -0
- data/fixtures/large-build-app/source/stylesheets/static.css +2 -0
- data/fixtures/manual-layout/config.rb +1 -0
- data/fixtures/manual-layout/source/index.html.erb +1 -0
- data/fixtures/manual-layout/source/layouts/custom.erb +9 -0
- data/fixtures/manual-layout-missing/config.rb +1 -0
- data/fixtures/manual-layout-missing/source/index.html.erb +1 -0
- data/fixtures/manual-layout-override/config.rb +3 -0
- data/fixtures/manual-layout-override/source/index.html.erb +1 -0
- data/fixtures/manual-layout-override/source/layouts/another.erb +9 -0
- data/fixtures/manual-layout-override/source/layouts/custom.erb +9 -0
- data/fixtures/multiple-layouts/config.rb +0 -0
- data/fixtures/multiple-layouts/source/index.html.erb +1 -0
- data/fixtures/multiple-layouts/source/layout.erb +9 -0
- data/fixtures/multiple-layouts/source/layout.str +9 -0
- data/fixtures/no-layout/config.rb +0 -0
- data/fixtures/no-layout/source/index.html.erb +1 -0
- data/fixtures/page-helper-layout-block-app/config.rb +6 -0
- data/fixtures/page-helper-layout-block-app/source/index.html.erb +1 -0
- data/fixtures/page-helper-layout-block-app/source/layouts/alt.erb +3 -0
- data/fixtures/page-helper-layout-block-app/source/layouts/layout.erb +3 -0
- data/fixtures/page-helper-layout-block-app/source/path/child.html.erb +1 -0
- data/fixtures/page-helper-layout-block-app/source/path/index.html.erb +1 -0
- data/fixtures/plain-app/index.html +1 -0
- data/fixtures/preview-app/config.rb +0 -0
- data/fixtures/preview-app/source/content.html.erb +1 -0
- data/fixtures/preview-app/source/layout.erb +1 -0
- data/fixtures/request-app/config.rb +0 -0
- data/fixtures/request-app/source/index.html.erb +3 -0
- data/fixtures/sinatra-app/config.rb +11 -0
- data/fixtures/sinatra-app/source/index.html.erb +5 -0
- data/fixtures/strip-url-app/config.rb +0 -0
- data/fixtures/strip-url-app/source/index.html.erb +1 -0
- data/fixtures/strip-url-app/source/other.html.erb +1 -0
- data/fixtures/strip-url-app/source/subdir/index.html.erb +1 -0
- data/fixtures/traversal-app/config.rb +5 -0
- data/fixtures/traversal-app/source/directory-indexed/sibling.html.erb +3 -0
- data/fixtures/traversal-app/source/directory-indexed/sibling2.html.erb +3 -0
- data/fixtures/traversal-app/source/directory-indexed/sub2/index.html.erb +0 -0
- data/fixtures/traversal-app/source/directory-indexed/sub3/deep.html.erb +0 -0
- data/fixtures/traversal-app/source/directory-indexed.html.erb +0 -0
- data/fixtures/traversal-app/source/index.html.erb +0 -0
- data/fixtures/traversal-app/source/layout.erb +21 -0
- data/fixtures/traversal-app/source/proxied.html.erb +0 -0
- data/fixtures/traversal-app/source/root.html.erb +0 -0
- data/fixtures/traversal-app/source/sub/index.html.erb +0 -0
- data/fixtures/traversal-app/source/sub/sibling.html.erb +0 -0
- data/fixtures/traversal-app/source/sub/sibling2.html.erb +0 -0
- data/fixtures/traversal-app/source/sub/sub2/index.html.erb +0 -0
- data/fixtures/traversal-app/source/sub/sub3/deep.html.erb +0 -0
- data/fixtures/wildcard-app/config.rb +1 -0
- data/fixtures/wildcard-app/source/admin/index.html.erb +1 -0
- data/fixtures/wildcard-app/source/admin/page.html.erb +1 -0
- data/fixtures/wildcard-app/source/index.html.erb +1 -0
- data/fixtures/wildcard-app/source/layouts/admin.erb +2 -0
- data/fixtures/wildcard-app/source/layouts/layout.erb +2 -0
- data/lib/middleman/rack.rb +4 -0
- data/lib/middleman-core/application.rb +245 -0
- data/lib/middleman-core/cli/build.rb +286 -0
- data/lib/middleman-core/cli/bundler.rb +40 -0
- data/lib/middleman-core/cli/extension.rb +49 -0
- data/lib/middleman-core/cli/init.rb +58 -0
- data/lib/middleman-core/cli/server.rb +73 -0
- data/lib/middleman-core/cli.rb +89 -0
- data/lib/middleman-core/core_extensions/builder.rb +17 -0
- data/lib/middleman-core/core_extensions/data.rb +180 -0
- data/lib/middleman-core/core_extensions/extensions.rb +161 -0
- data/lib/middleman-core/core_extensions/external_helpers.rb +39 -0
- data/lib/middleman-core/core_extensions/file_watcher.rb +167 -0
- data/lib/middleman-core/core_extensions/front_matter.rb +213 -0
- data/lib/middleman-core/core_extensions/rendering.rb +439 -0
- data/lib/middleman-core/core_extensions/request.rb +338 -0
- data/lib/middleman-core/core_extensions/routing.rb +94 -0
- data/lib/middleman-core/core_extensions/ruby_encoding.rb +24 -0
- data/lib/middleman-core/core_extensions/show_exceptions.rb +31 -0
- data/lib/middleman-core/core_extensions.rb +33 -0
- data/lib/middleman-core/extensions.rb +103 -0
- data/lib/middleman-core/load_paths.rb +56 -0
- data/lib/middleman-core/logger.rb +29 -0
- data/lib/middleman-core/preview_server.rb +186 -0
- data/lib/middleman-core/profiling.rb +58 -0
- data/lib/middleman-core/renderers/coffee_script.rb +45 -0
- data/lib/middleman-core/renderers/erb.rb +36 -0
- data/lib/middleman-core/renderers/haml.rb +30 -0
- data/lib/middleman-core/renderers/less.rb +49 -0
- data/lib/middleman-core/renderers/liquid.rb +35 -0
- data/lib/middleman-core/renderers/markdown.rb +56 -0
- data/lib/middleman-core/renderers/redcarpet.rb +58 -0
- data/lib/middleman-core/renderers/sass.rb +101 -0
- data/lib/middleman-core/renderers/slim.rb +38 -0
- data/lib/middleman-core/sitemap/extensions/ignores.rb +91 -0
- data/lib/middleman-core/sitemap/extensions/on_disk.rb +84 -0
- data/lib/middleman-core/sitemap/extensions/proxies.rb +114 -0
- data/lib/middleman-core/sitemap/extensions/traversal.rb +84 -0
- data/lib/middleman-core/sitemap/resource.rb +149 -0
- data/lib/middleman-core/sitemap/store.rb +219 -0
- data/lib/middleman-core/sitemap.rb +78 -0
- data/lib/middleman-core/step_definitions/builder_steps.rb +56 -0
- data/lib/middleman-core/step_definitions/middleman_steps.rb +17 -0
- data/lib/middleman-core/step_definitions/server_steps.rb +91 -0
- data/lib/middleman-core/step_definitions.rb +12 -0
- data/lib/middleman-core/templates/default/source/images/background.png +0 -0
- data/lib/middleman-core/templates/default/source/images/middleman.png +0 -0
- data/lib/middleman-core/templates/default/source/index.html.erb +10 -0
- data/lib/middleman-core/templates/default/source/javascripts/all.js +1 -0
- data/lib/middleman-core/templates/default/source/layouts/layout.erb +19 -0
- data/lib/middleman-core/templates/default/source/stylesheets/all.css +55 -0
- data/lib/middleman-core/templates/default/source/stylesheets/normalize.css +431 -0
- data/lib/middleman-core/templates/default.rb +38 -0
- data/lib/middleman-core/templates/extension/Gemfile +17 -0
- data/lib/middleman-core/templates/extension/Rakefile +14 -0
- data/lib/middleman-core/templates/extension/features/support/env.rb +4 -0
- data/lib/middleman-core/templates/extension/gemspec +24 -0
- data/lib/middleman-core/templates/extension/gitignore +2 -0
- data/lib/middleman-core/templates/extension/lib/lib.rb +49 -0
- data/lib/middleman-core/templates/extension/lib/middleman_extension.rb +1 -0
- data/lib/middleman-core/templates/html5/source/404.html +43 -0
- data/lib/middleman-core/templates/html5/source/README.md +55 -0
- 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 +25 -0
- data/lib/middleman-core/templates/html5/source/css/style.css +293 -0
- data/lib/middleman-core/templates/html5/source/favicon.ico +0 -0
- data/lib/middleman-core/templates/html5/source/humans.txt +43 -0
- data/lib/middleman-core/templates/html5/source/img/.gitignore +0 -0
- data/lib/middleman-core/templates/html5/source/index.html +67 -0
- data/lib/middleman-core/templates/html5/source/js/libs/jquery-1.7.1.js +9266 -0
- 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 +11 -0
- data/lib/middleman-core/templates/html5/source/js/script.js +8 -0
- data/lib/middleman-core/templates/html5/source/robots.txt +4 -0
- data/lib/middleman-core/templates/html5.rb +30 -0
- data/lib/middleman-core/templates/local.rb +28 -0
- data/lib/middleman-core/templates/mobile/source/404.html +37 -0
- data/lib/middleman-core/templates/mobile/source/README.markdown +21 -0
- data/lib/middleman-core/templates/mobile/source/crossdomain.xml +25 -0
- data/lib/middleman-core/templates/mobile/source/css/style.css +315 -0
- data/lib/middleman-core/templates/mobile/source/humans.txt +43 -0
- data/lib/middleman-core/templates/mobile/source/img/h/apple-touch-icon.png +0 -0
- data/lib/middleman-core/templates/mobile/source/img/h/splash.png +0 -0
- data/lib/middleman-core/templates/mobile/source/img/l/apple-touch-icon-precomposed.png +0 -0
- data/lib/middleman-core/templates/mobile/source/img/l/apple-touch-icon.png +0 -0
- data/lib/middleman-core/templates/mobile/source/img/l/splash.png +0 -0
- data/lib/middleman-core/templates/mobile/source/img/m/apple-touch-icon.png +0 -0
- data/lib/middleman-core/templates/mobile/source/index.html +92 -0
- data/lib/middleman-core/templates/mobile/source/js/libs/modernizr-custom.js +14 -0
- data/lib/middleman-core/templates/mobile/source/js/libs/respond.min.js +7 -0
- data/lib/middleman-core/templates/mobile/source/js/mylibs/helper.js +171 -0
- data/lib/middleman-core/templates/mobile/source/js/plugins.js +20 -0
- data/lib/middleman-core/templates/mobile/source/js/script.js +0 -0
- data/lib/middleman-core/templates/mobile/source/robots.txt +4 -0
- data/lib/middleman-core/templates/mobile/source/sitemap.xml +9 -0
- data/lib/middleman-core/templates/mobile/source/test/index.html +31 -0
- data/lib/middleman-core/templates/mobile/source/test/qunit/qunit.css +148 -0
- data/lib/middleman-core/templates/mobile/source/test/qunit/qunit.js +1265 -0
- data/lib/middleman-core/templates/mobile/source/test/tests.js +21 -0
- data/lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/Readme.PDF +0 -0
- data/lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/aspx/aspx1.snippet +31 -0
- data/lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/aspx/aspx2.snippet +2 -0
- data/lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/aspx/ga.aspx +195 -0
- data/lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/aspx/sample.aspx +44 -0
- data/lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/jsp/ga.jsp +225 -0
- data/lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/jsp/jsp1.snippet +35 -0
- data/lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/jsp/jsp2.snippet +2 -0
- data/lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/jsp/sample.jsp +51 -0
- data/lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/php/ga.php +176 -0
- data/lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/php/php1.snippet +30 -0
- data/lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/php/php2.snippet +4 -0
- data/lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/php/sample.php +44 -0
- data/lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/pl/ga.pl +195 -0
- data/lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/pl/perl1.snippet +27 -0
- data/lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/pl/perl2.snippet +1 -0
- data/lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/pl/sample.pl +38 -0
- data/lib/middleman-core/templates/mobile/source/tools/mobile-bookmark-bubble/COPYING +202 -0
- data/lib/middleman-core/templates/mobile/source/tools/mobile-bookmark-bubble/bookmark_bubble.js +559 -0
- data/lib/middleman-core/templates/mobile/source/tools/mobile-bookmark-bubble/example/example.html +43 -0
- data/lib/middleman-core/templates/mobile/source/tools/mobile-bookmark-bubble/example/example.js +57 -0
- data/lib/middleman-core/templates/mobile/source/tools/mobile-bookmark-bubble/images/arrow.png +0 -0
- data/lib/middleman-core/templates/mobile/source/tools/mobile-bookmark-bubble/images/close.png +0 -0
- data/lib/middleman-core/templates/mobile/source/tools/mobile-bookmark-bubble/images/generate_base64_images +33 -0
- data/lib/middleman-core/templates/mobile/source/tools/mobile-bookmark-bubble/images/icon_calendar.png +0 -0
- data/lib/middleman-core/templates/mobile/source/tools/wspl/README +27 -0
- data/lib/middleman-core/templates/mobile/source/tools/wspl/databasefactory.js +45 -0
- data/lib/middleman-core/templates/mobile/source/tools/wspl/dbworker.js +324 -0
- data/lib/middleman-core/templates/mobile/source/tools/wspl/dbworker_test.html +393 -0
- data/lib/middleman-core/templates/mobile/source/tools/wspl/dbworkerstarter.js +32 -0
- data/lib/middleman-core/templates/mobile/source/tools/wspl/dbwrapper_gears.js +595 -0
- data/lib/middleman-core/templates/mobile/source/tools/wspl/dbwrapper_gears_test.html +404 -0
- data/lib/middleman-core/templates/mobile/source/tools/wspl/dbwrapper_html5.js +203 -0
- data/lib/middleman-core/templates/mobile/source/tools/wspl/dbwrapper_html5_test.html +468 -0
- data/lib/middleman-core/templates/mobile/source/tools/wspl/dbwrapperapi.js +202 -0
- data/lib/middleman-core/templates/mobile/source/tools/wspl/dbwrapperapi_test.html +51 -0
- data/lib/middleman-core/templates/mobile/source/tools/wspl/gears_resultset.js +71 -0
- data/lib/middleman-core/templates/mobile/source/tools/wspl/gears_resultset_test.html +86 -0
- data/lib/middleman-core/templates/mobile/source/tools/wspl/gears_transaction.js +196 -0
- data/lib/middleman-core/templates/mobile/source/tools/wspl/gears_transaction_test.html +221 -0
- data/lib/middleman-core/templates/mobile/source/tools/wspl/gearsutils.js +94 -0
- data/lib/middleman-core/templates/mobile/source/tools/wspl/gearsutils_test.html +84 -0
- data/lib/middleman-core/templates/mobile/source/tools/wspl/global_functions.js +72 -0
- data/lib/middleman-core/templates/mobile/source/tools/wspl/simplenotes/index.html +347 -0
- data/lib/middleman-core/templates/mobile/source/tools/wspl/simplenotes/simplenotes.js +503 -0
- data/lib/middleman-core/templates/mobile/source/tools/wspl/simplenotes/styles.css +66 -0
- data/lib/middleman-core/templates/mobile/source/tools/wspl/simplenotes/template.js +75 -0
- data/lib/middleman-core/templates/mobile.rb +25 -0
- data/lib/middleman-core/templates/shared/Gemfile.tt +3 -0
- data/lib/middleman-core/templates/shared/config.ru +4 -0
- data/lib/middleman-core/templates/shared/config.tt +92 -0
- data/lib/middleman-core/templates/shared/gitignore +14 -0
- data/lib/middleman-core/templates.rb +85 -0
- data/lib/middleman-core/util.rb +174 -0
- data/lib/middleman-core/vendor/hooks-0.2.0/CHANGES.textile +9 -0
- data/lib/middleman-core/vendor/hooks-0.2.0/Gemfile +3 -0
- data/lib/middleman-core/vendor/hooks-0.2.0/README.rdoc +107 -0
- data/lib/middleman-core/vendor/hooks-0.2.0/Rakefile +12 -0
- data/lib/middleman-core/vendor/hooks-0.2.0/hooks.gemspec +22 -0
- data/lib/middleman-core/vendor/hooks-0.2.0/lib/hooks/inheritable_attribute.rb +33 -0
- data/lib/middleman-core/vendor/hooks-0.2.0/lib/hooks.rb +109 -0
- data/lib/middleman-core/vendor/hooks-0.2.0/test/hooks_test.rb +141 -0
- data/lib/middleman-core/vendor/hooks-0.2.0/test/inheritable_attribute_test.rb +55 -0
- data/lib/middleman-core/vendor/hooks-0.2.0/test/test_helper.rb +10 -0
- data/lib/middleman-core/version.rb +5 -0
- data/lib/middleman-core.rb +16 -0
- data/middleman-core-x86-mingw32.gemspec +38 -0
- data/middleman-core.gemspec +39 -0
- metadata +806 -0
data/.cane
ADDED
@@ -0,0 +1,5 @@
|
|
1
|
+
style:
|
2
|
+
- lib/middleman-core/vendor/hooks-0.2.0/lib/hooks/inheritable_attribute.rb
|
3
|
+
- lib/middleman-core/vendor/hooks-0.2.0/test/hooks_test.rb
|
4
|
+
- lib/middleman-core/vendor/hooks-0.2.0/test/inheritable_attribute_test.rb
|
5
|
+
- lib/middleman-core/vendor/hooks-0.2.0/lib/hooks.rb
|
data/.gemtest
ADDED
File without changes
|
data/Rakefile
ADDED
data/bin/middleman
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
# Add our lib/ directory to the path
|
4
|
+
libdir = File.expand_path(File.join(File.dirname(File.dirname(__FILE__)), "lib"))
|
5
|
+
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
|
6
|
+
|
7
|
+
moredir = File.expand_path(File.join(File.dirname(File.dirname(libdir)), "middleman-more", "lib", "middleman-more"))
|
8
|
+
$LOAD_PATH.unshift(moredir) unless $LOAD_PATH.include?(moredir)
|
9
|
+
|
10
|
+
require 'middleman-core/profiling'
|
11
|
+
if ARGV.include? '--profile'
|
12
|
+
Middleman::Profiling.profiler = Middleman::Profiling::RubyProfProfiler.new
|
13
|
+
end
|
14
|
+
Middleman::Profiling.start
|
15
|
+
|
16
|
+
require "middleman-core/load_paths"
|
17
|
+
Middleman.setup_load_paths
|
18
|
+
|
19
|
+
require "middleman-core/cli"
|
20
|
+
|
21
|
+
# Change directory to the root
|
22
|
+
Dir.chdir(ENV["MM_ROOT"]) if ENV["MM_ROOT"]
|
23
|
+
|
24
|
+
# Start the CLI
|
25
|
+
Middleman::Cli::Base.start
|
@@ -0,0 +1,15 @@
|
|
1
|
+
Feature: Allow config.rb and extensions to add CLI commands
|
2
|
+
|
3
|
+
Scenario: Command autoloaded from tasks/ directory
|
4
|
+
Given an empty app
|
5
|
+
And a file named "tasks/hello_task.rb" with:
|
6
|
+
"""
|
7
|
+
class Hello < Thor
|
8
|
+
desc "hello", "Say hello"
|
9
|
+
def hello
|
10
|
+
puts "Hello World"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
"""
|
14
|
+
When I run `middleman hello`
|
15
|
+
Then the output should contain "Hello World"
|
@@ -0,0 +1,36 @@
|
|
1
|
+
Feature: Provide Sane Defaults for Layout Behavior
|
2
|
+
|
3
|
+
Scenario: Template and Layout of same engine exist
|
4
|
+
Given the Server is running at "engine-matching-layout"
|
5
|
+
When I go to "/index.html"
|
6
|
+
Then I should see "Comment in layout"
|
7
|
+
|
8
|
+
Scenario: Template and Layout of different engine
|
9
|
+
Given the Server is running at "different-engine-layout"
|
10
|
+
When I go to "/index.html"
|
11
|
+
Then I should see "Comment in layout"
|
12
|
+
|
13
|
+
Scenario: Multiple layouts exist, prefer same engine
|
14
|
+
Given the Server is running at "multiple-layouts"
|
15
|
+
When I go to "/index.html"
|
16
|
+
Then I should see "ERb Comment in layout"
|
17
|
+
|
18
|
+
Scenario: No layout exists
|
19
|
+
Given the Server is running at "no-layout"
|
20
|
+
When I go to "/index.html"
|
21
|
+
Then I should not see "Comment in layout"
|
22
|
+
|
23
|
+
Scenario: Manually set default layout in config (exists)
|
24
|
+
Given the Server is running at "manual-layout"
|
25
|
+
When I go to "/index.html"
|
26
|
+
Then I should see "Custom Comment in layout"
|
27
|
+
|
28
|
+
Scenario: Manually set default layout in config (does not exist)
|
29
|
+
Given the Server is running at "manual-layout-missing"
|
30
|
+
When I go to "/index.html"
|
31
|
+
Then I should see "Error"
|
32
|
+
|
33
|
+
Scenario: Overwrite manual layout
|
34
|
+
Given the Server is running at "manual-layout-override"
|
35
|
+
When I go to "/index.html"
|
36
|
+
Then I should see "Another Comment in layout"
|
@@ -0,0 +1,32 @@
|
|
1
|
+
Feature: Map special characters to automatically put files in a directory
|
2
|
+
|
3
|
+
Scenario: Building files with special character escape
|
4
|
+
Given a successfully built app at "automatic-directory-matcher-app"
|
5
|
+
When I cd to "build"
|
6
|
+
Then the following files should exist:
|
7
|
+
| root.html |
|
8
|
+
| root-plain.html |
|
9
|
+
| sub/sub.html |
|
10
|
+
| sub/sub-plain.html |
|
11
|
+
| sub/sub/sub.html |
|
12
|
+
| sub/sub/sub-plain.html |
|
13
|
+
Then the following files should not exist:
|
14
|
+
| sub--sub.html |
|
15
|
+
| sub--sub-plain.html |
|
16
|
+
| sub--sub--sub.html |
|
17
|
+
| sub--sub--sub-plain.html |
|
18
|
+
|
19
|
+
Scenario: Previewing files with special character escape
|
20
|
+
Given the Server is running at "automatic-directory-matcher-app"
|
21
|
+
When I go to "/root.html"
|
22
|
+
Then I should see "Root Erb"
|
23
|
+
When I go to "/root-plain.html"
|
24
|
+
Then I should see "Root Plain"
|
25
|
+
When I go to "/sub/sub.html"
|
26
|
+
Then I should see "Sub1 Erb"
|
27
|
+
When I go to "/sub/sub-plain.html"
|
28
|
+
Then I should see "Sub1 Plain"
|
29
|
+
When I go to "/sub/sub/sub.html"
|
30
|
+
Then I should see "Sub2 Erb"
|
31
|
+
When I go to "/sub/sub/sub-plain.html"
|
32
|
+
Then I should see "Sub2 Plain"
|
@@ -0,0 +1,50 @@
|
|
1
|
+
Feature: Builder
|
2
|
+
In order to output static html and css for delivery
|
3
|
+
|
4
|
+
Scenario: Checking built folder for content
|
5
|
+
Given a successfully built app at "large-build-app"
|
6
|
+
When I cd to "build"
|
7
|
+
Then the following files should exist:
|
8
|
+
| index.html |
|
9
|
+
| static.html |
|
10
|
+
| services/index.html |
|
11
|
+
| stylesheets/static.css |
|
12
|
+
| spaces in file.html |
|
13
|
+
| images/blank.gif |
|
14
|
+
| images/Read me (example).txt |
|
15
|
+
| images/Child folder/regular_file(example).txt |
|
16
|
+
| .htaccess |
|
17
|
+
| feed.xml |
|
18
|
+
Then the following files should not exist:
|
19
|
+
| _partial |
|
20
|
+
| layout |
|
21
|
+
| layouts/custom |
|
22
|
+
| layouts/content_for |
|
23
|
+
|
24
|
+
And the file "index.html" should contain "Comment in layout"
|
25
|
+
And the file "index.html" should contain "<h1>Welcome</h1>"
|
26
|
+
And the file "static.html" should contain "Static, no code!"
|
27
|
+
And the file "services/index.html" should contain "Services"
|
28
|
+
And the file "stylesheets/static.css" should contain "body"
|
29
|
+
And the file "spaces in file.html" should contain "spaces"
|
30
|
+
|
31
|
+
Scenario: Build glob
|
32
|
+
Given a successfully built app at "glob-app" with flags "--glob '*.css'"
|
33
|
+
When I cd to "build"
|
34
|
+
Then the following files should not exist:
|
35
|
+
| index.html |
|
36
|
+
Then the following files should exist:
|
37
|
+
| stylesheets/site.css |
|
38
|
+
|
39
|
+
Scenario: Build with errors
|
40
|
+
Given a built app at "build-with-errors-app"
|
41
|
+
Then the exit status should be 1
|
42
|
+
|
43
|
+
Scenario: Build empty errors
|
44
|
+
Given a built app at "empty-app"
|
45
|
+
Then the exit status should be 1
|
46
|
+
|
47
|
+
Scenario: Build alias (b)
|
48
|
+
Given a fixture app "large-build-app"
|
49
|
+
When I run `middleman b`
|
50
|
+
Then was successfully built
|
@@ -0,0 +1,19 @@
|
|
1
|
+
Feature: Templates should be chainable
|
2
|
+
In order to insert variables and data in "static" engines
|
3
|
+
|
4
|
+
Scenario: Data in Erb in Markdown
|
5
|
+
Given the Server is running at "chained-app"
|
6
|
+
When I go to "/index.html"
|
7
|
+
Then I should see "Title</h1>"
|
8
|
+
And I should see "Subtitle</h2>"
|
9
|
+
And I should see "Sup</h3>"
|
10
|
+
|
11
|
+
Scenario: Build chained template
|
12
|
+
Given a successfully built app at "chained-app"
|
13
|
+
When I cd to "build"
|
14
|
+
Then the following files should exist:
|
15
|
+
| index.html |
|
16
|
+
|
17
|
+
And the file "index.html" should contain "Title</h1>"
|
18
|
+
And the file "index.html" should contain "Subtitle</h2>"
|
19
|
+
And the file "index.html" should contain "Sup</h3>"
|
@@ -0,0 +1,28 @@
|
|
1
|
+
Feature: Build Clean
|
2
|
+
Scenario: Build and Clean an app
|
3
|
+
Given a fixture app "clean-app"
|
4
|
+
And app "clean-app" is using config "empty"
|
5
|
+
And a successfully built app at "clean-app"
|
6
|
+
Then the following files should exist:
|
7
|
+
| build/index.html |
|
8
|
+
| build/should_be_ignored.html |
|
9
|
+
| build/should_be_ignored2.html |
|
10
|
+
| build/should_be_ignored3.html |
|
11
|
+
And app "clean-app" is using config "complications"
|
12
|
+
Given a successfully built app at "clean-app" with flags "--clean"
|
13
|
+
Then the following files should not exist:
|
14
|
+
| build/should_be_ignored.html |
|
15
|
+
| build/should_be_ignored2.html |
|
16
|
+
| build/should_be_ignored3.html |
|
17
|
+
And the file "build/index.html" should contain "Comment in layout"
|
18
|
+
|
19
|
+
Scenario: Clean build an app with newly ignored files and a nested output directory
|
20
|
+
Given a built app at "clean-nested-app"
|
21
|
+
Then a directory named "sub/dir" should exist
|
22
|
+
Then the following files should exist:
|
23
|
+
| sub/dir/about.html |
|
24
|
+
When I append to "config.rb" with "ignore 'about.html'"
|
25
|
+
Given a built app at "clean-nested-app" with flags "--clean"
|
26
|
+
Then the following files should not exist:
|
27
|
+
| sub/dir/about.html |
|
28
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
Feature: Middleman New Extension CLI
|
2
|
+
|
3
|
+
Scenario: Create a new extension scaffold
|
4
|
+
Given I run `middleman extension my-extension-library`
|
5
|
+
Then the exit status should be 0
|
6
|
+
When I cd to "my-extension-library"
|
7
|
+
Then the following files should exist:
|
8
|
+
| Gemfile |
|
9
|
+
| Rakefile |
|
10
|
+
| my-extension-library.gemspec |
|
11
|
+
| features/support/env.rb |
|
12
|
+
| lib/middleman_extension.rb |
|
13
|
+
| lib/my-extension-library.rb |
|
14
|
+
| .gitignore |
|
@@ -0,0 +1,89 @@
|
|
1
|
+
Feature: Middleman CLI
|
2
|
+
|
3
|
+
Scenario: Create a new project
|
4
|
+
Given I run `middleman init MY_PROJECT`
|
5
|
+
Then the exit status should be 0
|
6
|
+
When I cd to "MY_PROJECT"
|
7
|
+
Then the following files should exist:
|
8
|
+
| Gemfile |
|
9
|
+
| .gitignore |
|
10
|
+
| config.rb |
|
11
|
+
| source/index.html.erb |
|
12
|
+
| source/images/background.png |
|
13
|
+
| source/images/middleman.png |
|
14
|
+
| source/layouts/layout.erb |
|
15
|
+
| source/javascripts/all.js |
|
16
|
+
| source/stylesheets/all.css |
|
17
|
+
| source/stylesheets/normalize.css |
|
18
|
+
|
19
|
+
Scenario: Create a new project (alias i)
|
20
|
+
When I run `middleman i MY_PROJECT`
|
21
|
+
Then a directory named "MY_PROJECT" should exist
|
22
|
+
|
23
|
+
Scenario: Create a new project (alias new)
|
24
|
+
When I run `middleman new MY_PROJECT`
|
25
|
+
Then a directory named "MY_PROJECT" should exist
|
26
|
+
|
27
|
+
Scenario: Create a new project (alias n)
|
28
|
+
When I run `middleman n MY_PROJECT`
|
29
|
+
Then a directory named "MY_PROJECT" should exist
|
30
|
+
|
31
|
+
Scenario: Create a new project with Rack
|
32
|
+
When I run `middleman init MY_PROJECT --rack`
|
33
|
+
Then a directory named "MY_PROJECT" should exist
|
34
|
+
When I cd to "MY_PROJECT"
|
35
|
+
Then the following files should exist:
|
36
|
+
| config.rb |
|
37
|
+
| config.ru |
|
38
|
+
| Gemfile |
|
39
|
+
|
40
|
+
Scenario: Create a new HTML5 project
|
41
|
+
When I run `middleman init MY_PROJECT --template=html5`
|
42
|
+
Then a directory named "MY_PROJECT" should exist
|
43
|
+
When I cd to "MY_PROJECT"
|
44
|
+
Then the following files should exist:
|
45
|
+
| config.rb |
|
46
|
+
| Gemfile |
|
47
|
+
Then the following files should not exist:
|
48
|
+
| config.ru |
|
49
|
+
And the file "config.rb" should contain "set :js_dir, 'js'"
|
50
|
+
Then a directory named "source" should exist
|
51
|
+
When I cd to "source"
|
52
|
+
Then the following files should exist:
|
53
|
+
| index.html |
|
54
|
+
| humans.txt |
|
55
|
+
| js/script.js |
|
56
|
+
|
57
|
+
Scenario: Create a new HTML5 project with Rack
|
58
|
+
When I run `middleman init MY_PROJECT --rack --template=html5`
|
59
|
+
Then a directory named "MY_PROJECT" should exist
|
60
|
+
When I cd to "MY_PROJECT"
|
61
|
+
Then the following files should exist:
|
62
|
+
| config.rb |
|
63
|
+
| config.ru |
|
64
|
+
| Gemfile |
|
65
|
+
|
66
|
+
Scenario: Create a new Mobile HTML5 project
|
67
|
+
When I run `middleman init MY_PROJECT --template=mobile`
|
68
|
+
Then a directory named "MY_PROJECT" should exist
|
69
|
+
When I cd to "MY_PROJECT"
|
70
|
+
Then the following files should exist:
|
71
|
+
| config.rb |
|
72
|
+
| Gemfile |
|
73
|
+
Then the following files should not exist:
|
74
|
+
| config.ru |
|
75
|
+
Then a directory named "source" should exist
|
76
|
+
When I cd to "source"
|
77
|
+
Then the following files should exist:
|
78
|
+
| index.html |
|
79
|
+
| humans.txt |
|
80
|
+
| js/libs/respond.min.js |
|
81
|
+
|
82
|
+
Scenario: Create a new Mobile HTML5 project with Rack
|
83
|
+
When I run `middleman init MY_PROJECT --rack --template=mobile`
|
84
|
+
Then a directory named "MY_PROJECT" should exist
|
85
|
+
When I cd to "MY_PROJECT"
|
86
|
+
Then the following files should exist:
|
87
|
+
| config.rb |
|
88
|
+
| config.ru |
|
89
|
+
| Gemfile |
|
@@ -0,0 +1,8 @@
|
|
1
|
+
Feature: Custom Layout Engine
|
2
|
+
|
3
|
+
Scenario: Checking built folder for content
|
4
|
+
Given a successfully built app at "custom-layout-app"
|
5
|
+
When I cd to "build"
|
6
|
+
Then the following files should exist:
|
7
|
+
| index.html |
|
8
|
+
And the file "index.html" should contain "Comment in layout"
|
@@ -0,0 +1,64 @@
|
|
1
|
+
Feature: Custom layouts
|
2
|
+
In order easily switch between relative and absolute paths
|
3
|
+
|
4
|
+
Scenario: Using custom :layout attribute
|
5
|
+
Given page "/custom-layout.html" has layout "custom"
|
6
|
+
And the Server is running at "custom-layout-app2"
|
7
|
+
When I go to "/custom-layout.html"
|
8
|
+
Then I should see "Custom Layout"
|
9
|
+
|
10
|
+
Scenario: Using with_layout block
|
11
|
+
Given "/custom-layout.html" with_layout block has layout "custom"
|
12
|
+
And the Server is running at "custom-layout-app2"
|
13
|
+
When I go to "/custom-layout.html"
|
14
|
+
Then I should see "Custom Layout"
|
15
|
+
|
16
|
+
Scenario: Using with_layout block with globs
|
17
|
+
Given "/custom-*" with_layout block has layout "custom"
|
18
|
+
And the Server is running at "custom-layout-app2"
|
19
|
+
When I go to "/custom-layout.html"
|
20
|
+
Then I should see "Custom Layout"
|
21
|
+
|
22
|
+
Scenario: Using custom :layout attribute with folders
|
23
|
+
Given page "/custom-layout-dir/" has layout "custom"
|
24
|
+
And the Server is running at "custom-layout-app2"
|
25
|
+
When I go to "/custom-layout-dir"
|
26
|
+
Then I should see "Custom Layout"
|
27
|
+
When I go to "/custom-layout-dir/"
|
28
|
+
Then I should see "Custom Layout"
|
29
|
+
When I go to "/custom-layout-dir/index.html"
|
30
|
+
Then I should see "Custom Layout"
|
31
|
+
|
32
|
+
Scenario: Using custom :layout attribute with folders
|
33
|
+
Given page "/custom-layout-dir" has layout "custom"
|
34
|
+
And the Server is running at "custom-layout-app2"
|
35
|
+
When I go to "/custom-layout-dir"
|
36
|
+
Then I should see "Custom Layout"
|
37
|
+
When I go to "/custom-layout-dir/"
|
38
|
+
Then I should see "Custom Layout"
|
39
|
+
When I go to "/custom-layout-dir/index.html"
|
40
|
+
Then I should see "Custom Layout"
|
41
|
+
|
42
|
+
Scenario: Using custom :layout attribute with folders
|
43
|
+
Given page "/custom-layout-dir/index.html" has layout "custom"
|
44
|
+
And the Server is running at "custom-layout-app2"
|
45
|
+
When I go to "/custom-layout-dir"
|
46
|
+
Then I should see "Custom Layout"
|
47
|
+
When I go to "/custom-layout-dir/"
|
48
|
+
Then I should see "Custom Layout"
|
49
|
+
When I go to "/custom-layout-dir/index.html"
|
50
|
+
Then I should see "Custom Layout"
|
51
|
+
|
52
|
+
Scenario: Setting layout inside a matching page block
|
53
|
+
Given the Server is running at "page-helper-layout-block-app"
|
54
|
+
When I go to "/index.html"
|
55
|
+
Then I should see "Hello"
|
56
|
+
And I should see "World"
|
57
|
+
When I go to "/path/child.html"
|
58
|
+
Then I should see "Alt"
|
59
|
+
And I should see "Child"
|
60
|
+
And I should not see "Hello"
|
61
|
+
When I go to "/path/index.html"
|
62
|
+
Then I should see "Alt"
|
63
|
+
And I should see "Monde"
|
64
|
+
And I should not see "Hello"
|
@@ -0,0 +1,22 @@
|
|
1
|
+
Feature: Local Data API
|
2
|
+
In order to abstract content from structure
|
3
|
+
|
4
|
+
Scenario: Rendering html
|
5
|
+
Given the Server is running at "basic-data-app"
|
6
|
+
When I go to "/data.html"
|
7
|
+
Then I should see "One:Two"
|
8
|
+
|
9
|
+
Scenario: Rendering json
|
10
|
+
Given the Server is running at "basic-data-app"
|
11
|
+
When I go to "/data3.html"
|
12
|
+
Then I should see "One:Two"
|
13
|
+
|
14
|
+
Scenario: Using data in config.rb
|
15
|
+
Given the Server is running at "data-app"
|
16
|
+
When I go to "/test1.html"
|
17
|
+
Then I should see "Welcome"
|
18
|
+
|
19
|
+
Scenario: Using data2 in config.rb
|
20
|
+
Given the Server is running at "data-app"
|
21
|
+
When I go to "/test2.html"
|
22
|
+
Then I should see "Welcome"
|
@@ -0,0 +1,133 @@
|
|
1
|
+
Feature: Dynamic Pages
|
2
|
+
In order to use a single view to generate multiple output files
|
3
|
+
|
4
|
+
Scenario: Checking built folder for content
|
5
|
+
Given a successfully built app at "dynamic-pages-app"
|
6
|
+
When I cd to "build"
|
7
|
+
Then the following files should exist:
|
8
|
+
| fake.html |
|
9
|
+
| fake2.html |
|
10
|
+
| fake3.html |
|
11
|
+
| fake4.html |
|
12
|
+
| fake/one.html |
|
13
|
+
| fake/two.html |
|
14
|
+
| fake2/one.html |
|
15
|
+
| fake2/two.html |
|
16
|
+
| fake3/one.html |
|
17
|
+
| fake3/two.html |
|
18
|
+
| fake4/one.html |
|
19
|
+
| fake4/two.html |
|
20
|
+
| target_ignore.html |
|
21
|
+
| target_ignore2.html |
|
22
|
+
| target_ignore3.html |
|
23
|
+
| target_ignore4.html |
|
24
|
+
| 明日がある.html |
|
25
|
+
Then the following files should not exist:
|
26
|
+
| should_be_ignored.html |
|
27
|
+
| should_be_ignored2.html |
|
28
|
+
| should_be_ignored3.html |
|
29
|
+
| should_be_ignored4.html |
|
30
|
+
| should_be_ignored5.html |
|
31
|
+
| should_be_ignored6.html |
|
32
|
+
| should_be_ignored7.html |
|
33
|
+
| should_be_ignored8.html |
|
34
|
+
|
35
|
+
Scenario: Preview basic proxy
|
36
|
+
Given the Server is running at "dynamic-pages-app"
|
37
|
+
When I go to "/fake.html"
|
38
|
+
Then I should see "I am real"
|
39
|
+
When I go to "/fake2.html"
|
40
|
+
Then I should see "I am real"
|
41
|
+
When I go to "/fake3.html"
|
42
|
+
Then I should see "I am real"
|
43
|
+
When I go to "/fake4.html"
|
44
|
+
Then I should see "I am real"
|
45
|
+
|
46
|
+
Scenario: Preview proxy with variable one
|
47
|
+
Given the Server is running at "dynamic-pages-app"
|
48
|
+
When I go to "/fake/one.html"
|
49
|
+
Then I should see "I am real: one"
|
50
|
+
Then I should see "Global: I am one glob"
|
51
|
+
Then I should see "All: I am all glob"
|
52
|
+
|
53
|
+
When I go to "/fake2/one.html"
|
54
|
+
Then I should see "I am real: one"
|
55
|
+
Then I should see "Global: I am two glob"
|
56
|
+
Then I should see "All: I am all glob"
|
57
|
+
|
58
|
+
When I go to "/fake3/one.html"
|
59
|
+
Then I should see "I am real: one"
|
60
|
+
Then I should see "Global: I am three glob"
|
61
|
+
Then I should see "All: I am all glob"
|
62
|
+
|
63
|
+
When I go to "/fake4/one.html"
|
64
|
+
Then I should see "I am real: one"
|
65
|
+
Then I should see "Global: I am four glob"
|
66
|
+
Then I should see "All: I am all glob"
|
67
|
+
|
68
|
+
Scenario: Preview proxy with variable two
|
69
|
+
Given the Server is running at "dynamic-pages-app"
|
70
|
+
When I go to "/fake/two.html"
|
71
|
+
Then I should see "I am real: two"
|
72
|
+
Then I should see "Global: I am one glob"
|
73
|
+
Then I should see "All: I am all glob"
|
74
|
+
|
75
|
+
When I go to "/fake2/two.html"
|
76
|
+
Then I should see "I am real: two"
|
77
|
+
Then I should see "Global: I am two glob"
|
78
|
+
Then I should see "All: I am all glob"
|
79
|
+
|
80
|
+
When I go to "/fake3/two.html"
|
81
|
+
Then I should see "I am real: two"
|
82
|
+
Then I should see "Global: I am three glob"
|
83
|
+
Then I should see "All: I am all glob"
|
84
|
+
|
85
|
+
When I go to "/fake4/two.html"
|
86
|
+
Then I should see "I am real: two"
|
87
|
+
Then I should see "Global: I am four glob"
|
88
|
+
Then I should see "All: I am all glob"
|
89
|
+
|
90
|
+
Scenario: Build proxy with variable one
|
91
|
+
Given a successfully built app at "dynamic-pages-app"
|
92
|
+
When I cd to "build"
|
93
|
+
Then the file "fake/one.html" should contain "I am real: one"
|
94
|
+
Then the file "fake/one.html" should contain "Global: I am one glob"
|
95
|
+
Then the file "fake/one.html" should contain "All: I am all glob"
|
96
|
+
|
97
|
+
Then the file "fake2/one.html" should contain "I am real: one"
|
98
|
+
Then the file "fake2/one.html" should contain "Global: I am two glob"
|
99
|
+
Then the file "fake2/one.html" should contain "All: I am all glob"
|
100
|
+
|
101
|
+
Then the file "fake3/one.html" should contain "I am real: one"
|
102
|
+
Then the file "fake3/one.html" should contain "Global: I am three glob"
|
103
|
+
Then the file "fake3/one.html" should contain "All: I am all glob"
|
104
|
+
|
105
|
+
Scenario: Target ignore
|
106
|
+
Given the Server is running at "dynamic-pages-app"
|
107
|
+
When I go to "/target_ignore.html"
|
108
|
+
Then I should see "Ignore me! 3"
|
109
|
+
When I go to "/target_ignore2.html"
|
110
|
+
Then I should see "Ignore me! 6"
|
111
|
+
When I go to "/target_ignore3.html"
|
112
|
+
Then I should see "Ignore me! 7"
|
113
|
+
When I go to "/target_ignore4.html"
|
114
|
+
Then I should see "Ignore me! 8"
|
115
|
+
|
116
|
+
Scenario: Preview ignored paths
|
117
|
+
Given the Server is running at "dynamic-pages-app"
|
118
|
+
When I go to "/should_be_ignored.html"
|
119
|
+
Then I should see "File Not Found"
|
120
|
+
When I go to "/should_be_ignored2.html"
|
121
|
+
Then I should see "File Not Found"
|
122
|
+
When I go to "/should_be_ignored3.html"
|
123
|
+
Then I should see "File Not Found"
|
124
|
+
When I go to "/should_be_ignored4.html"
|
125
|
+
Then I should see "File Not Found"
|
126
|
+
When I go to "/should_be_ignored5.html"
|
127
|
+
Then I should see "File Not Found"
|
128
|
+
When I go to "/should_be_ignored6.html"
|
129
|
+
Then I should see "File Not Found"
|
130
|
+
When I go to "/should_be_ignored7.html"
|
131
|
+
Then I should see "File Not Found"
|
132
|
+
When I go to "/should_be_ignored8.html"
|
133
|
+
Then I should see "File Not Found"
|
@@ -0,0 +1,24 @@
|
|
1
|
+
Feature: Text Files Without Extensions Should Build and Preview
|
2
|
+
|
3
|
+
Scenario: Building Text Files without directory indexes
|
4
|
+
Given a successfully built app at "extensionless-text-files-app"
|
5
|
+
When I cd to "build"
|
6
|
+
Then the following files should exist:
|
7
|
+
| CNAME |
|
8
|
+
| LICENSE |
|
9
|
+
| README |
|
10
|
+
|
11
|
+
Scenario: Previewing Text Files
|
12
|
+
Given the Server is running at "extensionless-text-files-app"
|
13
|
+
When I go to "/CNAME"
|
14
|
+
Then I should see "test.github.com"
|
15
|
+
When I go to "/LICENSE"
|
16
|
+
Then I should see "You have the right to remain classy."
|
17
|
+
When I go to "/README"
|
18
|
+
Then I should see "Bork bork bork"
|
19
|
+
# When I go to "/CNAME/index.html"
|
20
|
+
# Then I should see "File Not Found"
|
21
|
+
# When I go to "/LICENSE/index.html"
|
22
|
+
# Then I should see "File Not Found"
|
23
|
+
# When I go to "/README/index.html"
|
24
|
+
# Then I should see "File Not Found"
|