middleman 3.0.0.alpha.3 → 3.0.0.alpha.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. data/.gitignore +1 -2
  2. data/.yardopts +2 -0
  3. data/CHANGELOG.md +97 -0
  4. data/README.md +84 -13
  5. data/Rakefile +6 -2
  6. data/bin/middleman +5 -4
  7. data/features/builder.feature +7 -0
  8. data/features/clean_build.feature +11 -0
  9. data/features/current_page_request_path_backwards.feature +6 -0
  10. data/features/front-matter.feature +28 -1
  11. data/features/generator.feature +4 -4
  12. data/features/helpers_external.feature +6 -0
  13. data/features/helpers_lorem.feature +5 -0
  14. data/features/instance_vars.feature +20 -0
  15. data/features/markdown.feature +23 -3
  16. data/features/minify_css.feature +6 -1
  17. data/features/minify_javascript.feature +33 -1
  18. data/features/mount_rack.feature +8 -0
  19. data/features/partials.feature +7 -1
  20. data/features/preview_changes.feature +18 -0
  21. data/features/wildcard_page_helper.feature +19 -0
  22. data/fixtures/build-with-errors-app/config.rb +1 -0
  23. data/fixtures/build-with-errors-app/source/index.html.erb +1 -0
  24. data/fixtures/clean-app/source/index.html.haml +1 -6
  25. data/fixtures/clean-dir-app/config.rb +2 -0
  26. data/fixtures/clean-dir-app/source/about.html +1 -0
  27. data/fixtures/different-engine-partial/config.rb +0 -0
  28. data/fixtures/different-engine-partial/source/index.html.erb +1 -0
  29. data/fixtures/different-engine-partial/source/layouts/layout.erb +7 -0
  30. data/fixtures/different-engine-partial/source/shared/_footer.slim +1 -0
  31. data/fixtures/different-engine-partial/source/shared/_header.erb +1 -0
  32. data/fixtures/external-helpers/config.rb +4 -0
  33. data/fixtures/external-helpers/lib/hello_helper.rb +5 -0
  34. data/fixtures/external-helpers/source/index.html.erb +1 -0
  35. data/fixtures/instance-vars-app/config.rb +0 -0
  36. data/fixtures/instance-vars-app/source/_vartial.erb +5 -0
  37. data/fixtures/instance-vars-app/source/instance-var-set.html.erb +2 -0
  38. data/fixtures/instance-vars-app/source/layout.erb +3 -0
  39. data/fixtures/instance-vars-app/source/no-instance-var.html.erb +1 -0
  40. data/fixtures/markdown-app/config.rb +9 -0
  41. data/fixtures/markdown-app/source/autolink.html.markdown +5 -0
  42. data/fixtures/markdown-app/source/fenced_code_blocks.html.markdown +7 -0
  43. data/fixtures/markdown-app/source/index.html.markdown +4 -0
  44. data/fixtures/markdown-app/source/no_intra_emphasis.html.markdown +5 -0
  45. data/fixtures/markdown-app/source/smarty_pants.html.markdown +5 -0
  46. data/fixtures/markdown-app/source/space_after_headers.html.markdown +5 -0
  47. data/fixtures/markdown-app/source/strikethrough.html.markdown +5 -0
  48. data/fixtures/markdown-app/source/superscript.html.markdown +5 -0
  49. data/fixtures/markdown-app/source/tables.html.markdown +8 -0
  50. data/fixtures/passthrough-app/config.rb +17 -0
  51. data/fixtures/passthrough-app/source/.htaccess +1 -0
  52. data/fixtures/passthrough-app/source/inline-coffeescript.html.haml +3 -0
  53. data/fixtures/passthrough-app/source/inline-css.html.haml +4 -0
  54. data/fixtures/passthrough-app/source/inline-js.html.haml +7 -0
  55. data/fixtures/passthrough-app/source/javascripts/coffee_test.js.coffee +3 -0
  56. data/fixtures/passthrough-app/source/javascripts/js_test.js +8 -0
  57. data/fixtures/passthrough-app/source/stylesheets/site.css.sass +1 -0
  58. data/fixtures/preview-app/config.rb +0 -0
  59. data/fixtures/preview-app/source/content.html.erb +1 -0
  60. data/fixtures/preview-app/source/layout.erb +1 -0
  61. data/fixtures/sinatra-app/config.rb +11 -0
  62. data/fixtures/sinatra-app/source/index.html.erb +5 -0
  63. data/fixtures/test-app/config.rb +2 -2
  64. data/fixtures/test-app/source/front-matter-2.php.erb +7 -0
  65. data/fixtures/test-app/source/front-matter-change.html.erb +5 -0
  66. data/fixtures/test-app/source/index.html.slim +9 -0
  67. data/fixtures/test-app/source/javascripts/js_test.js +8 -0
  68. data/fixtures/test-app/source/lorem.html.erb +12 -0
  69. data/fixtures/test-app/source/request-path.html.erb +1 -0
  70. data/fixtures/wildcard-app/config.rb +1 -0
  71. data/fixtures/wildcard-app/source/admin/index.html.erb +1 -0
  72. data/fixtures/wildcard-app/source/admin/page.html.erb +1 -0
  73. data/fixtures/wildcard-app/source/index.html.erb +1 -0
  74. data/fixtures/wildcard-app/source/layouts/admin.erb +2 -0
  75. data/fixtures/wildcard-app/source/layouts/layout.erb +2 -0
  76. data/fixtures/wildcard-directory-index-app/config.rb +2 -0
  77. data/fixtures/wildcard-directory-index-app/source/admin/index.html.erb +1 -0
  78. data/fixtures/wildcard-directory-index-app/source/admin/page.html.erb +1 -0
  79. data/fixtures/wildcard-directory-index-app/source/index.html.erb +1 -0
  80. data/fixtures/wildcard-directory-index-app/source/layouts/admin.erb +2 -0
  81. data/fixtures/wildcard-directory-index-app/source/layouts/layout.erb +2 -0
  82. data/lib/middleman.rb +63 -8
  83. data/lib/middleman/base.rb +56 -12
  84. data/lib/middleman/builder.rb +18 -12
  85. data/lib/middleman/cli.rb +5 -5
  86. data/lib/middleman/core_extensions/assets.rb +12 -0
  87. data/lib/middleman/core_extensions/builder.rb +4 -4
  88. data/lib/middleman/core_extensions/extensions.rb +5 -51
  89. data/lib/middleman/core_extensions/front_matter.rb +30 -11
  90. data/lib/middleman/core_extensions/rendering.rb +18 -12
  91. data/lib/middleman/core_extensions/routing.rb +12 -0
  92. data/lib/middleman/core_extensions/show_exceptions.rb +16 -0
  93. data/lib/middleman/core_extensions/sitemap.rb +10 -4
  94. data/lib/middleman/extensions/minify_css.rb +4 -2
  95. data/lib/middleman/extensions/minify_javascript.rb +8 -6
  96. data/lib/middleman/guard.rb +80 -76
  97. data/lib/middleman/renderers/markdown.rb +8 -13
  98. data/lib/middleman/sitemap/page.rb +3 -2
  99. data/lib/middleman/sitemap/store.rb +3 -1
  100. data/lib/middleman/sitemap/template.rb +19 -5
  101. data/lib/middleman/step_definitions.rb +1 -0
  102. data/lib/middleman/step_definitions/builder_steps.rb +6 -1
  103. data/lib/middleman/step_definitions/generator_steps.rb +9 -13
  104. data/lib/middleman/step_definitions/middleman_steps.rb +13 -0
  105. data/lib/middleman/step_definitions/server_steps.rb +7 -0
  106. data/lib/middleman/templates.rb +42 -21
  107. data/lib/middleman/templates/default.rb +5 -0
  108. data/lib/middleman/templates/html5.rb +6 -0
  109. data/lib/middleman/templates/local.rb +5 -6
  110. data/lib/middleman/templates/mobile.rb +6 -0
  111. data/lib/middleman/version.rb +1 -1
  112. data/middleman-x86-mingw32.gemspec +1 -1
  113. data/middleman.gemspec +3 -2
  114. metadata +531 -242
  115. data/CHANGELOG +0 -98
  116. data/fixtures/test-app/source/index.html.haml +0 -9
  117. data/fixtures/test-app/source/markdown.html.markdown +0 -1
