middleman-core 4.3.7 → 4.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (349) hide show
  1. checksums.yaml +4 -4
  2. data/.gemtest +0 -0
  3. data/features/asset_hash.feature +64 -62
  4. data/features/data.feature +20 -0
  5. data/features/front-matter-neighbor.feature +33 -27
  6. data/features/front-matter.feature +11 -5
  7. data/features/i18n_preview.feature +238 -238
  8. data/features/liquid.feature +5 -2
  9. data/features/support/env.rb +0 -3
  10. data/features/unicode_filenames.feature +3 -3
  11. data/fixtures/asset-hash-app/source/apple-touch-icon.png +0 -0
  12. data/fixtures/asset-hash-app/source/favicon.ico +0 -0
  13. data/fixtures/asset-hash-app/source/fonts/fontawesome-webfont.woff +0 -0
  14. data/fixtures/asset-hash-app/source/fonts/fontawesome-webfont.woff2 +0 -0
  15. data/fixtures/asset-hash-app/source/images/100px.gif +0 -0
  16. data/fixtures/asset-hash-app/source/images/100px.jpg +0 -0
  17. data/fixtures/asset-hash-app/source/images/100px.png +0 -0
  18. data/fixtures/asset-hash-app/source/images/200px.jpg +0 -0
  19. data/fixtures/asset-hash-app/source/images/300px.jpg +0 -0
  20. data/fixtures/asset-hash-host-app/source/images/100px.gif +0 -0
  21. data/fixtures/asset-hash-host-app/source/images/100px.jpg +0 -0
  22. data/fixtures/asset-hash-host-app/source/images/100px.png +0 -0
  23. data/fixtures/asset-hash-minified-app/source/images/100px.jpg +0 -0
  24. data/fixtures/asset-hash-prefix/source/javascripts/application.js.map +0 -0
  25. data/fixtures/asset-hash-remove-filename/source/javascripts/application.js.map +0 -0
  26. data/fixtures/asset-hash-source-map/source/javascripts/application.js.map +0 -0
  27. data/fixtures/asset-host-app/source/.htaccess +0 -0
  28. data/fixtures/asset-host-app/source/images/blank0.gif +0 -0
  29. data/fixtures/asset-host-app/source/images/blank1.gif +0 -0
  30. data/fixtures/asset-host-app/source/images/blank10.gif +0 -0
  31. data/fixtures/asset-host-app/source/images/blank100.gif +0 -0
  32. data/fixtures/asset-host-app/source/images/blank101.gif +0 -0
  33. data/fixtures/asset-host-app/source/images/blank1010.gif +0 -0
  34. data/fixtures/asset-host-app/source/images/blank102.gif +0 -0
  35. data/fixtures/asset-host-app/source/images/blank1020.gif +0 -0
  36. data/fixtures/asset-host-app/source/images/blank1021.gif +0 -0
  37. data/fixtures/asset-host-app/source/images/blank1022.gif +0 -0
  38. data/fixtures/asset-host-app/source/images/blank1023.gif +0 -0
  39. data/fixtures/asset-host-app/source/images/blank1024.gif +0 -0
  40. data/fixtures/asset-host-app/source/images/blank103.gif +0 -0
  41. data/fixtures/asset-host-app/source/images/blank1030.gif +0 -0
  42. data/fixtures/asset-host-app/source/images/blank1031.gif +0 -0
  43. data/fixtures/asset-host-app/source/images/blank1032.gif +0 -0
  44. data/fixtures/asset-host-app/source/images/blank1033.gif +0 -0
  45. data/fixtures/asset-host-app/source/images/blank1034.gif +0 -0
  46. data/fixtures/asset-host-app/source/images/blank104.gif +0 -0
  47. data/fixtures/asset-host-app/source/images/blank1043.gif +0 -0
  48. data/fixtures/asset-host-app/source/images/blank1054.gif +0 -0
  49. data/fixtures/asset-host-app/source/images/blank2.gif +0 -0
  50. data/fixtures/asset-host-app/source/images/blank20.gif +0 -0
  51. data/fixtures/asset-host-app/source/images/blank21.gif +0 -0
  52. data/fixtures/asset-host-app/source/images/blank22.gif +0 -0
  53. data/fixtures/asset-host-app/source/images/blank23.gif +0 -0
  54. data/fixtures/asset-host-app/source/images/blank24.gif +0 -0
  55. data/fixtures/asset-host-app/source/images/blank3.gif +0 -0
  56. data/fixtures/asset-host-app/source/images/blank30.gif +0 -0
  57. data/fixtures/asset-host-app/source/images/blank31.gif +0 -0
  58. data/fixtures/asset-host-app/source/images/blank32.gif +0 -0
  59. data/fixtures/asset-host-app/source/images/blank33.gif +0 -0
  60. data/fixtures/asset-host-app/source/images/blank34.gif +0 -0
  61. data/fixtures/asset-host-app/source/images/blank4.gif +0 -0
  62. data/fixtures/asset-host-app/source/images/blank43.gif +0 -0
  63. data/fixtures/asset-host-app/source/images/blank54.gif +0 -0
  64. data/fixtures/auto-css-app/source/stylesheets/auto-css/index.css +0 -0
  65. data/fixtures/auto-js-directory-index-app/config.rb +0 -0
  66. data/fixtures/automatic-alt-tags-app/config.rb +0 -0
  67. data/fixtures/automatic-directory-matcher-app/source/root-plain.html +0 -0
  68. data/fixtures/automatic-directory-matcher-app/source/root.html.erb +0 -0
  69. data/fixtures/automatic-directory-matcher-app/source/sub--sub--sub-plain.html +0 -0
  70. data/fixtures/automatic-directory-matcher-app/source/sub--sub--sub.html.erb +0 -0
  71. data/fixtures/automatic-directory-matcher-app/source/sub--sub-plain.html +0 -0
  72. data/fixtures/automatic-directory-matcher-app/source/sub--sub.html.erb +0 -0
  73. data/fixtures/automatic-image-size-app/config.rb +0 -0
  74. data/fixtures/basic-data-app/data/test3.toml +7 -0
  75. data/fixtures/basic-data-app/source/data4.html.erb +5 -0
  76. data/fixtures/build-with-errors-app/source/index.html.erb +0 -0
  77. data/fixtures/cache-buster-app/config.rb +0 -0
  78. data/fixtures/chained-app/config.rb +0 -0
  79. data/fixtures/clean-app/config-empty.rb +0 -0
  80. data/fixtures/clean-app/source/real.html +0 -0
  81. data/fixtures/clean-app/source/should_be_ignored.html +0 -0
  82. data/fixtures/clean-app/source/should_be_ignored2.html +0 -0
  83. data/fixtures/clean-app/source/should_be_ignored3.html +0 -0
  84. data/fixtures/clean-dir-app/source/about.html +0 -0
  85. data/fixtures/clean-nested-app/config.rb +0 -0
  86. data/fixtures/clean-nested-app/source/about.html +0 -0
  87. data/fixtures/clean-nested-app/source/nested/nested.html +0 -0
  88. data/fixtures/coffeescript-app/config.rb +0 -0
  89. data/fixtures/content-type-app/source/.htaccess +0 -0
  90. data/fixtures/content-type-app/source/README +0 -0
  91. data/fixtures/content-type-app/source/javascripts/app.js +0 -0
  92. data/fixtures/content-type-app/source/stylesheets/site.css +0 -0
  93. data/fixtures/csspie/config.rb +0 -0
  94. data/fixtures/custom-layout-app2/config.rb +0 -0
  95. data/fixtures/custom-src-app/src/index.html +0 -0
  96. data/fixtures/default-alt-tags-app/config.rb +0 -0
  97. data/fixtures/default-alt-tags-app/source/images/blank.gif +0 -0
  98. data/fixtures/different-engine-layout/config.rb +0 -0
  99. data/fixtures/different-engine-partial/config.rb +0 -0
  100. data/fixtures/different-engine-partial/source/index.html.erb +0 -0
  101. data/fixtures/different-engine-partial/source/shared/_footer.str +0 -0
  102. data/fixtures/different-engine-partial/source/shared/_header.erb +0 -0
  103. data/fixtures/dynamic-pages-app/source/real.html +0 -0
  104. data/fixtures/dynamic-pages-app/source/should_be_ignored.html +0 -0
  105. data/fixtures/dynamic-pages-app/source/should_be_ignored2.html +0 -0
  106. data/fixtures/dynamic-pages-app/source/should_be_ignored3.html +0 -0
  107. data/fixtures/dynamic-pages-app/source/should_be_ignored4.html +0 -0
  108. data/fixtures/dynamic-pages-app/source/should_be_ignored5.html +0 -0
  109. data/fixtures/dynamic-pages-app/source/should_be_ignored6.html +0 -0
  110. data/fixtures/dynamic-pages-app/source/should_be_ignored7.html +0 -0
  111. data/fixtures/dynamic-pages-app/source/should_be_ignored8.html +0 -0
  112. data/fixtures/ember-cli-app/source/javascripts/file.js +0 -0
  113. data/fixtures/ember-cli-app/test-app/app/components/.gitkeep +0 -0
  114. data/fixtures/ember-cli-app/test-app/app/controllers/.gitkeep +0 -0
  115. data/fixtures/ember-cli-app/test-app/app/helpers/.gitkeep +0 -0
  116. data/fixtures/ember-cli-app/test-app/app/models/.gitkeep +0 -0
  117. data/fixtures/ember-cli-app/test-app/app/routes/.gitkeep +0 -0
  118. data/fixtures/ember-cli-app/test-app/app/styles/.gitkeep +0 -0
  119. data/fixtures/ember-cli-app/test-app/app/templates/.gitkeep +0 -0
  120. data/fixtures/ember-cli-app/test-app/app/templates/components/.gitkeep +0 -0
  121. data/fixtures/ember-cli-app/test-app/app/views/.gitkeep +0 -0
  122. data/fixtures/ember-cli-app/test-app/public/.gitkeep +0 -0
  123. data/fixtures/ember-cli-app/test-app/tests/unit/.gitkeep +0 -0
  124. data/fixtures/empty-app/not-config.rb +0 -0
  125. data/fixtures/engine-matching-layout/config.rb +0 -0
  126. data/fixtures/env-app/config.rb +0 -0
  127. data/fixtures/extensionless-text-files-app/config.rb +0 -0
  128. data/fixtures/extensionless-text-files-app/source/CNAME +0 -0
  129. data/fixtures/extensionless-text-files-app/source/LICENSE +0 -0
  130. data/fixtures/extensionless-text-files-app/source/README +0 -0
  131. data/fixtures/extensionless-text-files-app/source/index.html +0 -0
  132. data/fixtures/external-helpers/source/automatic.html.erb +0 -0
  133. data/fixtures/external-helpers/source/index.html.erb +0 -0
  134. data/fixtures/external-pipeline-error/source/javascripts/file.js +0 -0
  135. data/fixtures/fonts-app/config.rb +0 -0
  136. data/fixtures/fonts-app/source/fonts/blank/blank.otf +0 -0
  137. data/fixtures/frontmatter-app/source/raw-front-matter-toml.html +6 -0
  138. data/fixtures/frontmatter-app/source/raw-front-matter.html +1 -1
  139. data/fixtures/frontmatter-neighbor-app/source/raw-front-matter-toml.html +1 -0
  140. data/fixtures/frontmatter-neighbor-app/source/raw-front-matter-toml.html.frontmatter +4 -0
  141. data/fixtures/frontmatter-neighbor-app/source/raw-front-matter.php +0 -0
  142. data/fixtures/frontmatter-settings-app/source/layouts/override.erb +0 -0
  143. data/fixtures/frontmatter-settings-neighbor-app/source/layouts/override.erb +0 -0
  144. data/fixtures/frontmatter-settings-neighbor-app/source/override_layout.html.erb +0 -0
  145. data/fixtures/frontmatter-settings-neighbor-app/source/page_mentioned.html.erb +0 -0
  146. data/fixtures/gzip-app/source/index.html +0 -0
  147. data/fixtures/i18n-alt-root-app/source/lang_data/hello.html.erb +0 -0
  148. data/fixtures/i18n-alt-root-app/source/lang_data/index.html.erb +0 -0
  149. data/fixtures/i18n-alt-root-app/source/layout.erb +0 -0
  150. data/fixtures/i18n-test-app/data/defaults_en.yml +0 -0
  151. data/fixtures/i18n-test-app/data/defaults_es.yml +0 -0
  152. data/fixtures/i18n-test-app/data/en_defaults.yml +0 -0
  153. data/fixtures/i18n-test-app/source/_country.en.erb +0 -0
  154. data/fixtures/i18n-test-app/source/_country.es.erb +0 -0
  155. data/fixtures/i18n-test-app/source/_site.erb +0 -0
  156. data/fixtures/i18n-test-app/source/images/president.en.svg +0 -0
  157. data/fixtures/i18n-test-app/source/images/president.es.svg +0 -0
  158. data/fixtures/i18n-test-app/source/localizable/_state.en.erb +0 -0
  159. data/fixtures/i18n-test-app/source/localizable/_state.es.erb +0 -0
  160. data/fixtures/i18n-test-app/source/localizable/hello.html.erb +0 -0
  161. data/fixtures/i18n-test-app/source/localizable/images/flag.en.svg +0 -0
  162. data/fixtures/i18n-test-app/source/localizable/images/flag.es.svg +0 -0
  163. data/fixtures/i18n-test-app/source/localizable/index.html.erb +0 -0
  164. data/fixtures/i18n-test-app/source/localizable/partials/_greeting.en.erb +0 -0
  165. data/fixtures/i18n-test-app/source/localizable/partials/_greeting.es.erb +0 -0
  166. data/fixtures/ignore-app/source/about.html.erb +0 -0
  167. data/fixtures/ignore-app/source/images/icon/messages.png +0 -0
  168. data/fixtures/ignore-app/source/images/pic.png +0 -0
  169. data/fixtures/ignore-app/source/images/portrait.jpg +0 -0
  170. data/fixtures/ignore-app/source/index.html.erb +0 -0
  171. data/fixtures/ignore-app/source/plain.html +0 -0
  172. data/fixtures/ignore-app/source/reports/another.html +0 -0
  173. data/fixtures/ignore-app/source/reports/index.html +0 -0
  174. data/fixtures/import-app/bower_components/jquery/dist/jquery.min.map +0 -0
  175. data/fixtures/import-app/bower_components/jquery/src/sizzle/dist/sizzle.min.map +0 -0
  176. data/fixtures/import-app/source/test.html +0 -0
  177. data/fixtures/import-app/static.html +0 -0
  178. data/fixtures/indexable-app/source/.htaccess +0 -0
  179. data/fixtures/indexable-app/source/.htpasswd +0 -0
  180. data/fixtures/indexable-app/source/.nojekyll +0 -0
  181. data/fixtures/indexable-app/source/a_folder/needs_index.html +0 -0
  182. data/fixtures/indexable-app/source/leave_me_alone.html +0 -0
  183. data/fixtures/indexable-app/source/needs_index.html +0 -0
  184. data/fixtures/indexable-app/source/regular/index.html +0 -0
  185. data/fixtures/javascript-app/config.rb +0 -0
  186. data/fixtures/large-build-app/source/.htaccess +0 -0
  187. data/fixtures/large-build-app/source/.htpasswd +0 -0
  188. data/fixtures/large-build-app/source/other_layout.erb +0 -0
  189. data/fixtures/large-build-app/source/spaces in file.html.erb +0 -0
  190. data/fixtures/link-to-app/config.rb +0 -0
  191. data/fixtures/liquid-app/config.rb +0 -0
  192. data/fixtures/liquid-app/source/_liquid_partial.liquid +0 -0
  193. data/fixtures/liquid-app/source/liquid_master.html.liquid +0 -0
  194. data/fixtures/markdown-app/source/filter_html.html.markdown +0 -0
  195. data/fixtures/markdown-app/source/highlighted.html.markdown +0 -0
  196. data/fixtures/markdown-app/source/img.html.markdown +0 -0
  197. data/fixtures/markdown-app/source/link.html.markdown +0 -0
  198. data/fixtures/markdown-app/source/mailto.html.markdown +0 -0
  199. data/fixtures/markdown-app/source/quote.html.markdown +0 -0
  200. data/fixtures/markdown-app/source/safe_links.html.markdown +0 -0
  201. data/fixtures/markdown-app/source/underline.html.markdown +0 -0
  202. data/fixtures/markdown-in-haml-app/config.rb +0 -0
  203. data/fixtures/markdown-in-slim-app/config.rb +0 -0
  204. data/fixtures/minify-css-app/source/stylesheets/bourbon/css3/_selection.scss +0 -0
  205. data/fixtures/minify-css-app/source/stylesheets/report.css +0 -0
  206. data/fixtures/minify-js-app/config.rb +0 -0
  207. data/fixtures/missing-tilt-library-app/source/danger-zone/more-wiki.html.wiki +0 -0
  208. data/fixtures/missing-tilt-library-app/source/safe-zone/my-wiki.html.wiki +0 -0
  209. data/fixtures/missing-tilt-library-app/source/textile-source.html.textile +0 -0
  210. data/fixtures/missing-tilt-library-app/source/wiki-source.html.wiki +0 -0
  211. data/fixtures/more-extensionless-text-files-app/source/CNAME +0 -0
  212. data/fixtures/more-extensionless-text-files-app/source/LICENSE +0 -0
  213. data/fixtures/more-extensionless-text-files-app/source/README +0 -0
  214. data/fixtures/more-extensionless-text-files-app/source/index.html +0 -0
  215. data/fixtures/more-ignore-app/source/about.html.erb +0 -0
  216. data/fixtures/more-ignore-app/source/images/icon/messages.png +0 -0
  217. data/fixtures/more-ignore-app/source/images/pic.png +0 -0
  218. data/fixtures/more-ignore-app/source/images/portrait.jpg +0 -0
  219. data/fixtures/more-ignore-app/source/index.html.erb +0 -0
  220. data/fixtures/more-ignore-app/source/plain.html +0 -0
  221. data/fixtures/more-ignore-app/source/reports/another.html +0 -0
  222. data/fixtures/more-ignore-app/source/reports/index.html +0 -0
  223. data/fixtures/more-preview-app/config.rb +0 -0
  224. data/fixtures/more-preview-app/source/content.html.erb +0 -0
  225. data/fixtures/more-preview-app/source/layout.erb +0 -0
  226. data/fixtures/more-traversal-app/source/directory-indexed/sub2/index.html.erb +0 -0
  227. data/fixtures/more-traversal-app/source/directory-indexed/sub3/deep.html.erb +0 -0
  228. data/fixtures/more-traversal-app/source/directory-indexed.html.erb +0 -0
  229. data/fixtures/more-traversal-app/source/index.html.erb +0 -0
  230. data/fixtures/more-traversal-app/source/proxied.html.erb +0 -0
  231. data/fixtures/more-traversal-app/source/root.html.erb +0 -0
  232. data/fixtures/more-traversal-app/source/sub/index.html.erb +0 -0
  233. data/fixtures/more-traversal-app/source/sub/sibling.html.erb +0 -0
  234. data/fixtures/more-traversal-app/source/sub/sibling2.html.erb +0 -0
  235. data/fixtures/more-traversal-app/source/sub/sub2/index.html.erb +0 -0
  236. data/fixtures/more-traversal-app/source/sub/sub3/deep.html.erb +0 -0
  237. data/fixtures/multiple-data-sources-app/data/two.yml +0 -0
  238. data/fixtures/multiple-data-sources-app/data1/data1.yml +0 -0
  239. data/fixtures/multiple-data-sources-app/data2/data2.yml +0 -0
  240. data/fixtures/multiple-data-sources-app/data2/two.yml +0 -0
  241. data/fixtures/multiple-layouts/config.rb +0 -0
  242. data/fixtures/multiple-sources-app/source/index.html.erb +0 -0
  243. data/fixtures/multiple-sources-app/source/override-in-two.html.erb +0 -0
  244. data/fixtures/multiple-sources-app/source0/override-in-one.html.erb +0 -0
  245. data/fixtures/multiple-sources-app/source1/index1.html.erb +0 -0
  246. data/fixtures/multiple-sources-app/source1/override-in-one.html.erb +0 -0
  247. data/fixtures/multiple-sources-app/source2/index2.html.erb +0 -0
  248. data/fixtures/multiple-sources-app/source2/override-in-two.html.erb +0 -0
  249. data/fixtures/multiple-sources-with-duplicate-file-names-app/source/index.html.erb +0 -0
  250. data/fixtures/multiple-sources-with-duplicate-file-names-app/source2/index.html.erb +0 -0
  251. data/fixtures/nested-data-app/data/examples/deeper/stuff.yml +0 -0
  252. data/fixtures/nested-data-app/data/examples/more.yml +0 -0
  253. data/fixtures/no-layout/config.rb +0 -0
  254. data/fixtures/page-classes-app/source/1-folder/1-inside-with-numeric.html.erb +0 -0
  255. data/fixtures/page-classes-app/source/1-starts-with-numeric.html.erb +0 -0
  256. data/fixtures/page-classes-app/source/2-starts-with-numeric-custom.html.erb +0 -0
  257. data/fixtures/page-helper-layout-block-app/source/index.html.erb +0 -0
  258. data/fixtures/page-helper-layout-block-app/source/path/child.html.erb +0 -0
  259. data/fixtures/page-helper-layout-block-app/source/path/index.html.erb +0 -0
  260. data/fixtures/paginate-app/config.rb +0 -0
  261. data/fixtures/partial-chained_templates-app/config.rb +0 -0
  262. data/fixtures/partials-app/config.rb +0 -0
  263. data/fixtures/partials-app/source/_code_snippet.html +0 -0
  264. data/fixtures/partials-app/source/_locals.erb +0 -0
  265. data/fixtures/partials-app/source/_main.erb +0 -0
  266. data/fixtures/partials-app/source/_main.str +0 -0
  267. data/fixtures/partials-app/source/shared/_footer.erb +0 -0
  268. data/fixtures/partials-app/source/shared/_header.erb +0 -0
  269. data/fixtures/partials-app/source/shared/_snippet.html.erb +0 -0
  270. data/fixtures/partials-app/source/static_underscore.html.erb +0 -0
  271. data/fixtures/partials-app/source/sub/_local.erb +0 -0
  272. data/fixtures/partials-app/source/svg.html.erb +0 -0
  273. data/fixtures/passthrough-app/source/.htaccess +0 -0
  274. data/fixtures/preview-app/config.rb +0 -0
  275. data/fixtures/preview-app/source/content.html.erb +0 -0
  276. data/fixtures/preview-app/source/layout.erb +0 -0
  277. data/fixtures/proxy-pages-app/source/real.html +0 -0
  278. data/fixtures/proxy-pages-app/source/should_be_ignored3.html +0 -0
  279. data/fixtures/proxy-pages-app/source/should_be_ignored6.html +0 -0
  280. data/fixtures/proxy-pages-app/source/should_be_ignored7.html +0 -0
  281. data/fixtures/proxy-pages-app/source/should_be_ignored8.html +0 -0
  282. data/fixtures/related-files-app/config.rb +0 -0
  283. data/fixtures/related-files-app/source/index.html.erb +0 -0
  284. data/fixtures/related-files-app/source/partials/_test.erb +0 -0
  285. data/fixtures/related-files-app/source/partials/_test2.haml +0 -0
  286. data/fixtures/related-files-app/source/stylesheets/_include3.sass +0 -0
  287. data/fixtures/related-files-app/source/stylesheets/_include4.scss +0 -0
  288. data/fixtures/related-files-app/source/stylesheets/include1.css +0 -0
  289. data/fixtures/related-files-app/source/stylesheets/include2.css.scss +0 -0
  290. data/fixtures/related-files-app/source/stylesheets/site.css.scss +0 -0
  291. data/fixtures/relative-app/config.rb +0 -0
  292. data/fixtures/relative-assets-app/source/fonts/roboto/roboto-regular-webfont.eot +0 -0
  293. data/fixtures/relative-assets-app/source/fonts/roboto/roboto-regular-webfont.svg +0 -0
  294. data/fixtures/relative-assets-app/source/fonts/roboto/roboto-regular-webfont.ttf +0 -0
  295. data/fixtures/relative-assets-app/source/fonts/roboto/roboto-regular-webfont.woff +0 -0
  296. data/fixtures/relative-assets-app/source/images/blank2.gif +0 -0
  297. data/fixtures/sass-in-slim-app/config.rb +0 -0
  298. data/fixtures/scss-app/config.rb +0 -0
  299. data/fixtures/scss-app/source/stylesheets/error.css.sass +0 -0
  300. data/fixtures/strip-url-app/config.rb +0 -0
  301. data/fixtures/stylus-preview-app/config.rb +0 -0
  302. data/fixtures/traversal-app/source/.htaccess +0 -0
  303. data/fixtures/traversal-app/source/directory-indexed/sub2/index.html.erb +0 -0
  304. data/fixtures/traversal-app/source/directory-indexed/sub3/deep.html.erb +0 -0
  305. data/fixtures/traversal-app/source/directory-indexed.html.erb +0 -0
  306. data/fixtures/traversal-app/source/index.html.erb +0 -0
  307. data/fixtures/traversal-app/source/proxied.html.erb +0 -0
  308. data/fixtures/traversal-app/source/root.html.erb +0 -0
  309. data/fixtures/traversal-app/source/sub/index.html.erb +0 -0
  310. data/fixtures/traversal-app/source/sub/sibling.html.erb +0 -0
  311. data/fixtures/traversal-app/source/sub/sibling2.html.erb +0 -0
  312. data/fixtures/traversal-app/source/sub/sub2/index.html.erb +0 -0
  313. data/fixtures/traversal-app/source/sub/sub3/deep.html.erb +0 -0
  314. data/fixtures/wildcard-app/source/admin/index.html.erb +0 -0
  315. data/fixtures/wildcard-app/source/admin/page.html.erb +0 -0
  316. data/fixtures/wildcard-app/source/index.html.erb +0 -0
  317. data/fixtures/wildcard-directory-index-app/source/admin/index.html.erb +0 -0
  318. data/fixtures/wildcard-directory-index-app/source/admin/page.html.erb +0 -0
  319. data/fixtures/wildcard-directory-index-app/source/index.html.erb +0 -0
  320. data/lib/middleman-core/builder.rb +1 -1
  321. data/lib/middleman-core/core_extensions/data.rb +4 -2
  322. data/lib/middleman-core/core_extensions/default_helpers.rb +1 -0
  323. data/lib/middleman-core/core_extensions/front_matter.rb +1 -0
  324. data/lib/middleman-core/core_extensions/rendering.rb +0 -6
  325. data/lib/middleman-core/dns_resolver/basic_network_resolver.rb +0 -2
  326. data/lib/middleman-core/dns_resolver.rb +2 -4
  327. data/lib/middleman-core/extensions/asset_hash.rb +1 -1
  328. data/lib/middleman-core/meta_pages/assets/glyphicons-halflings.png +0 -0
  329. data/lib/middleman-core/meta_pages/assets/sitemap.js +0 -0
  330. data/lib/middleman-core/preview_server/server_ip_address.rb +5 -14
  331. data/lib/middleman-core/rack.rb +2 -1
  332. data/lib/middleman-core/sitemap/extensions/traversal.rb +2 -1
  333. data/lib/middleman-core/step_definitions/commandline_steps.rb +0 -4
  334. data/lib/middleman-core/step_definitions/middleman_steps.rb +1 -1
  335. data/lib/middleman-core/step_definitions/server_steps.rb +3 -2
  336. data/lib/middleman-core/template_context.rb +3 -3
  337. data/lib/middleman-core/template_renderer.rb +1 -1
  338. data/lib/middleman-core/util/data.rb +28 -0
  339. data/lib/middleman-core/util/paths.rb +2 -1
  340. data/lib/middleman-core/version.rb +1 -1
  341. data/middleman-core.gemspec +8 -6
  342. data/spec/middleman-core/binary_spec/middleman +0 -0
  343. data/spec/middleman-core/binary_spec/middleman.png +0 -0
  344. data/spec/middleman-core/binary_spec/stars.svgz +0 -0
  345. data/spec/middleman-core/dns_resolver_spec.rb +8 -24
  346. data/spec/spec_helper.rb +0 -3
  347. metadata +52 -1083
  348. data/features/stylus.feature +0 -54
  349. data/lib/middleman-core/renderers/stylus.rb +0 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a62bb451348c77bfb582a6fd7a97f8913c30e1602e256bb307672e022bfcc314
