middleman-core 3.2.0 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +10 -0
- data/features/helpers_auto_javascript_include_tag.feature +21 -0
- data/features/helpers_auto_stylesheet_link_tag.feature +21 -0
- data/features/i18n_builder.feature +23 -13
- data/features/i18n_preview.feature +9 -9
- data/features/markdown_kramdown.feature +1 -1
- data/fixtures/i18n-test-app/source/{layout.erb → layouts/layout.erb} +0 -0
- data/fixtures/i18n-test-app/source/{morning.en.html.erb → localizable/morning.en.html.erb} +0 -0
- data/fixtures/i18n-test-app/source/{morning.es.html.erb → localizable/morning.es.html.erb} +0 -0
- data/fixtures/i18n-test-app/source/{one.en.md → localizable/one.en.md} +0 -0
- data/fixtures/i18n-test-app/source/{one.es.md → localizable/one.es.md} +0 -0
- data/lib/middleman-core/application.rb +4 -0
- data/lib/middleman-core/cli/build.rb +14 -2
- data/lib/middleman-core/cli/init.rb +1 -0
- data/lib/middleman-core/core_extensions.rb +6 -1
- data/lib/middleman-core/core_extensions/file_watcher.rb +1 -0
- data/lib/middleman-core/core_extensions/request.rb +2 -4
- data/lib/middleman-core/extensions.rb +13 -5
- data/lib/middleman-core/meta_pages.rb +25 -11
- data/lib/middleman-core/meta_pages/sitemap_resource.rb +2 -2
- data/lib/middleman-core/meta_pages/templates/config.html.erb +7 -9
- data/lib/middleman-core/meta_pages/templates/index.html.erb +3 -3
- data/lib/middleman-core/meta_pages/templates/sitemap.html.erb +6 -6
- data/lib/middleman-core/sitemap/extensions/redirects.rb +1 -2
- data/lib/middleman-core/sitemap/extensions/request_endpoints.rb +2 -3
- data/lib/middleman-core/sitemap/resource.rb +7 -13
- data/lib/middleman-core/util.rb +2 -3
- data/lib/middleman-core/version.rb +1 -1
- data/lib/middleman-more/core_extensions/default_helpers.rb +9 -5
- data/lib/middleman-more/core_extensions/i18n.rb +17 -10
- data/lib/middleman-more/extensions/{automatic-alt-tags.rb → automatic_alt_tags.rb} +0 -0
- data/lib/middleman-more/extensions/gzip.rb +29 -6
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/.document +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/.gitignore +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/.yardopts +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/LICENSE.txt +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/README.rdoc +5 -5
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/Rakefile +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/bin/padrino +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core.rb +4 -10
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/application.rb +39 -35
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/application/flash.rb +7 -7
- data/lib/vendored-middleman-deps/padrino-core-0.11.4/lib/padrino-core/application/rendering.rb +317 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/application/rendering/extensions/erubis.rb +15 -6
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/application/rendering/extensions/haml.rb +2 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/application/rendering/extensions/slim.rb +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/application/routing.rb +406 -368
- data/lib/vendored-middleman-deps/padrino-core-0.11.4/lib/padrino-core/application/showexceptions.rb +21 -0
- data/lib/vendored-middleman-deps/padrino-core-0.11.4/lib/padrino-core/caller.rb +53 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/cli/adapter.rb +4 -4
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/cli/base.rb +40 -39
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/cli/console.rb +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/cli/rake.rb +2 -2
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/cli/rake_tasks.rb +2 -4
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/command.rb +2 -2
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/images/404.png +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/images/500.png +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/loader.rb +14 -15
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/cs.yml +0 -1
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/da.yml +0 -1
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/de.yml +0 -1
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/en.yml +0 -1
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/es.yml +1 -2
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/fr.yml +2 -3
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/hu.yml +1 -2
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/it.yml +0 -1
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/ja.yml +1 -2
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/lv.yml +0 -1
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/nl.yml +0 -1
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/no.yml +0 -2
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/pl.yml +0 -1
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/pt_br.yml +0 -1
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/ro.yml +0 -1
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/ru.yml +0 -1
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/sv.yml +0 -1
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/tr.yml +0 -1
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/uk.yml +0 -1
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/zh_cn.yml +0 -1
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/zh_tw.yml +0 -1
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/logger.rb +30 -36
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/module.rb +3 -3
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/mounter.rb +59 -59
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/reloader.rb +23 -23
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/router.rb +10 -13
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/server.rb +17 -19
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/support_lite.rb +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/tasks.rb +3 -3
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/version.rb +1 -1
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/padrino-core.gemspec +2 -2
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/fixtures/app_gem/Gemfile +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/fixtures/app_gem/app/app.rb +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/fixtures/app_gem/app_gem.gemspec +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/fixtures/app_gem/lib/app_gem.rb +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/fixtures/app_gem/lib/app_gem/version.rb +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/fixtures/apps/.components +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/fixtures/apps/.gitignore +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/fixtures/apps/complex.rb +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/fixtures/apps/simple.rb +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/fixtures/dependencies/a.rb +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/fixtures/dependencies/b.rb +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/fixtures/dependencies/c.rb +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/fixtures/dependencies/circular/e.rb +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/fixtures/dependencies/circular/f.rb +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/fixtures/dependencies/circular/g.rb +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/fixtures/dependencies/d.rb +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/helper.rb +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/mini_shoulda.rb +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/test_application.rb +7 -7
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/test_core.rb +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/test_csrf_protection.rb +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/test_dependencies.rb +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/test_filters.rb +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/test_flash.rb +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/test_locale.rb +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/test_logger.rb +29 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/test_mounter.rb +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/test_reloader_complex.rb +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/test_reloader_simple.rb +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/test_rendering.rb +15 -2
- data/lib/vendored-middleman-deps/padrino-core-0.11.4/test/test_rendering_extensions.rb +14 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/test_restful_routing.rb +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/test_router.rb +0 -0
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/test_routing.rb +69 -11
- data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/test_support_lite.rb +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/.document +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/.gitignore +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/.yardopts +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/LICENSE.txt +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/README.rdoc +1 -1
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/Rakefile +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers.rb +3 -6
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/asset_tag_helpers.rb +34 -42
- data/lib/vendored-middleman-deps/padrino-helpers-0.11.4/lib/padrino-helpers/breadcrumb_helpers.rb +183 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/form_builder/abstract_form_builder.rb +126 -118
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/form_builder/standard_form_builder.rb +6 -9
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/form_helpers.rb +252 -195
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/format_helpers.rb +29 -42
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/cs.yml +14 -14
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/da.yml +1 -1
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/de.yml +1 -1
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/en.yml +16 -16
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/es.yml +16 -16
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/fr.yml +1 -2
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/hu.yml +16 -16
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/it.yml +2 -2
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/ja.yml +16 -16
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/lv.yml +16 -16
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/nl.yml +1 -1
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/no.yml +1 -1
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/pl.yml +7 -7
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/pt_br.yml +16 -16
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/ro.yml +16 -16
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/ru.yml +16 -16
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/sv.yml +16 -16
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/tr.yml +16 -16
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/uk.yml +16 -16
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/zh_cn.yml +16 -16
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/zh_tw.yml +16 -16
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/number_helpers.rb +10 -15
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/output_helpers.rb +50 -58
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/output_helpers/abstract_handler.rb +16 -18
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/output_helpers/erb_handler.rb +11 -12
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/output_helpers/haml_handler.rb +9 -9
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/output_helpers/slim_handler.rb +11 -13
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/render_helpers.rb +5 -6
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/tag_helpers.rb +26 -22
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/translation_helpers.rb +4 -6
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/padrino-helpers.gemspec +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/app.rb +7 -3
- data/lib/vendored-middleman-deps/padrino-helpers-0.11.4/test/fixtures/markup_app/views/button_to.erb +8 -0
- data/lib/vendored-middleman-deps/padrino-helpers-0.11.4/test/fixtures/markup_app/views/button_to.haml +5 -0
- data/lib/vendored-middleman-deps/padrino-helpers-0.11.4/test/fixtures/markup_app/views/button_to.slim +6 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/capture_concat.erb +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/capture_concat.haml +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/capture_concat.slim +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/content_for.erb +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/content_for.haml +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/content_for.slim +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/content_tag.erb +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/content_tag.haml +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/content_tag.slim +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/current_engine.erb +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/current_engine.haml +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/current_engine.slim +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/fields_for.erb +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/fields_for.haml +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/fields_for.slim +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/form_for.erb +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/form_for.haml +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/form_for.slim +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/form_tag.erb +9 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/form_tag.haml +8 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/form_tag.slim +9 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/link_to.erb +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/link_to.haml +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/link_to.slim +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/mail_to.erb +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/mail_to.haml +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/mail_to.slim +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/meta_tag.erb +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/meta_tag.haml +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/meta_tag.slim +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/partials/_erb.erb +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/partials/_haml.haml +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/partials/_slim.slim +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/simple_partial.erb +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/simple_partial.haml +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/views/simple_partial.slim +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/render_app/app.rb +1 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/render_app/views/current_engine.haml +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/render_app/views/current_engines/_erb.erb +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/render_app/views/current_engines/_haml.haml +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/render_app/views/current_engines/_slim.slim +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/render_app/views/double_capture_erb.erb +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/render_app/views/double_capture_haml.haml +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/render_app/views/double_capture_slim.slim +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/render_app/views/erb/test.erb +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/render_app/views/explicit_engine.haml +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/render_app/views/haml/test.haml +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/render_app/views/template/_user.haml +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/render_app/views/template/haml_template.haml +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/render_app/views/template/some_template.haml +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/helper.rb +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/test_asset_tag_helpers.rb +9 -3
- data/lib/vendored-middleman-deps/padrino-helpers-0.11.4/test/test_breadcrumb_helpers.rb +134 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/test_form_builder.rb +38 -6
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/test_form_helpers.rb +230 -12
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/test_format_helpers.rb +3 -3
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/test_locale.rb +0 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/test_number_helpers.rb +4 -0
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/test_output_helpers.rb +1 -1
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/test_render_helpers.rb +1 -1
- data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/test_tag_helpers.rb +3 -3
- data/middleman-core.gemspec +7 -8
- data/spec/spec_helper.rb +1 -1
- metadata +220 -215
- data/lib/vendored-middleman-deps/padrino-core-0.11.2/lib/padrino-core/application/rendering.rb +0 -320
- data/lib/vendored-middleman-deps/padrino-core-0.11.2/lib/padrino-core/application/showexceptions.rb +0 -20
- data/lib/vendored-middleman-deps/padrino-core-0.11.2/lib/padrino-core/caller.rb +0 -53
- data/lib/vendored-middleman-deps/padrino-helpers-0.11.2/lib/padrino-helpers/breadcrumb_helpers.rb +0 -171
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9136eed750e812964590bf24ce5c278e02030cb4
|
4
|
+
data.tar.gz: 44d32a56dead0c8a459725ffe033f1dcec63ede0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b4362a8a7d6d67bc9f5895193bd38b877008ab678e183ef03e719c549f04a5668616a94a4e1091730ecf9f7469c5f32bb1d2f969156f18d2db78e3edad1ee21
|
7
|
+
data.tar.gz: cadb0cb5b71dbbb7c21be2048edb7a60adf05404616680ff5a0442af89bd4f6fa24552a3a31fe7125e33b9273b60c67a10ccbbbe77bc0b53c1157c3020d3b4f0
|
data/.yardopts
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
lib/**/*.rb
|
2
|
+
--exclude lib/vendored-middleman-deps/
|
3
|
+
--exclude lib/middleman-core/step_definitions
|
4
|
+
--exclude lib/middleman-core/templates/default/
|
5
|
+
--exclude lib/middleman-core/templates/html5/
|
6
|
+
--exclude lib/middleman-core/templates/mobile/
|
7
|
+
--exclude lib/middleman-core/templates/shared/
|
8
|
+
--exclude lib/middleman-core/templates/extension/
|
9
|
+
--no-private
|
10
|
+
--hide-void-return
|
@@ -6,11 +6,25 @@ Feature: Built-in auto_javascript_include_tag view helper
|
|
6
6
|
When I go to "/auto-js.html"
|
7
7
|
Then I should see "javascripts/auto-js.js"
|
8
8
|
|
9
|
+
Scenario: Viewing the root path (build mode)
|
10
|
+
Given a successfully built app at "auto-js-app"
|
11
|
+
When I cd to "build"
|
12
|
+
Then the following files should exist:
|
13
|
+
| auto-js.html |
|
14
|
+
And the file "auto-js.html" should contain "javascripts/auto-js.js"
|
15
|
+
|
9
16
|
Scenario: Viewing a tier-1 path
|
10
17
|
Given the Server is running at "auto-js-app"
|
11
18
|
When I go to "/auto-js/auto-js.html"
|
12
19
|
Then I should see "javascripts/auto-js/auto-js.js"
|
13
20
|
|
21
|
+
Scenario: Viewing a tier-1 path (build mode)
|
22
|
+
Given a successfully built app at "auto-js-app"
|
23
|
+
When I cd to "build"
|
24
|
+
Then the following files should exist:
|
25
|
+
| auto-js/auto-js.html |
|
26
|
+
And the file "auto-js/auto-js.html" should contain "javascripts/auto-js/auto-js.js"
|
27
|
+
|
14
28
|
Scenario: Viewing the index file of a tier-1 path, without filename
|
15
29
|
Given the Server is running at "auto-js-app"
|
16
30
|
When I go to "/auto-js"
|
@@ -25,3 +39,10 @@ Feature: Built-in auto_javascript_include_tag view helper
|
|
25
39
|
Given the Server is running at "auto-js-app"
|
26
40
|
When I go to "/auto-js/sub/auto-js.html"
|
27
41
|
Then I should see "javascripts/auto-js/sub/auto-js.js"
|
42
|
+
|
43
|
+
Scenario: Viewing a tier-2 path (build mode)
|
44
|
+
Given a successfully built app at "auto-js-app"
|
45
|
+
When I cd to "build"
|
46
|
+
Then the following files should exist:
|
47
|
+
| auto-js/sub/auto-js.html |
|
48
|
+
And the file "auto-js/sub/auto-js.html" should contain "javascripts/auto-js/sub/auto-js.js"
|
@@ -6,11 +6,25 @@ Feature: Built-in auto_stylesheet_link_tag view helper
|
|
6
6
|
When I go to "/auto-css.html"
|
7
7
|
Then I should see "stylesheets/auto-css.css"
|
8
8
|
|
9
|
+
Scenario: Viewing the root path (build mode)
|
10
|
+
Given a successfully built app at "auto-css-app"
|
11
|
+
When I cd to "build"
|
12
|
+
Then the following files should exist:
|
13
|
+
| auto-css.html |
|
14
|
+
And the file "auto-css.html" should contain "stylesheets/auto-css.css"
|
15
|
+
|
9
16
|
Scenario: Viewing a tier-1 path
|
10
17
|
Given the Server is running at "auto-css-app"
|
11
18
|
When I go to "/auto-css/auto-css.html"
|
12
19
|
Then I should see "stylesheets/auto-css/auto-css.css"
|
13
20
|
|
21
|
+
Scenario: Viewing a tier-1 path (build mode)
|
22
|
+
Given a successfully built app at "auto-css-app"
|
23
|
+
When I cd to "build"
|
24
|
+
Then the following files should exist:
|
25
|
+
| auto-css/auto-css.html |
|
26
|
+
And the file "auto-css/auto-css.html" should contain "stylesheets/auto-css/auto-css.css"
|
27
|
+
|
14
28
|
Scenario: Viewing the index file of a tier-1 path, without filename
|
15
29
|
Given the Server is running at "auto-css-app"
|
16
30
|
When I go to "/auto-css"
|
@@ -25,3 +39,10 @@ Feature: Built-in auto_stylesheet_link_tag view helper
|
|
25
39
|
Given the Server is running at "auto-css-app"
|
26
40
|
When I go to "/auto-css/sub/auto-css.html"
|
27
41
|
Then I should see "stylesheets/auto-css/sub/auto-css.css"
|
42
|
+
|
43
|
+
Scenario: Viewing a tier-2 path (build mode)
|
44
|
+
Given a successfully built app at "auto-css-app"
|
45
|
+
When I cd to "build"
|
46
|
+
Then the following files should exist:
|
47
|
+
| auto-css/sub/auto-css.html |
|
48
|
+
And the file "auto-css/sub/auto-css.html" should contain "stylesheets/auto-css/sub/auto-css.css"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Feature: i18n Builder
|
2
2
|
In order to preview localized html
|
3
|
-
|
3
|
+
|
4
4
|
Scenario: Running localize with the default config
|
5
5
|
Given a fixture app "i18n-test-app"
|
6
6
|
And a file named "config.rb" with:
|
@@ -22,9 +22,19 @@ Feature: i18n Builder
|
|
22
22
|
| password.txt |
|
23
23
|
Then the following files should not exist:
|
24
24
|
| en/index.html |
|
25
|
+
| en/manana.html |
|
26
|
+
| en/hola.html |
|
27
|
+
| en/una.html |
|
28
|
+
| es/morning.html |
|
29
|
+
| es/one.html |
|
30
|
+
| es/hello.html |
|
31
|
+
| en/morning.en.html |
|
32
|
+
| en/morning.es.html |
|
33
|
+
| morning.en.html |
|
34
|
+
| morning.es.html |
|
25
35
|
| defaults_en/index.html |
|
26
36
|
| en_defaults/index.html |
|
27
|
-
And the file "index.html" should contain "Howdy"
|
37
|
+
And the file "index.html" should contain "Howdy"
|
28
38
|
And the file "hello.html" should contain "Hello World"
|
29
39
|
And the file "morning.html" should contain "Good morning"
|
30
40
|
And the file "one.html" should contain "Only one"
|
@@ -34,7 +44,7 @@ Feature: i18n Builder
|
|
34
44
|
And the file "es/una.html" should contain "Solamente una"
|
35
45
|
And the file "CNAME" should contain "test.github.com"
|
36
46
|
And the file "password.txt" should contain "hunter2"
|
37
|
-
|
47
|
+
|
38
48
|
Scenario: Running localize with the alt path config
|
39
49
|
Given a fixture app "i18n-test-app"
|
40
50
|
And a file named "config.rb" with:
|
@@ -50,11 +60,11 @@ Feature: i18n Builder
|
|
50
60
|
| lang_es/hola.html |
|
51
61
|
Then the following files should not exist:
|
52
62
|
| lang_en/index.html |
|
53
|
-
And the file "index.html" should contain "Howdy"
|
63
|
+
And the file "index.html" should contain "Howdy"
|
54
64
|
And the file "hello.html" should contain "Hello World"
|
55
65
|
And the file "lang_es/index.html" should contain "Como Esta?"
|
56
66
|
And the file "lang_es/hola.html" should contain "Hola World"
|
57
|
-
|
67
|
+
|
58
68
|
Scenario: Running localize with the alt root config
|
59
69
|
Given a fixture app "i18n-alt-root-app"
|
60
70
|
And a file named "config.rb" with:
|
@@ -70,11 +80,11 @@ Feature: i18n Builder
|
|
70
80
|
| es/hola.html |
|
71
81
|
Then the following files should not exist:
|
72
82
|
| en/index.html |
|
73
|
-
And the file "index.html" should contain "Howdy"
|
83
|
+
And the file "index.html" should contain "Howdy"
|
74
84
|
And the file "hello.html" should contain "Hello World"
|
75
85
|
And the file "es/index.html" should contain "Como Esta?"
|
76
86
|
And the file "es/hola.html" should contain "Hola World"
|
77
|
-
|
87
|
+
|
78
88
|
Scenario: Running localize with the lang map config
|
79
89
|
Given a fixture app "i18n-test-app"
|
80
90
|
And a file named "config.rb" with:
|
@@ -90,11 +100,11 @@ Feature: i18n Builder
|
|
90
100
|
| spanish/hola.html |
|
91
101
|
Then the following files should not exist:
|
92
102
|
| english/index.html |
|
93
|
-
And the file "index.html" should contain "Howdy"
|
103
|
+
And the file "index.html" should contain "Howdy"
|
94
104
|
And the file "hello.html" should contain "Hello World"
|
95
105
|
And the file "spanish/index.html" should contain "Como Esta?"
|
96
106
|
And the file "spanish/hola.html" should contain "Hola World"
|
97
|
-
|
107
|
+
|
98
108
|
Scenario: Running localize with the no mount config
|
99
109
|
Given a fixture app "i18n-test-app"
|
100
110
|
And a file named "config.rb" with:
|
@@ -111,11 +121,11 @@ Feature: i18n Builder
|
|
111
121
|
Then the following files should not exist:
|
112
122
|
| index.html |
|
113
123
|
| hello.html |
|
114
|
-
And the file "en/index.html" should contain "Howdy"
|
124
|
+
And the file "en/index.html" should contain "Howdy"
|
115
125
|
And the file "en/hello.html" should contain "Hello World"
|
116
126
|
And the file "es/index.html" should contain "Como Esta?"
|
117
127
|
And the file "es/hola.html" should contain "Hola World"
|
118
|
-
|
128
|
+
|
119
129
|
Scenario: Running localize with the subset config
|
120
130
|
Given a fixture app "i18n-test-app"
|
121
131
|
And a file named "config.rb" with:
|
@@ -131,9 +141,9 @@ Feature: i18n Builder
|
|
131
141
|
| en/index.html |
|
132
142
|
| es/index.html |
|
133
143
|
| es/hola.html |
|
134
|
-
And the file "index.html" should contain "Howdy"
|
144
|
+
And the file "index.html" should contain "Howdy"
|
135
145
|
And the file "hello.html" should contain "Hello World"
|
136
|
-
|
146
|
+
|
137
147
|
Scenario: Running localize with relative_assets
|
138
148
|
Given a fixture app "i18n-test-app"
|
139
149
|
And a file named "config.rb" with:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Feature: i18n Preview
|
2
2
|
In order to preview localized html
|
3
|
-
|
3
|
+
|
4
4
|
Scenario: Running localize with the default config
|
5
5
|
Given a fixture app "i18n-test-app"
|
6
6
|
And a file named "config.rb" with:
|
@@ -80,8 +80,8 @@ Feature: i18n Preview
|
|
80
80
|
Then I should see "Como Esta?"
|
81
81
|
When I go to "/lang_es/hola.html"
|
82
82
|
Then I should see "Hola World"
|
83
|
-
|
84
|
-
|
83
|
+
|
84
|
+
|
85
85
|
Scenario: Running localize with the alt root config
|
86
86
|
Given a fixture app "i18n-alt-root-app"
|
87
87
|
And a file named "config.rb" with:
|
@@ -99,7 +99,7 @@ Feature: i18n Preview
|
|
99
99
|
Then I should see "Como Esta?"
|
100
100
|
When I go to "/es/hola.html"
|
101
101
|
Then I should see "Hola World"
|
102
|
-
|
102
|
+
|
103
103
|
Scenario: Running localize with the lang map config
|
104
104
|
Given a fixture app "i18n-test-app"
|
105
105
|
And a file named "config.rb" with:
|
@@ -167,8 +167,8 @@ Feature: i18n Preview
|
|
167
167
|
Then I should see "File Not Found"
|
168
168
|
When I go to "/es/hola.html"
|
169
169
|
Then I should see "File Not Found"
|
170
|
-
|
171
|
-
|
170
|
+
|
171
|
+
|
172
172
|
Scenario: Running localize with the no mount config
|
173
173
|
Given a fixture app "i18n-test-app"
|
174
174
|
And a file named "config.rb" with:
|
@@ -188,7 +188,7 @@ Feature: i18n Preview
|
|
188
188
|
Then I should see "Como Esta?"
|
189
189
|
When I go to "/es/hola.html"
|
190
190
|
Then I should see "Hola World"
|
191
|
-
|
191
|
+
|
192
192
|
Scenario: Running localize with the subset config
|
193
193
|
Given a fixture app "i18n-test-app"
|
194
194
|
And a file named "config.rb" with:
|
@@ -206,7 +206,7 @@ Feature: i18n Preview
|
|
206
206
|
Then I should see "File Not Found"
|
207
207
|
When I go to "/es/hola.html"
|
208
208
|
Then I should see "File Not Found"
|
209
|
-
|
209
|
+
|
210
210
|
Scenario: Running localize with relative_assets
|
211
211
|
Given a fixture app "i18n-test-app"
|
212
212
|
And a file named "config.rb" with:
|
@@ -249,4 +249,4 @@ Feature: i18n Preview
|
|
249
249
|
Then I should see "More"
|
250
250
|
When I go to "/es/"
|
251
251
|
Then I should see "Como Esta?"
|
252
|
-
Then I should see "Mucho"
|
252
|
+
Then I should see "Mucho"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -117,6 +117,10 @@ module Middleman
|
|
117
117
|
# @return [String]
|
118
118
|
config.define_setting :encoding, "utf-8", 'Default string encoding for templates and output'
|
119
119
|
|
120
|
+
# Should Padrino include CRSF tag
|
121
|
+
# @return [Boolean]
|
122
|
+
config.define_setting :protect_from_csrf, false, 'Should Padrino include CRSF tag'
|
123
|
+
|
120
124
|
# Activate custom features and extensions
|
121
125
|
include Middleman::CoreExtensions::Extensions
|
122
126
|
|
@@ -159,9 +159,15 @@ module Middleman::Cli
|
|
159
159
|
return unless File.exist?(@build_dir)
|
160
160
|
|
161
161
|
paths = ::Middleman::Util.all_files_under(@build_dir).map(&:realpath).select(&:file?)
|
162
|
+
|
162
163
|
@to_clean += paths.select do |path|
|
163
164
|
path.to_s !~ /\/\./ || path.to_s =~ /\.(htaccess|htpasswd)/
|
164
165
|
end
|
166
|
+
|
167
|
+
if RUBY_PLATFORM =~ /darwin/
|
168
|
+
# handle UTF-8-MAC filename on MacOS
|
169
|
+
@to_clean = @to_clean.map { |path| path.to_s.encode('UTF-8', 'UTF-8-MAC') }
|
170
|
+
end
|
165
171
|
end
|
166
172
|
|
167
173
|
# Actually build the app
|
@@ -205,8 +211,14 @@ module Middleman::Cli
|
|
205
211
|
|
206
212
|
output_path = render_to_file(resource)
|
207
213
|
|
208
|
-
if should_clean?
|
209
|
-
|
214
|
+
if should_clean? && output_path.exist?
|
215
|
+
if RUBY_PLATFORM =~ /darwin/
|
216
|
+
# handle UTF-8-MAC filename on MacOS
|
217
|
+
|
218
|
+
@to_clean.delete(output_path.realpath.to_s.encode('UTF-8', 'UTF-8-MAC'))
|
219
|
+
else
|
220
|
+
@to_clean.delete(output_path.realpath)
|
221
|
+
end
|
210
222
|
end
|
211
223
|
end
|
212
224
|
|
@@ -87,4 +87,9 @@ require "middleman-more/extensions/lorem"
|
|
87
87
|
# and automatically adds width and height attributes to their HTML
|
88
88
|
# elements.
|
89
89
|
require "middleman-more/extensions/automatic_image_sizes"
|
90
|
-
Middleman::Extensions::AutomaticImageSizes.register
|
90
|
+
Middleman::Extensions::AutomaticImageSizes.register
|
91
|
+
|
92
|
+
# AutomaticAltTags uses the file name of the `image_tag` to generate
|
93
|
+
# a default `:alt` value.
|
94
|
+
require "middleman-more/extensions/automatic_alt_tags"
|
95
|
+
Middleman::Extensions::AutomaticAltTags.register
|
@@ -173,8 +173,8 @@ module Middleman
|
|
173
173
|
})
|
174
174
|
end
|
175
175
|
|
176
|
-
delegate :use, :to => :"self.class"
|
177
|
-
delegate :map, :to => :"self.class"
|
176
|
+
delegate :use, :to => :"self.class"
|
177
|
+
delegate :map, :to => :"self.class"
|
178
178
|
|
179
179
|
# Rack request
|
180
180
|
# @return [Rack::Request]
|
@@ -287,8 +287,6 @@ module Middleman
|
|
287
287
|
end
|
288
288
|
|
289
289
|
# Immediately send static file
|
290
|
-
#
|
291
|
-
# @param [String] path File to send
|
292
290
|
def send_file(resource, env)
|
293
291
|
file = ::Rack::File.new nil
|
294
292
|
file.path = resource.source_file
|
@@ -113,12 +113,20 @@ module Middleman
|
|
113
113
|
config.define_setting(key, default, description)
|
114
114
|
end
|
115
115
|
|
116
|
-
|
116
|
+
# Add helpers to the global Middleman application.
|
117
|
+
# This accepts either a list of modules to add on behalf
|
118
|
+
# of this extension, or a block whose contents will all
|
119
|
+
# be used as helpers in a new module.
|
120
|
+
def helpers(*m, &block)
|
117
121
|
self.defined_helpers ||= []
|
118
122
|
|
119
|
-
|
120
|
-
|
121
|
-
|
123
|
+
if block
|
124
|
+
mod = Module.new
|
125
|
+
mod.module_eval(&block)
|
126
|
+
m = [mod]
|
127
|
+
end
|
128
|
+
|
129
|
+
self.defined_helpers += m
|
122
130
|
end
|
123
131
|
|
124
132
|
def extension_name
|
@@ -172,7 +180,7 @@ module Middleman
|
|
172
180
|
|
173
181
|
def app=(app)
|
174
182
|
@app = app
|
175
|
-
|
183
|
+
|
176
184
|
(self.class.defined_helpers || []).each do |m|
|
177
185
|
app.class.send(:include, m)
|
178
186
|
end
|
@@ -60,18 +60,28 @@ module Middleman
|
|
60
60
|
# Inspect configuration
|
61
61
|
def config(env)
|
62
62
|
global_config = @middleman.inst.config.all_settings.map {|c| ConfigSetting.new(c) }
|
63
|
-
extension_config =
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
63
|
+
extension_config = {}
|
64
|
+
|
65
|
+
@middleman.inst.extensions.each do |ext_name, extension|
|
66
|
+
if extension.is_a?(Hash)
|
67
|
+
# Multiple instance extension
|
68
|
+
if extension.size == 1
|
69
|
+
extension_config[ext_name] = extension_options(extension.values.first)
|
70
|
+
else
|
71
|
+
extension.each do |inst, ext|
|
72
|
+
extension_config["#{ext_name} (#{inst})"] = extension_options(ext)
|
73
|
+
end
|
74
|
+
end
|
75
|
+
elsif extension.is_a?(::Middleman::Extension)
|
76
|
+
extension_config[ext_name] = extension_options(extension)
|
77
|
+
else
|
78
|
+
extension_config[ext_name] = nil
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
template('config.html.erb',
|
73
83
|
:global_config => global_config,
|
74
|
-
:extension_config => extension_config,
|
84
|
+
:extension_config => extension_config,
|
75
85
|
:registered_extensions => Middleman::Extensions.registered.dup)
|
76
86
|
end
|
77
87
|
|
@@ -88,6 +98,10 @@ module Middleman
|
|
88
98
|
def response(content)
|
89
99
|
[ 200, {"Content-Type" => "text/html"}, Array(content) ]
|
90
100
|
end
|
101
|
+
|
102
|
+
def extension_options(extension)
|
103
|
+
extension.options.all_settings.map {|c| ConfigSetting.new(c) }
|
104
|
+
end
|
91
105
|
end
|
92
106
|
end
|
93
107
|
end
|