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.
Files changed (241) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +10 -0
  3. data/features/helpers_auto_javascript_include_tag.feature +21 -0
  4. data/features/helpers_auto_stylesheet_link_tag.feature +21 -0
  5. data/features/i18n_builder.feature +23 -13
  6. data/features/i18n_preview.feature +9 -9
  7. data/features/markdown_kramdown.feature +1 -1
  8. data/fixtures/i18n-test-app/source/{layout.erb → layouts/layout.erb} +0 -0
  9. data/fixtures/i18n-test-app/source/{morning.en.html.erb → localizable/morning.en.html.erb} +0 -0
  10. data/fixtures/i18n-test-app/source/{morning.es.html.erb → localizable/morning.es.html.erb} +0 -0
  11. data/fixtures/i18n-test-app/source/{one.en.md → localizable/one.en.md} +0 -0
  12. data/fixtures/i18n-test-app/source/{one.es.md → localizable/one.es.md} +0 -0
  13. data/lib/middleman-core/application.rb +4 -0
  14. data/lib/middleman-core/cli/build.rb +14 -2
  15. data/lib/middleman-core/cli/init.rb +1 -0
  16. data/lib/middleman-core/core_extensions.rb +6 -1
  17. data/lib/middleman-core/core_extensions/file_watcher.rb +1 -0
  18. data/lib/middleman-core/core_extensions/request.rb +2 -4
  19. data/lib/middleman-core/extensions.rb +13 -5
  20. data/lib/middleman-core/meta_pages.rb +25 -11
  21. data/lib/middleman-core/meta_pages/sitemap_resource.rb +2 -2
  22. data/lib/middleman-core/meta_pages/templates/config.html.erb +7 -9
  23. data/lib/middleman-core/meta_pages/templates/index.html.erb +3 -3
  24. data/lib/middleman-core/meta_pages/templates/sitemap.html.erb +6 -6
  25. data/lib/middleman-core/sitemap/extensions/redirects.rb +1 -2
  26. data/lib/middleman-core/sitemap/extensions/request_endpoints.rb +2 -3
  27. data/lib/middleman-core/sitemap/resource.rb +7 -13
  28. data/lib/middleman-core/util.rb +2 -3
  29. data/lib/middleman-core/version.rb +1 -1
  30. data/lib/middleman-more/core_extensions/default_helpers.rb +9 -5
  31. data/lib/middleman-more/core_extensions/i18n.rb +17 -10
  32. data/lib/middleman-more/extensions/{automatic-alt-tags.rb → automatic_alt_tags.rb} +0 -0
  33. data/lib/middleman-more/extensions/gzip.rb +29 -6
  34. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/.document +0 -0
  35. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/.gitignore +0 -0
  36. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/.yardopts +0 -0
  37. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/LICENSE.txt +0 -0
  38. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/README.rdoc +5 -5
  39. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/Rakefile +0 -0
  40. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/bin/padrino +0 -0
  41. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core.rb +4 -10
  42. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/application.rb +39 -35
  43. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/application/flash.rb +7 -7
  44. data/lib/vendored-middleman-deps/padrino-core-0.11.4/lib/padrino-core/application/rendering.rb +317 -0
  45. 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
  46. 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
  47. 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
  48. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/application/routing.rb +406 -368
  49. data/lib/vendored-middleman-deps/padrino-core-0.11.4/lib/padrino-core/application/showexceptions.rb +21 -0
  50. data/lib/vendored-middleman-deps/padrino-core-0.11.4/lib/padrino-core/caller.rb +53 -0
  51. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/cli/adapter.rb +4 -4
  52. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/cli/base.rb +40 -39
  53. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/cli/console.rb +0 -0
  54. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/cli/rake.rb +2 -2
  55. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/cli/rake_tasks.rb +2 -4
  56. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/command.rb +2 -2
  57. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/images/404.png +0 -0
  58. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/images/500.png +0 -0
  59. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/loader.rb +14 -15
  60. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/cs.yml +0 -1
  61. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/da.yml +0 -1
  62. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/de.yml +0 -1
  63. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/en.yml +0 -1
  64. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/es.yml +1 -2
  65. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/fr.yml +2 -3
  66. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/hu.yml +1 -2
  67. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/it.yml +0 -1
  68. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/ja.yml +1 -2
  69. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/lv.yml +0 -1
  70. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/nl.yml +0 -1
  71. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/no.yml +0 -2
  72. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/pl.yml +0 -1
  73. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/pt_br.yml +0 -1
  74. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/ro.yml +0 -1
  75. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/ru.yml +0 -1
  76. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/sv.yml +0 -1
  77. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/tr.yml +0 -1
  78. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/uk.yml +0 -1
  79. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/zh_cn.yml +0 -1
  80. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/locale/zh_tw.yml +0 -1
  81. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/logger.rb +30 -36
  82. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/module.rb +3 -3
  83. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/mounter.rb +59 -59
  84. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/reloader.rb +23 -23
  85. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/router.rb +10 -13
  86. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/server.rb +17 -19
  87. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/support_lite.rb +0 -0
  88. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/tasks.rb +3 -3
  89. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/lib/padrino-core/version.rb +1 -1
  90. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/padrino-core.gemspec +2 -2
  91. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/fixtures/app_gem/Gemfile +0 -0
  92. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/fixtures/app_gem/app/app.rb +0 -0
  93. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/fixtures/app_gem/app_gem.gemspec +0 -0
  94. 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
  95. 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
  96. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/fixtures/apps/.components +0 -0
  97. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/fixtures/apps/.gitignore +0 -0
  98. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/fixtures/apps/complex.rb +0 -0
  99. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/fixtures/apps/simple.rb +0 -0
  100. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/fixtures/dependencies/a.rb +0 -0
  101. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/fixtures/dependencies/b.rb +0 -0
  102. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/fixtures/dependencies/c.rb +0 -0
  103. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/fixtures/dependencies/circular/e.rb +0 -0
  104. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/fixtures/dependencies/circular/f.rb +0 -0
  105. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/fixtures/dependencies/circular/g.rb +0 -0
  106. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/fixtures/dependencies/d.rb +0 -0
  107. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/helper.rb +0 -0
  108. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/mini_shoulda.rb +0 -0
  109. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/test_application.rb +7 -7
  110. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/test_core.rb +0 -0
  111. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/test_csrf_protection.rb +0 -0
  112. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/test_dependencies.rb +0 -0
  113. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/test_filters.rb +0 -0
  114. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/test_flash.rb +0 -0
  115. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/test_locale.rb +0 -0
  116. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/test_logger.rb +29 -0
  117. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/test_mounter.rb +0 -0
  118. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/test_reloader_complex.rb +0 -0
  119. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/test_reloader_simple.rb +0 -0
  120. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/test_rendering.rb +15 -2
  121. data/lib/vendored-middleman-deps/padrino-core-0.11.4/test/test_rendering_extensions.rb +14 -0
  122. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/test_restful_routing.rb +0 -0
  123. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/test_router.rb +0 -0
  124. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/test_routing.rb +69 -11
  125. data/lib/vendored-middleman-deps/{padrino-core-0.11.2 → padrino-core-0.11.4}/test/test_support_lite.rb +0 -0
  126. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/.document +0 -0
  127. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/.gitignore +0 -0
  128. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/.yardopts +0 -0
  129. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/LICENSE.txt +0 -0
  130. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/README.rdoc +1 -1
  131. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/Rakefile +0 -0
  132. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers.rb +3 -6
  133. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/asset_tag_helpers.rb +34 -42
  134. data/lib/vendored-middleman-deps/padrino-helpers-0.11.4/lib/padrino-helpers/breadcrumb_helpers.rb +183 -0
  135. 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
  136. 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
  137. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/form_helpers.rb +252 -195
  138. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/format_helpers.rb +29 -42
  139. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/cs.yml +14 -14
  140. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/da.yml +1 -1
  141. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/de.yml +1 -1
  142. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/en.yml +16 -16
  143. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/es.yml +16 -16
  144. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/fr.yml +1 -2
  145. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/hu.yml +16 -16
  146. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/it.yml +2 -2
  147. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/ja.yml +16 -16
  148. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/lv.yml +16 -16
  149. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/nl.yml +1 -1
  150. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/no.yml +1 -1
  151. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/pl.yml +7 -7
  152. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/pt_br.yml +16 -16
  153. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/ro.yml +16 -16
  154. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/ru.yml +16 -16
  155. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/sv.yml +16 -16
  156. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/tr.yml +16 -16
  157. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/uk.yml +16 -16
  158. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/zh_cn.yml +16 -16
  159. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/locale/zh_tw.yml +16 -16
  160. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/number_helpers.rb +10 -15
  161. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/output_helpers.rb +50 -58
  162. 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
  163. 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
  164. 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
  165. 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
  166. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/render_helpers.rb +5 -6
  167. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/tag_helpers.rb +26 -22
  168. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/lib/padrino-helpers/translation_helpers.rb +4 -6
  169. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/padrino-helpers.gemspec +0 -0
  170. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/markup_app/app.rb +7 -3
  171. data/lib/vendored-middleman-deps/padrino-helpers-0.11.4/test/fixtures/markup_app/views/button_to.erb +8 -0
  172. data/lib/vendored-middleman-deps/padrino-helpers-0.11.4/test/fixtures/markup_app/views/button_to.haml +5 -0
  173. data/lib/vendored-middleman-deps/padrino-helpers-0.11.4/test/fixtures/markup_app/views/button_to.slim +6 -0
  174. 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
  175. 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
  176. 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
  177. 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
  178. 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
  179. 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
  180. 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
  181. 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
  182. 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
  183. 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
  184. 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
  185. 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
  186. 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
  187. 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
  188. 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
  189. 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
  190. 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
  191. 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
  192. 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
  193. 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
  194. 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
  195. 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
  196. 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
  197. 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
  198. 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
  199. 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
  200. 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
  201. 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
  202. 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
  203. 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
  204. 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
  205. 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
  206. 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
  207. 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
  208. 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
  209. 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
  210. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/fixtures/render_app/app.rb +1 -0
  211. 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
  212. 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
  213. 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
  214. 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
  215. 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
  216. 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
  217. 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
  218. 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
  219. 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
  220. 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
  221. 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
  222. 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
  223. 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
  224. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/helper.rb +0 -0
  225. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/test_asset_tag_helpers.rb +9 -3
  226. data/lib/vendored-middleman-deps/padrino-helpers-0.11.4/test/test_breadcrumb_helpers.rb +134 -0
  227. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/test_form_builder.rb +38 -6
  228. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/test_form_helpers.rb +230 -12
  229. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/test_format_helpers.rb +3 -3
  230. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/test_locale.rb +0 -0
  231. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/test_number_helpers.rb +4 -0
  232. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/test_output_helpers.rb +1 -1
  233. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/test_render_helpers.rb +1 -1
  234. data/lib/vendored-middleman-deps/{padrino-helpers-0.11.2 → padrino-helpers-0.11.4}/test/test_tag_helpers.rb +3 -3
  235. data/middleman-core.gemspec +7 -8
  236. data/spec/spec_helper.rb +1 -1
  237. metadata +220 -215
  238. data/lib/vendored-middleman-deps/padrino-core-0.11.2/lib/padrino-core/application/rendering.rb +0 -320
  239. data/lib/vendored-middleman-deps/padrino-core-0.11.2/lib/padrino-core/application/showexceptions.rb +0 -20
  240. data/lib/vendored-middleman-deps/padrino-core-0.11.2/lib/padrino-core/caller.rb +0 -53
  241. 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: 8e72ec7118c675ea751825737b7d382670144035