4
- data.tar.gz: 83fe52a59f84380ad4eb754d00c79754eeb546ed3f15fa15f47603d0740e72b5
3
+ metadata.gz: 13aa21c1035525447cfbccc018a28fc08b230dc5014e8403a4f6bf3a1fb20c79
4
+ data.tar.gz: 28e8922409bddf4309a5b0b98afd5d778420d95c390344fc149448771e495b73
5
5
  SHA512:
6
- metadata.gz: 33de280861e5d60ef103a6abb8fd1602dc7c36899dc08731a63975049c96961c5e0e8bda083b14a40d1638f08c614dcd903799d15ffa550a39d3e276287f74ae
7
- data.tar.gz: 5e42f113d14f5dcd70276bfb548ed6c2f8d38ce889e1fbd4f35f6407d906827b46132e156c152f80c77de4b93afc8df65f6f381c4292fd569d0922145cc50c8e
6
+ metadata.gz: be9c030e750a5db77379753eeb71a432d27ee3b03c7f8530dad5e01de61cf3b67f395b28212773ea651417a51bd04535055525c532ee53160f292cab19a18e85
7
+ data.tar.gz: 8e4d535a621ce5e874935d5ba65c608a7f2f5b9016d586496643be679a08f74fb93b7ea749dcfe0ac02216247379c69d8e1c60cfd6a1dd63fb8380183cd0d5c3
data/.gemtest CHANGED
File without changes
@@ -3,27 +3,27 @@ Feature: Assets get file hashes appended to them and references to them are upda
3
3
  Given a successfully built app at "asset-hash-app"
