middleman 0.9.0.pre → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. data/.document +0 -0
  2. data/.gitignore +2 -3
  3. data/LICENSE +0 -0
  4. data/README.rdoc +0 -4
  5. data/Rakefile +36 -26
  6. data/VERSION +1 -1
  7. data/bin/mm-build +54 -3
  8. data/bin/mm-init +8 -11
  9. data/bin/mm-server +4 -56
  10. data/deps.rip +7 -0
  11. data/lib/middleman.rb +1 -5
  12. data/lib/middleman/base.rb +98 -120
  13. data/lib/middleman/builder.rb +8 -55
  14. data/lib/middleman/features/cache_buster.rb +7 -41
  15. data/lib/middleman/features/compass.rb +28 -0
  16. data/lib/middleman/features/content_for.rb +9 -0
  17. data/lib/middleman/features/growl.rb +2 -0
  18. data/lib/middleman/features/haml.rb +128 -0
  19. data/lib/middleman/features/markaby.rb +43 -0
  20. data/lib/middleman/features/maruku.rb +42 -0
  21. data/lib/middleman/features/minify_css.rb +2 -9
  22. data/lib/middleman/features/minify_javascript.rb +24 -13
  23. data/lib/middleman/features/relative_assets.rb +14 -21
  24. data/lib/middleman/features/slickmap.rb +4 -117
  25. data/lib/middleman/features/sprockets+ruby19.rb +29 -0
  26. data/lib/middleman/features/sprockets.rb +29 -0
  27. data/lib/middleman/helpers.rb +47 -0
  28. data/lib/middleman/template/init.rb +22 -0
  29. data/lib/middleman/template/views/index.haml +1 -0
  30. data/lib/middleman/template/views/layout.haml +4 -11
  31. data/lib/middleman/template/views/stylesheets/site.sass +1 -0
  32. data/middleman.gemspec +53 -109
  33. data/spec/builder_spec.rb +19 -16
  34. data/spec/fixtures/sample/init.rb +2 -28
  35. data/spec/fixtures/sample/public/javascripts/empty-with-include.js +1 -0
  36. data/spec/fixtures/sample/public/javascripts/to-be-included.js +1 -0
  37. data/spec/fixtures/sample/public/static.html +0 -0
  38. data/spec/fixtures/sample/public/stylesheets/static.css +0 -0
  39. data/spec/fixtures/sample/views/_partial.haml +0 -0
  40. data/spec/fixtures/sample/views/index.html.haml +0 -0
  41. data/spec/fixtures/sample/views/inline-js.html.haml +0 -0
  42. data/spec/fixtures/sample/views/layout.haml +1 -1
  43. data/spec/fixtures/sample/views/markaby.html.mab +5 -0
  44. data/spec/fixtures/sample/views/maruku.html.maruku +0 -0
  45. data/spec/fixtures/sample/views/services/index.html.haml +0 -0
  46. data/spec/fixtures/sample/views/stylesheets/site.css.sass +1 -1
  47. data/spec/generator_spec.rb +34 -0
  48. data/spec/spec_helper.rb +5 -3
  49. metadata +72 -288
  50. data/features/asset_host.feature +0 -12
  51. data/features/automatic_image_sizes.feature +0 -14
  52. data/features/cache_buster.feature +0 -22
  53. data/features/generator.feature +0 -8
  54. data/features/minify_css.feature +0 -22
  55. data/features/minify_javascript.feature +0 -12
  56. data/features/page_alias_and_layouts.feature +0 -12
  57. data/features/relative_assets.feature +0 -12
  58. data/features/step_definitions/asset_host_steps.rb +0 -7
  59. data/features/step_definitions/env.rb +0 -3
  60. data/features/step_definitions/generator_steps.rb +0 -24
  61. data/features/step_definitions/middleman_steps.rb +0 -28
  62. data/features/step_definitions/page_layout_steps.rb +0 -13
  63. data/lib/middleman/assets.rb +0 -33
  64. data/lib/middleman/config.ru +0 -2
  65. data/lib/middleman/features.rb +0 -39
  66. data/lib/middleman/features/asset_host.rb +0 -21
  67. data/lib/middleman/features/automatic_image_sizes.rb +0 -31
  68. data/lib/middleman/features/automatic_image_sizes/fastimage.rb +0 -282
  69. data/lib/middleman/features/default_helpers.rb +0 -68
  70. data/lib/middleman/features/livereload.rb +0 -19
  71. data/lib/middleman/features/minify_javascript/rack.rb +0 -31
  72. data/lib/middleman/features/smush_pngs.rb +0 -38
  73. data/lib/middleman/features/ugly_haml.rb +0 -7
  74. data/lib/middleman/renderers.rb +0 -26
  75. data/lib/middleman/renderers/coffee.rb +0 -28
  76. data/lib/middleman/renderers/haml.rb +0 -47
  77. data/lib/middleman/renderers/sass.rb +0 -67
  78. data/lib/middleman/template/init.rbt +0 -57
  79. data/lib/middleman/template/views/index.html.haml +0 -4
  80. data/lib/middleman/template/views/stylesheets/site.css.sass +0 -27
  81. data/lib/middleman/templater+dynamic_renderer.rb +0 -26
  82. data/spec/fixtures/sample/public/images/blank.gif +0 -0
  83. data/spec/fixtures/sample/public/stylesheets/auto-css.css +0 -0
  84. data/spec/fixtures/sample/public/stylesheets/sub1/auto-css.css +0 -0
  85. data/spec/fixtures/sample/public/stylesheets/sub1/sub2/auto-css.css +0 -0
  86. data/spec/fixtures/sample/views/asset_host.html.haml +0 -1
  87. data/spec/fixtures/sample/views/auto-css.html.haml +0 -1
  88. data/spec/fixtures/sample/views/auto-image-sizes.html.haml +0 -1
  89. data/spec/fixtures/sample/views/cache-buster.html.haml +0 -2
  90. data/spec/fixtures/sample/views/custom-layout.html.haml +0 -1
  91. data/spec/fixtures/sample/views/custom.haml +0 -5
  92. data/spec/fixtures/sample/views/inline-css.html.haml +0 -4
  93. data/spec/fixtures/sample/views/page-classes.html.haml +0 -1
  94. data/spec/fixtures/sample/views/stylesheets/asset_host.css.sass +0 -3
  95. data/spec/fixtures/sample/views/stylesheets/relative_assets.css.sass +0 -3
  96. data/spec/fixtures/sample/views/stylesheets/site_scss.css.scss +0 -1
  97. data/spec/fixtures/sample/views/stylesheets/test_less.css.less +0 -5
  98. data/spec/helpers_spec.rb +0 -43
