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
@@ -0,0 +1,439 @@
|
|
1
|
+
# Shutup Tilt Warnings
|
2
|
+
# @private
|
3
|
+
class Tilt::Template
|
4
|
+
def warn(*args)
|
5
|
+
# Kernel.warn(*args)
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
# Rendering extension
|
10
|
+
module Middleman
|
11
|
+
module CoreExtensions
|
12
|
+
module Rendering
|
13
|
+
|
14
|
+
# Setup extension
|
15
|
+
class << self
|
16
|
+
|
17
|
+
# Once registered
|
18
|
+
def registered(app)
|
19
|
+
# Include methods
|
20
|
+
app.send :include, InstanceMethods
|
21
|
+
|
22
|
+
# Activate custom renderers
|
23
|
+
require "middleman-core/renderers/erb"
|
24
|
+
app.register Middleman::Renderers::ERb
|
25
|
+
|
26
|
+
# CoffeeScript Support
|
27
|
+
begin
|
28
|
+
require "middleman-core/renderers/coffee_script"
|
29
|
+
app.register Middleman::Renderers::CoffeeScript
|
30
|
+
rescue LoadError
|
31
|
+
end
|
32
|
+
|
33
|
+
# Haml Support
|
34
|
+
begin
|
35
|
+
require "middleman-core/renderers/haml"
|
36
|
+
app.register Middleman::Renderers::Haml
|
37
|
+
rescue LoadError
|
38
|
+
end
|
39
|
+
|
40
|
+
# Sass Support
|
41
|
+
begin
|
42
|
+
require "middleman-core/renderers/sass"
|
43
|
+
app.register Middleman::Renderers::Sass
|
44
|
+
rescue LoadError
|
45
|
+
end
|
46
|
+
|
47
|
+
# Markdown Support
|
48
|
+
require "middleman-core/renderers/markdown"
|
49
|
+
app.register Middleman::Renderers::Markdown
|
50
|
+
|
51
|
+
# Liquid Support
|
52
|
+
begin
|
53
|
+
require "middleman-core/renderers/liquid"
|
54
|
+
app.register Middleman::Renderers::Liquid
|
55
|
+
rescue LoadError
|
56
|
+
end
|
57
|
+
|
58
|
+
# Slim Support
|
59
|
+
begin
|
60
|
+
require "middleman-core/renderers/slim"
|
61
|
+
app.register Middleman::Renderers::Slim
|
62
|
+
rescue LoadError
|
63
|
+
end
|
64
|
+
|
65
|
+
# Less Support
|
66
|
+
begin
|
67
|
+
require "middleman-core/renderers/less"
|
68
|
+
app.register Middleman::Renderers::Less
|
69
|
+
rescue LoadError
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
alias :included :registered
|
74
|
+
end
|
75
|
+
|
76
|
+
# Custom error class for handling
|
77
|
+
class TemplateNotFound < RuntimeError
|
78
|
+
end
|
79
|
+
|
80
|
+
# Rendering instance methods
|
81
|
+
module InstanceMethods
|
82
|
+
|
83
|
+
# Add or overwrite a default template extension
|
84
|
+
#
|
85
|
+
# @param [Hash] extension_map
|
86
|
+
# @return [Hash]
|
87
|
+
def template_extensions(extension_map=nil)
|
88
|
+
@_template_extensions ||= {}
|
89
|
+
@_template_extensions.merge!(extension_map) if extension_map
|
90
|
+
@_template_extensions
|
91
|
+
end
|
92
|
+
|
93
|
+
# Render a template, with layout, given a path
|
94
|
+
#
|
95
|
+
# @param [String] path
|
96
|
+
# @param [Hash] locs
|
97
|
+
# @param [Hash] opts
|
98
|
+
# @return [String]
|
99
|
+
def render_template(path, locs={}, opts={}, blocks=[])
|
100
|
+
# Detect the remdering engine from the extension
|
101
|
+
extension = File.extname(path)
|
102
|
+
engine = extension[1..-1].to_sym
|
103
|
+
|
104
|
+
# Store last engine for later (could be inside nested renders)
|
105
|
+
@current_engine, engine_was = engine, @current_engine
|
106
|
+
|
107
|
+
# Use a dup of self as a context so that instance variables set within
|
108
|
+
# the template don't persist for other templates.
|
109
|
+
context = self.dup
|
110
|
+
blocks.each do |block|
|
111
|
+
context.instance_eval(&block)
|
112
|
+
end
|
113
|
+
|
114
|
+
# Store current locs/opts for later
|
115
|
+
@current_locs = locs, @current_opts = opts
|
116
|
+
|
117
|
+
# Keep rendering template until we've used up all extensions. This
|
118
|
+
# handles cases like `style.css.sass.erb`
|
119
|
+
content = nil
|
120
|
+
while ::Tilt[path]
|
121
|
+
begin
|
122
|
+
opts[:template_body] = content if content
|
123
|
+
content = render_individual_file(path, locs, opts, context)
|
124
|
+
path = File.basename(path, File.extname(path))
|
125
|
+
rescue LocalJumpError => e
|
126
|
+
raise "Tried to render a layout (calls yield) at #{path} like it was a template. Non-default layouts need to be in #{source}/layouts."
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
# Certain output file types don't use layouts
|
131
|
+
needs_layout = !%w(.js .json .css .txt).include?(File.extname(path))
|
132
|
+
|
133
|
+
# If we need a layout and have a layout, use it
|
134
|
+
if needs_layout && layout_path = fetch_layout(engine, opts)
|
135
|
+
content = render_individual_file(layout_path, locs, opts, context) { content }
|
136
|
+
end
|
137
|
+
|
138
|
+
# Return result
|
139
|
+
content
|
140
|
+
ensure
|
141
|
+
# Pop all the saved variables from earlier as we may be returning to a
|
142
|
+
# previous render (layouts, partials, nested layouts).
|
143
|
+
@current_engine = engine_was
|
144
|
+
@content_blocks = nil
|
145
|
+
@current_locs = nil
|
146
|
+
@current_opts = nil
|
147
|
+
end
|
148
|
+
|
149
|
+
# Sinatra/Padrino compatible render method signature referenced by some view
|
150
|
+
# helpers. Especially partials.
|
151
|
+
#
|
152
|
+
# @param [String, Symbol] engine
|
153
|
+
# @param [String, Symbol] data
|
154
|
+
# @param [Hash] options
|
155
|
+
# @return [String]
|
156
|
+
def render(engine, data, options={}, &block)
|
157
|
+
data = data.to_s
|
158
|
+
|
159
|
+
locals = options[:locals]
|
160
|
+
|
161
|
+
found_partial = false
|
162
|
+
engine = nil
|
163
|
+
|
164
|
+
# If the path is known to the sitemap
|
165
|
+
if resource = sitemap.find_resource_by_path(current_path)
|
166
|
+
current_dir = File.dirname(resource.source_file)
|
167
|
+
engine = File.extname(resource.source_file)[1..-1].to_sym
|
168
|
+
|
169
|
+
# Look for partials relative to the current path
|
170
|
+
if current_dir != self.source_dir
|
171
|
+
relative_dir = File.join(current_dir.sub("#{self.source_dir}/", ""), data)
|
172
|
+
|
173
|
+
# Try to use the current engine first
|
174
|
+
found_partial, found_engine = resolve_template(relative_dir, :preferred_engine => engine, :try_without_underscore => true)
|
175
|
+
|
176
|
+
# Fall back to any engine available
|
177
|
+
if !found_partial
|
178
|
+
found_partial, found_engine = resolve_template(relative_dir, :try_without_underscore => true)
|
179
|
+
end
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
183
|
+
# Look in the root for the partial with the current engine
|
184
|
+
if !found_partial && !engine.nil?
|
185
|
+
found_partial, found_engine = resolve_template(data, :preferred_engine => engine, :try_without_underscore => true)
|
186
|
+
end
|
187
|
+
|
188
|
+
# Look in the root with any engine
|
189
|
+
if !found_partial
|
190
|
+
found_partial, found_engine = resolve_template(data, :try_without_underscore => true)
|
191
|
+
end
|
192
|
+
|
193
|
+
# Render the partial if found, otherwide throw exception
|
194
|
+
if found_partial
|
195
|
+
render_individual_file(found_partial, locals, options, self, &block)
|
196
|
+
else
|
197
|
+
raise ::Middleman::CoreExtensions::Rendering::TemplateNotFound, "Could not locate partial: #{data}"
|
198
|
+
end
|
199
|
+
end
|
200
|
+
|
201
|
+
# Render an on-disk file. Used for everything, including layouts.
|
202
|
+
#
|
203
|
+
# @param [String, Symbol] path
|
204
|
+
# @param [Hash] locs
|
205
|
+
# @param [Hash] opts
|
206
|
+
# @param [Class] context
|
207
|
+
# @return [String]
|
208
|
+
def render_individual_file(path, locs = {}, opts = {}, context = self, &block)
|
209
|
+
path = path.to_s
|
210
|
+
|
211
|
+
# Save current buffer for later
|
212
|
+
@_out_buf, _buf_was = "", @_out_buf
|
213
|
+
|
214
|
+
# Read from disk or cache the contents of the file
|
215
|
+
body = if opts[:template_body]
|
216
|
+
opts.delete(:template_body)
|
217
|
+
else
|
218
|
+
template_data_for_file(path)
|
219
|
+
end
|
220
|
+
|
221
|
+
# Merge per-extension options from config
|
222
|
+
extension = File.extname(path)
|
223
|
+
options = opts.merge(options_for_ext(extension))
|
224
|
+
options[:outvar] ||= '@_out_buf'
|
225
|
+
|
226
|
+
# Read compiled template from disk or cache
|
227
|
+
template = cache.fetch(:compiled_template, options, body) do
|
228
|
+
::Tilt.new(path, 1, options) { body }
|
229
|
+
end
|
230
|
+
|
231
|
+
# Render using Tilt
|
232
|
+
template.render(context, locs, &block)
|
233
|
+
ensure
|
234
|
+
# Reset stored buffer
|
235
|
+
@_out_buf = _buf_was
|
236
|
+
end
|
237
|
+
|
238
|
+
# Get the template data from a path
|
239
|
+
# @param [String] path
|
240
|
+
# @return [String]
|
241
|
+
def template_data_for_file(path)
|
242
|
+
File.read(File.expand_path(path, source_dir))
|
243
|
+
end
|
244
|
+
|
245
|
+
# Get a hash of configuration options for a given file extension, from
|
246
|
+
# config.rb
|
247
|
+
#
|
248
|
+
# @param [String] ext
|
249
|
+
# @return [Hash]
|
250
|
+
def options_for_ext(ext)
|
251
|
+
# Read options for extension from config/Tilt or cache
|
252
|
+
cache.fetch(:options_for_ext, ext) do
|
253
|
+
options = {}
|
254
|
+
|
255
|
+
# Find all the engines which handle this extension in tilt. Look for
|
256
|
+
# config variables of that name and merge it
|
257
|
+
extension_class = ::Tilt[ext]
|
258
|
+
::Tilt.mappings.each do |ext, engines|
|
259
|
+
next unless engines.include? extension_class
|
260
|
+
engine_options = respond_to?(ext.to_sym) ? send(ext.to_sym) : {}
|
261
|
+
options.merge!(engine_options)
|
262
|
+
end
|
263
|
+
|
264
|
+
options
|
265
|
+
end
|
266
|
+
end
|
267
|
+
|
268
|
+
# Find a layout for a given engine
|
269
|
+
#
|
270
|
+
# @param [Symbol] engine
|
271
|
+
# @param [Hash] opts
|
272
|
+
# @return [String]
|
273
|
+
def fetch_layout(engine, opts)
|
274
|
+
# The layout name comes from either the system default or the options
|
275
|
+
local_layout = opts.has_key?(:layout) ? opts[:layout] : layout
|
276
|
+
return false unless local_layout
|
277
|
+
|
278
|
+
# Look for engine-specific options
|
279
|
+
engine_options = respond_to?(engine) ? send(engine) : {}
|
280
|
+
|
281
|
+
# The engine for the layout can be set in options, engine_options or passed
|
282
|
+
# into this method
|
283
|
+
layout_engine = if opts.has_key?(:layout_engine)
|
284
|
+
opts[:layout_engine]
|
285
|
+
elsif engine_options.has_key?(:layout_engine)
|
286
|
+
engine_options[:layout_engine]
|
287
|
+
else
|
288
|
+
engine
|
289
|
+
end
|
290
|
+
|
291
|
+
# Automatic mode
|
292
|
+
if local_layout == :_auto_layout
|
293
|
+
# Look for :layout of any extension
|
294
|
+
# If found, use it. If not, continue
|
295
|
+
locate_layout(:layout, layout_engine) || false
|
296
|
+
else
|
297
|
+
# Look for specific layout
|
298
|
+
# If found, use it. If not, error.
|
299
|
+
if layout_path = locate_layout(local_layout, layout_engine)
|
300
|
+
layout_path
|
301
|
+
else
|
302
|
+
raise ::Middleman::CoreExtensions::Rendering::TemplateNotFound, "Could not locate layout: #{local_layout}"
|
303
|
+
end
|
304
|
+
end
|
305
|
+
end
|
306
|
+
|
307
|
+
# Find a layout on-disk, optionally using a specific engine
|
308
|
+
# @param [String] name
|
309
|
+
# @param [Symbol] preferred_engine
|
310
|
+
# @return [String]
|
311
|
+
def locate_layout(name, preferred_engine=nil)
|
312
|
+
# Whether we've found the layout
|
313
|
+
layout_path = false
|
314
|
+
|
315
|
+
# If we prefer a specific engine
|
316
|
+
if !preferred_engine.nil?
|
317
|
+
# Check root
|
318
|
+
layout_path, layout_engine = resolve_template(name, :preferred_engine => preferred_engine)
|
319
|
+
|
320
|
+
# Check layouts folder
|
321
|
+
if !layout_path
|
322
|
+
layout_path, layout_engine = resolve_template(File.join("layouts", name.to_s), :preferred_engine => preferred_engine)
|
323
|
+
end
|
324
|
+
end
|
325
|
+
|
326
|
+
# Check root, no preference
|
327
|
+
if !layout_path
|
328
|
+
layout_path, layout_engine = resolve_template(name)
|
329
|
+
end
|
330
|
+
|
331
|
+
# Check layouts folder, no preference
|
332
|
+
if !layout_path
|
333
|
+
layout_path, layout_engine = resolve_template(File.join("layouts", name.to_s))
|
334
|
+
end
|
335
|
+
|
336
|
+
# Return the path
|
337
|
+
layout_path
|
338
|
+
end
|
339
|
+
|
340
|
+
# Allow layouts to be wrapped in the contents of other layouts
|
341
|
+
# @param [String, Symbol] layout_name
|
342
|
+
# @return [void]
|
343
|
+
def wrap_layout(layout_name, &block)
|
344
|
+
# Save current buffer for later
|
345
|
+
@_out_buf, _buf_was = "", @_out_buf
|
346
|
+
|
347
|
+
layout_path = locate_layout(layout_name, current_engine)
|
348
|
+
|
349
|
+
extension = File.extname(layout_path)
|
350
|
+
engine = extension[1..-1].to_sym
|
351
|
+
|
352
|
+
# Store last engine for later (could be inside nested renders)
|
353
|
+
@current_engine, engine_was = engine, @current_engine
|
354
|
+
|
355
|
+
begin
|
356
|
+
content = if block_given?
|
357
|
+
capture_html(&block)
|
358
|
+
else
|
359
|
+
""
|
360
|
+
end
|
361
|
+
ensure
|
362
|
+
# Reset stored buffer
|
363
|
+
@_out_buf = _buf_was
|
364
|
+
end
|
365
|
+
|
366
|
+
concat_content render_individual_file(layout_path, @current_locs || {}, @current_opts || {}, self) { content }
|
367
|
+
ensure
|
368
|
+
@current_engine = engine_was
|
369
|
+
end
|
370
|
+
|
371
|
+
# The currently rendering engine
|
372
|
+
# @return [Symbol, nil]
|
373
|
+
def current_engine
|
374
|
+
@current_engine ||= nil
|
375
|
+
end
|
376
|
+
|
377
|
+
# Find a template on disk given a output path
|
378
|
+
# @param [String] request_path
|
379
|
+
# @param [Hash] options
|
380
|
+
# @return [Array<String, Symbol>, Boolean]
|
381
|
+
def resolve_template(request_path, options={})
|
382
|
+
# Find the path by searching or using the cache
|
383
|
+
request_path = request_path.to_s
|
384
|
+
cache.fetch(:resolve_template, request_path, options) do
|
385
|
+
relative_path = request_path.sub(%r{^/}, "")
|
386
|
+
on_disk_path = File.expand_path(relative_path, self.source_dir)
|
387
|
+
|
388
|
+
# By default, any engine will do
|
389
|
+
preferred_engine = "*"
|
390
|
+
|
391
|
+
# Unless we're specifically looking for a preferred engine
|
392
|
+
if options.has_key?(:preferred_engine)
|
393
|
+
extension_class = ::Tilt[options[:preferred_engine]]
|
394
|
+
matched_exts = []
|
395
|
+
|
396
|
+
# Get a list of extensions for a preferred engine
|
397
|
+
# TODO: Cache this
|
398
|
+
::Tilt.mappings.each do |ext, engines|
|
399
|
+
next unless engines.include? extension_class
|
400
|
+
matched_exts << ext
|
401
|
+
end
|
402
|
+
|
403
|
+
# Change the glob to only look for the matched extensions
|
404
|
+
if matched_exts.length > 0
|
405
|
+
preferred_engine = "{" + matched_exts.join(",") + "}"
|
406
|
+
else
|
407
|
+
return false
|
408
|
+
end
|
409
|
+
end
|
410
|
+
|
411
|
+
# Look for files that match
|
412
|
+
path_with_ext = on_disk_path + "." + preferred_engine
|
413
|
+
|
414
|
+
found_path = Dir[path_with_ext].find do |path|
|
415
|
+
::Tilt[path]
|
416
|
+
end
|
417
|
+
|
418
|
+
if !found_path && options[:try_without_underscore] &&
|
419
|
+
path_no_underscore = path_with_ext.
|
420
|
+
sub(relative_path, relative_path.sub(/^_/, "").
|
421
|
+
sub(/\/_/, "/"))
|
422
|
+
found_path = Dir[path_no_underscore].find do |path|
|
423
|
+
::Tilt[path]
|
424
|
+
end
|
425
|
+
end
|
426
|
+
|
427
|
+
# If we found one, return it and the found engine
|
428
|
+
if found_path || (File.exists?(on_disk_path) && !File.directory?(on_disk_path))
|
429
|
+
engine = found_path ? File.extname(found_path)[1..-1].to_sym : nil
|
430
|
+
[ found_path || on_disk_path, engine ]
|
431
|
+
else
|
432
|
+
false
|
433
|
+
end
|
434
|
+
end
|
435
|
+
end
|
436
|
+
end
|
437
|
+
end
|
438
|
+
end
|
439
|
+
end
|