4
4
  When I cd to "build"
5
5
  Then the following files should exist:
6
- | index.html |
7
- | apple-touch-icon.png |
8
- | favicon.ico |
9
- | images/100px-1242c368.png |
10
- | images/100px-5fd6fb90.jpg |
11
- | images/200px-c11eb203.jpg |
12
- | images/300px-59adce76.jpg |
13
- | images/100px-5fd6fb90.gif |
6
+ | index.html |
7
+ | apple-touch-icon.png |
8
+ | favicon.ico |
9
+ | images/100px-1242c368.png |
10
+ | images/100px-5fd6fb90.jpg |
11
+ | images/200px-c11eb203.jpg |
12
+ | images/300px-59adce76.jpg |
13
+ | images/100px-5fd6fb90.gif |
14
14
  | javascripts/application-1d8d5276.js |
15
- | stylesheets/site-8bc55985.css |
16
- | index.html |
17
- | subdir/index.html |
18
- | other/index.html |
19
- | api.json |
20
- | subdir/api.json |
15
+ | stylesheets/site-8bc55985.css |
16
+ | index.html |
17
+ | subdir/index.html |
18
+ | other/index.html |
19
+ | api.json |
20
+ | subdir/api.json |
21
21
  And the following files should not exist:
22
- | images/100px.png |
23
- | images/100px.jpg |
24
- | images/100px.gif |
22
+ | images/100px.png |
23
+ | images/100px.jpg |
24
+ | images/100px.gif |
25
25
  | javascripts/application.js |