data/CHANGELOG DELETED
@@ -1,98 +0,0 @@
1
- 3.0.pre
2
- ====
3
- Rewritten to work directly with Rack (Sinatra apps can still be mounted)
4
- Sitemap maintains own state
5
- New Extension Registration API
6
- Remove old 1.x mm- binaries and messaging
7
- New default layout functionality: https://github.com/tdreyno/middleman/issues/165
8
- Enable chained templates outside of sprockets (file.html.markdown.erb)
9
-
10
- 2.1.pre
11
- ====
12
- Finally support Compass in Sprockets! Thanks to @xdite and @petebrowne
13
- Sitemap object representing the known world
14
- FileWatcher proxies file change events
15
- Unified callback solution
16
- Removed Slim and Maruku from base install. Will need to be installed and required by the user (in config.rb)
17
-
18
- 2.0.14
19
- ====
20
- Minor fix for i18n
21
-
22
- 2.0.13.2
23
- ====
24
- Update Windows eventmachine dep
25
-
26
- 2.0.13.1
27
- ====
28
- build --clean shouldn't remove dotfiles
29
-
30
- 2.0.13
31
- ====
32
- middleman build --clean keeps the build directory clean of leftover files
33
- Padrino 0.10.5 and Rack 1.3.5
34
-
35
- 2.0.12
36
- ====
37
- Sinatra 1.3.1 and Padrino 0.10.4
38
-
39
- 2.0.11
40
- =====
41
- - Lock Padrino and Sinatra versions (for now)
42
-
43
- 2.0.9
44
- =====
45
- - Added --glob option to build which only builds matching files
46
- - Allow data/ files to be in JSON format as well
47
- - Enabled Liquid {% include %} tag
48
- - RubyInstaller-specific gem
49
- - Allow access to data/ in config.rb
50
- - Add mobile html5boilerplate template
51
-
52
- 2.0.8
53
- =====
54
- - Support accessing variables and data objects in ERb Sprockets files (library.js.coffee.erb)
55
- - Make :markdown_engine support simple symbol names (:maruku instead of ::Tilt::MarkukuTemplate)
56
- - Update Padrino deps to 0.10.2
57
- - Include therubyracer on *nix
58
- - Enable frontmatter for Liquid templates
59
-
60
- 2.0.7
61
- =====
62
- - Updated HTML5 Boilerplate to v2
63
- - Make Rails 3.1 javascript gems available to Sprockets
64
-
65
- 2.0.6
66
- =====
67
- - Pulled out livereload feature into its own extension, still installed by default.
68
-
69
- 2.0.5
70
- =====
71
- - Vendored Padrino 0.10.0
72
-
73
- 2.0.4
74
- =====
75
- - Pulled out undocumented remote data feature into its own extension
76
-
77
- 2.0.3
78
- =====
79
- - Pulled out undocumented Blog feature into its own extension
80
-
81
- 2.0.2
82
- =====
83
- - Fixed Sprockets circular error
84
- - Added auto-requiring extensions
85
-
86
- 2.0.0
87
- =====
88
- - Guard-powered auto-reloading of config.rb
89
- - Guard LiveReload
90
- - Sprockets JS
91
- - Refactored Dynamically Reloadable Core
92
- - Combine views/ and public/ into a single source/ folder.
93
- - Support YAML front-matter
94
- - Added callback to run code after Compass is configured
95
- - Added support for a compass.config file which is passed directly to Compass
96
- - Blog-aware Feature (and project template)
97
- - Thor-based, unified `middleman` binary
98
- - :directory_indexes feature
@@ -1,9 +0,0 @@
1
- %h1 Welcome
2
-
3
- = image_tag "Chrome_Logo.svg"
4
- = image_tag "cfb_tomb-perennial-energy.svgz"
5
-
6
- :markdown
7
- ## H2
8
-
9
- Paragraph
@@ -1 +0,0 @@
1
- Hello World