@@ -1 +0,0 @@
1
- = image_tag "blank.gif"
@@ -1 +0,0 @@
1
- = auto_stylesheet_link_tag
@@ -1 +0,0 @@
1
- = image_tag "blank.gif"
@@ -1,2 +0,0 @@
1
- = stylesheet_link_tag "site.css"
2
- = javascript_include_tag "empty-with-include.js"
@@ -1,5 +0,0 @@
1
- %html
2
- %head
3
- %title Custom Layout
4
- %body
5
- = yield
@@ -1,4 +0,0 @@
1
- :sass
2
- body
3
- test: style
4
- good: deal
@@ -1 +0,0 @@
1
- = page_classes
@@ -1,3 +0,0 @@
1
- @import "compass"
2
- h1
3
- background: image-url("blank.gif")
@@ -1,3 +0,0 @@
1
- @import "compass"
2
- h1
3
- background: image-url("blank.gif")
@@ -1 +0,0 @@
1
- @import "compass/reset";
@@ -1,5 +0,0 @@
1
- @brand_color: #666666;
2
-
3
- #header {
4
- color: @brand_color;
5
- }
@@ -1,43 +0,0 @@
1
- require File.join(File.dirname(__FILE__), "spec_helper")
2
-
3
- base = ::Middleman::Base
4
-
5
- describe "page_classes helper" do
6
- it "should generate root paths correctly" do
7
- browser = Rack::Test::Session.new(Rack::MockSession.new(base.new))
8
- browser.get("/page-class.html")
9
- browser.last_response.body.chomp.should == "page-class"
10
- end
11
-
12
- it "should generate 1-deep paths correctly" do
13
- browser = Rack::Test::Session.new(Rack::MockSession.new(base.new))
14
- browser.get("/sub1/page-class.html")
15
- browser.last_response.body.chomp.should == "sub1 sub1_page-class"
16
- end
17
-
18
- it "should generate 2-deep paths correctly" do
19
- browser = Rack::Test::Session.new(Rack::MockSession.new(base.new))
20
- browser.get("/sub1/sub2/page-class.html")
21
- browser.last_response.body.chomp.should == "sub1 sub1_sub2 sub1_sub2_page-class"
22
- end
23
- end
24
-
25
- describe "auto_stylesheet_link_tag helper" do
26
- it "should generate root paths correctly" do
27
- browser = Rack::Test::Session.new(Rack::MockSession.new(base.new))
28
- browser.get("/auto-css.html")
29
- browser.last_response.body.chomp.should include("stylesheets/auto-css.css")
30
- end
31
-
32
- it "should generate 1-deep paths correctly" do
33
- browser = Rack::Test::Session.new(Rack::MockSession.new(base.new))
34
- browser.get("/sub1/auto-css.html")
35
- browser.last_response.body.chomp.should include("stylesheets/sub1/auto-css.css")
36
- end
37
-
38
- it "should generate 2-deep paths correctly" do
39
- browser = Rack::Test::Session.new(Rack::MockSession.new(base.new))
40
- browser.get("/sub1/sub2/auto-css.html")
41
- browser.last_response.body.chomp.should include("stylesheets/sub1/sub2/auto-css.css")
42
- end
43
- end