26
- | stylesheets/site.css |
26
+ | stylesheets/site.css |
27
27
 
28
28
  And the file "javascripts/application-1d8d5276.js" should contain "img.src = '/images/100px-5fd6fb90.jpg'"
29
29
  And the file "stylesheets/site-8bc55985.css" should contain:
@@ -54,7 +54,7 @@ Feature: Assets get file hashes appended to them and references to them are upda
54
54
  Given a successfully built app at "asset-hash-app"
55
55
  When I cd to "build"
56
56
  Then the following files should exist:
57
- | fonts/fontawesome-webfont-56ce13e7.woff |
57
+ | fonts/fontawesome-webfont-56ce13e7.woff |
58
58
  | fonts/fontawesome-webfont-10752316.woff2 |
59
59
  And the file "stylesheets/uses_fonts-88aa3e2b.css" should contain "src: url('../fonts/fontawesome-webfont-10752316.woff2')"
60
60
  And the file "stylesheets/uses_fonts-88aa3e2b.css" should contain "url('../fonts/fontawesome-webfont-56ce13e7.woff')"
@@ -171,23 +171,25 @@ Feature: Assets get file hashes appended to them and references to them are upda
171
171
  And I should see 'url("http://middlemanapp.com/images/100px-5fd6fb90.jpg?#test")'