4
- data.tar.gz: 035a9102b513a809495a687a6cf11154a29d8842
3
+ metadata.gz: 9136eed750e812964590bf24ce5c278e02030cb4
4
+ data.tar.gz: 44d32a56dead0c8a459725ffe033f1dcec63ede0
5
5
  SHA512:
6
- metadata.gz: 246c43b8e6372afe90cbd427d80135e8d72b1d5686f15b9fca2d773e023b6f54ebd20b53fd61374beea8d87951e6dd7a103384454c27f06b610ef4a5dc7acb06
7
- data.tar.gz: 396268eda2f27bbf32d83b46dd87f2add1c26225f9af60df2b968359de40375487dd3fa8a405d0ace99b869233d00bec46f44f89cc546bb87ab1691f43e77667
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"
@@ -26,7 +26,7 @@ Feature: Markdown (Kramdown) support
26
26
 
27
27
  ![image](blank.gif)
28
28
 
29
- (mailto:mail@mail.com)
29
+ [mail@mail.com](mailto:mail@mail.com)
30
30
  """
31
31
  Given the Server is running at "markdown-app"
32
32
  When I go to "/link_and_image/"
@@ -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
- @to_clean.delete(output_path.realpath) if output_path.exist?
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
 
@@ -34,6 +34,7 @@ module Middleman::Cli
34
34
  :desc => "Don't create a Gemfile"
35
35
  method_option "skip-bundle",
36
36
  :type => :boolean,
37
+ :aliases => "-B",
37
38
  :default => false,
38
39
  :desc => "Don't run bundle install"
39
40
  method_option "skip-git",
@@ -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
@@ -11,6 +11,7 @@ module Middleman
11
11
  /^\.bundle\//,
12
12
  /^vendor\//,
13
13
  /^\.sass-cache\//,
14
+ /^\.cache\//,
14
15
  /^\.git\//,
15
16
  /^\.gitignore$/,
16
17
  /\.DS_Store/,
@@ -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
- def helpers(&block)
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
- m = Module.new
120
- m.module_eval(&block)
121
- self.defined_helpers << m
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 = Hash[@middleman.inst.extensions.map do |ext_name, extension|
64
- opts = if extension.is_a?(::Middleman::Extension)
65
- extension.options.all_settings.map {|c| ConfigSetting.new(c) }
66
- else
67
- nil
68
- end
69
- [ext_name, opts]
70
- end]
71
-
72
- template('config.html.erb',
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