172
172
  And I should see 'url("http://middlemanapp.com/images/100px-5fd6fb90.jpg#test")'
173
173
 
174
+ @wip
174
175
  Scenario: The asset hash should change when a SASS partial changes
175
176
  Given the Server is running at "asset-hash-app"
176
177
  And the file "source/stylesheets/_partial.sass" has the contents
177
178
  """
178
179
  body
179
- font-size: 14px
180
+ font-size: 14px
180
181
  """
181
182
  When I go to "/partials/"
182
183
  Then I should see 'href="../stylesheets/uses_partials-a3c8302b.css'
183
184
  And the file "source/stylesheets/_partial.sass" has the contents
184
185
  """
185
186
  body
186
- font-size: 18px !important
187
+ font-size: 18px !important
187
188
  """
188
189
  When I go to "/partials/"
189
190
  Then I should see 'href="../stylesheets/uses_partials-08ee47a7.css'
190
191
 
192
+ @wip
191
193
  Scenario: The asset hash should change when a Rack-based filter changes
192
194
  Given a fixture app "asset-hash-app"
193
195
  And a file named "config.rb" with:
@@ -211,9 +213,9 @@ Feature: Assets get file hashes appended to them and references to them are upda
211
213
  """
212
214
  is_stylesheet = proc { |path| path.start_with? 'stylesheets' }
213
215
  activate :asset_hash, ignore: [
214
- %r(javascripts/*),
215
- 'images/*',
216
- is_stylesheet
216
+ %r(javascripts/*),
217
+ 'images/*',
218
+ is_stylesheet
217
219
  ]
218
220
  activate :relative_assets
219
221
  activate :directory_indexes
@@ -221,25 +223,25 @@ Feature: Assets get file hashes appended to them and references to them are upda
221
223
  And a successfully built app at "asset-hash-app"
222
224
  When I cd to "build"
223
225
  Then the following files should exist:
224
- | index.html |
225
- | apple-touch-icon.png |
226
- | favicon.ico |
227
- | images/100px.png |
228
- | images/100px.jpg |
229
- | images/100px.gif |
226
+ | index.html |
227
+ | apple-touch-icon.png |
228
+ | favicon.ico |
229
+ | images/100px.png |
230
+ | images/100px.jpg |
231
+ | images/100px.gif |
230
232
  | javascripts/application.js |
231
- | stylesheets/site.css |
232
- | index.html |
233
- | subdir/index.html |
234
- | other/index.html |
235
- | api.json |
236
- | subdir/api.json |
233
+ | stylesheets/site.css |
234
+ | index.html |
235
+ | subdir/index.html |
236
+ | other/index.html |
237
+ | api.json |
238
+ | subdir/api.json |
237
239
  And the following files should not exist:
238
- | images/100px-1242c368.png |
239
- | images/100px-5fd6fb90.jpg |
240
- | images/100px-5fd6fb90.gif |
240
+ | images/100px-1242c368.png |
241
+ | images/100px-5fd6fb90.jpg |
242
+ | images/100px-5fd6fb90.gif |
241
243
  | javascripts/application-1d8d5276.js |
242
- | stylesheets/site-7474cadd.css |
244
+ | stylesheets/site-7474cadd.css |
243
245
 
244
246
  Scenario: Hashed-asset files are not replaced for rewrite ignored paths
245
247
  Given a fixture app "asset-hash-app"
@@ -247,9 +249,9 @@ Feature: Assets get file hashes appended to them and references to them are upda
247
249
  """
248
250
  is_stylesheet = proc { |path| path.start_with? '/stylesheets' }
249
251
  activate :asset_hash, rewrite_ignore: [
250
- %r(javascripts/*),
251
- '/subdir/*',
252
- is_stylesheet
252
+ %r(javascripts/*),
253
+ '/subdir/*',
254
+ is_stylesheet
253
255
  ]
254
256
  activate :relative_assets
255
257
  activate :directory_indexes
@@ -257,15 +259,15 @@ Feature: Assets get file hashes appended to them and references to them are upda
257
259
  And a successfully built app at "asset-hash-app"
258
260
  When I cd to "build"
259
261
  Then the following files should exist:
260
- | index.html |
261
- | subdir/index.html |
262
- | images/100px-5fd6fb90.jpg |
262
+ | index.html |
263
+ | subdir/index.html |
264
+ | images/100px-5fd6fb90.jpg |
263
265
  | javascripts/application-1d8d5276.js |
264
- | stylesheets/site-8bc55985.css |
266
+ | stylesheets/site-8bc55985.css |
265
267
  And the following files should not exist:
266
- | images/100px.jpg |
268
+ | images/100px.jpg |
267
269
  | javascripts/application.js |
268
- | stylesheets/site.css |
270
+ | stylesheets/site.css |
269
271
  And the file "javascripts/application-1d8d5276.js" should contain "img.src = '/images/100px.jpg'"
270
272
  And the file "stylesheets/site-8bc55985.css" should contain:
271
273
  """
@@ -285,7 +287,7 @@ Feature: Assets get file hashes appended to them and references to them are upda
285
287
  When I cd to "build"
286
288
  Then the following files should exist:
287
289
  | javascripts/jquery.min-276c87ff.js |
288
- | stylesheets/test-7de2ad06.css |
290
+ | stylesheets/test-7de2ad06.css |
289
291
  And the following files should not exist:
290
292
  | javascripts/jquery.min.js |
291
293
  And the file "stylesheets/test-7de2ad06.css" should contain:
@@ -299,12 +301,12 @@ Feature: Assets get file hashes appended to them and references to them are upda
299
301
  Given a successfully built app at "asset-hash-source-map"
300
302
  When I cd to "build"
301
303
  Then the following files should exist:
302
- | index.html |
303
- | javascripts/application-4553338c.js |
304
+ | index.html |
305
+ | javascripts/application-4553338c.js |
304
306
  | javascripts/application.js-22cc2b5f.map |
305
- | index.html |
307
+ | index.html |
306
308
  And the following files should not exist:
307
- | javascripts/application.js |
309
+ | javascripts/application.js |
308
310
  | javascripts/application.js.map |
309
311
 
310
312
  And the file "javascripts/application-4553338c.js" should contain "//# sourceMappingURL=application.js-22cc2b5f.map"
@@ -313,12 +315,12 @@ Feature: Assets get file hashes appended to them and references to them are upda
313
315
  Given a successfully built app at "asset-hash-prefix"
314
316
  When I cd to "build"
315
317
  Then the following files should exist:
316
- | index.html |
317
- | javascripts/application-myprefix-4553338c.js |
318
+ | index.html |
319
+ | javascripts/application-myprefix-4553338c.js |
318
320
  | javascripts/application.js-myprefix-22cc2b5f.map |
319
- | index.html |
321
+ | index.html |
320
322
  And the following files should not exist:
321
- | javascripts/application.js |
323
+ | javascripts/application.js |
322
324
  | javascripts/application.js.map |
323
325
 
324
326
  And the file "javascripts/application-myprefix-4553338c.js" should contain "//# sourceMappingURL=application.js-myprefix-22cc2b5f.map"
@@ -327,12 +329,12 @@ Feature: Assets get file hashes appended to them and references to them are upda
327
329
  Given a successfully built app at "asset-hash-remove-filename"
328
330
  When I cd to "build"
329
331
  Then the following files should exist:
330
- | index.html |
331
- | javascripts/4553338c.js |
332
+ | index.html |
333
+ | javascripts/4553338c.js |
332
334
  | javascripts/22cc2b5f.map |
333
- | index.html |
335
+ | index.html |
334
336
  And the following files should not exist:
335
- | javascripts/application.js |
337
+ | javascripts/application.js |
336
338
  | javascripts/application.js.map |
337
339
 
338
340
  And the file "javascripts/4553338c.js" should contain "//# sourceMappingURL=22cc2b5f.map"
@@ -89,3 +89,23 @@ Feature: Local Data API
89
89
  Then I should see "<h1>With Content</h1>"
90
90
  Then I should see '<h2 id="header-2">Header 2</h2>'
91
91
  Then I should see "<p>Paragraph 1</p>"
92
+
93
+ Scenario: Rendering toml
94
+ Given the Server is running at "basic-data-app"
95
+ When I go to "/data4.html"
96
+ Then I should see "One:Two"
97
+ When the file "data/test3.toml" has the contents
98
+ """
99
+ [titles]
100
+
101
+ [titles.first]
102
+ title = "Three"
103
+
104
+ [titles.second]
105
+ title = "Four"
106
+ """
107
+ When I go to "/data4.html"
108
+ Then I should see "Three:Four"
109
+ When the file "data/test3.toml" is removed
110
+ When I go to "/data4.html"
111
+ Then I should see "No Test Data"
@@ -23,6 +23,12 @@ Feature: Neighboring YAML Front Matter
23
23
  When I go to "/raw-front-matter.php.frontmatter"
24
24
  Then I should see "File Not Found"
25
25
 
26
+ Scenario: Rendering raw (template-less) (toml)
27
+ Given the Server is running at "frontmatter-neighbor-app"
28
+ When I go to "/raw-front-matter-toml.html"
29
+ Then I should see "<h1><%= current_page.data.title %></h1>"
30
+ Then I should not see "---"
31
+
26
32
  Scenario: YAML not on first line, with encoding
27
33
  Given the Server is running at "frontmatter-neighbor-app"
28
34
  When I go to "/front-matter-encoding.html"
@@ -65,10 +71,10 @@ Feature: Neighboring YAML Front Matter
65
71
  Scenario: A template should handle an empty YAML feed
66
72
  Given the Server is running at "frontmatter-neighbor-app"
67
73
  And the file "source/front-matter-change.html.erb.frontmatter" has the contents
68
- """
69
- ---
70
- ---
71
- """
74
+ """
75
+ ---
76
+ ---
77
+ """
72
78
  When I go to "/front-matter-change.html"
73
79
  Then I should not see "Hello World"
74
80
  Then I should not see "Hola Mundo"
@@ -78,14 +84,14 @@ Feature: Neighboring YAML Front Matter
78
84
  Scenario: Setting layout, ignoring, and disabling directory indexes through frontmatter (build)
79
85
  Given a successfully built app at "frontmatter-settings-neighbor-app"
80
86
  Then the following files should exist:
81
- | build/proxied.html |
87
+ | build/proxied.html |
82
88
  And the file "build/alternate_layout.html" should contain "Alternate layout"
83
89
  And the following files should not exist:
84
- | build/ignored.html |
85
- | build/alternate_layout.html.erb.frontmatter |
86
- | build/ignored.html.erb.frontmatter |
90
+ | build/ignored.html |
91
+ | build/alternate_layout.html.erb.frontmatter |
92
+ | build/ignored.html.erb.frontmatter |
87
93
  | build/override_layout.html.erb.frontmatter |
88
- | build/page_mentioned.html.erb.frontmatter |
94
+ | build/page_mentioned.html.erb.frontmatter |
89
95
 
90
96
  Scenario: Setting layout, ignoring, and disabling directory indexes through frontmatter (preview)
91
97
  Given the Server is running at "frontmatter-settings-neighbor-app"
@@ -130,22 +136,22 @@ Feature: Neighboring YAML Front Matter
130
136
  When I go to "/page_mentioned.html.erb.frontmatter"
131
137
  Then I should see "File Not Found"
132
138
 
133
- # Scenario: Neighbor frontmatter for destination of proxy resources
134
- # Given the Server is running at "frontmatter-settings-neighbor-app"
135
- # And the file "source/proxied_with_frontmatter.html.frontmatter" has the contents
136
- # """
137
- # ---
138
- # title: Proxied title
139
- # ---
140
- # """
141
- # And the file "source/ignored.html.erb" has the contents
142
- # """
143
- # ---
144
- # ignored: true
145
- # ---
139
+ # Scenario: Neighbor frontmatter for destination of proxy resources
140
+ # Given the Server is running at "frontmatter-settings-neighbor-app"
141
+ # And the file "source/proxied_with_frontmatter.html.frontmatter" has the contents
142
+ # """
143
+ # ---
144
+ # title: Proxied title
145
+ # ---
146
+ # """
147
+ # And the file "source/ignored.html.erb" has the contents
148
+ # """
149
+ # ---
150
+ # ignored: true
151
+ # ---
146
152
 
147
- # <%= current_resource.data.inspect %>
148
- # <%= current_resource.data.title %>
149
- # """
150
- # When I go to "/proxied_with_frontmatter.html"
151
- # Then I should see "Proxied title"
153
+ # <%= current_resource.data.inspect %>
154
+ # <%= current_resource.data.title %>
155
+ # """
156
+ # When I go to "/proxied_with_frontmatter.html"
157
+ # Then I should see "Proxied title"
@@ -72,10 +72,16 @@ Feature: YAML Front Matter
72
72
  Scenario: A template should handle an empty YAML feed
73
73
  Given the Server is running at "frontmatter-app"
74
74
  And the file "source/front-matter-change.html.erb" has the contents
75
- """
76
- ---
77
- ---
78
- Hello World
79
- """
75
+ """
76
+ ---
77
+ ---
78
+ Hello World
79
+ """
80
80
  When I go to "/front-matter-change.html"
81
81
  Then I should see "Hello World"
82
+
83
+ Scenario: Rendering raw (template-less) (toml)
84
+ Given the Server is running at "frontmatter-app"
85
+ When I go to "/raw-front-matter-toml.html"
86
+ Then I should see "<h1><%= current_page.data.title %></h1>"
87
+ Then I should not see "---"