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.
- data/.document +0 -0
- data/.gitignore +2 -3
- data/LICENSE +0 -0
- data/README.rdoc +0 -4
- data/Rakefile +36 -26
- data/VERSION +1 -1
- data/bin/mm-build +54 -3
- data/bin/mm-init +8 -11
- data/bin/mm-server +4 -56
- data/deps.rip +7 -0
- data/lib/middleman.rb +1 -5
- data/lib/middleman/base.rb +98 -120
- data/lib/middleman/builder.rb +8 -55
- data/lib/middleman/features/cache_buster.rb +7 -41
- data/lib/middleman/features/compass.rb +28 -0
- data/lib/middleman/features/content_for.rb +9 -0
- data/lib/middleman/features/growl.rb +2 -0
- data/lib/middleman/features/haml.rb +128 -0
- data/lib/middleman/features/markaby.rb +43 -0
- data/lib/middleman/features/maruku.rb +42 -0
- data/lib/middleman/features/minify_css.rb +2 -9
- data/lib/middleman/features/minify_javascript.rb +24 -13
- data/lib/middleman/features/relative_assets.rb +14 -21
- data/lib/middleman/features/slickmap.rb +4 -117
- data/lib/middleman/features/sprockets+ruby19.rb +29 -0
- data/lib/middleman/features/sprockets.rb +29 -0
- data/lib/middleman/helpers.rb +47 -0
- data/lib/middleman/template/init.rb +22 -0
- data/lib/middleman/template/views/index.haml +1 -0
- data/lib/middleman/template/views/layout.haml +4 -11
- data/lib/middleman/template/views/stylesheets/site.sass +1 -0
- data/middleman.gemspec +53 -109
- data/spec/builder_spec.rb +19 -16
- data/spec/fixtures/sample/init.rb +2 -28
- data/spec/fixtures/sample/public/javascripts/empty-with-include.js +1 -0
- data/spec/fixtures/sample/public/javascripts/to-be-included.js +1 -0
- data/spec/fixtures/sample/public/static.html +0 -0
- data/spec/fixtures/sample/public/stylesheets/static.css +0 -0
- data/spec/fixtures/sample/views/_partial.haml +0 -0
- data/spec/fixtures/sample/views/index.html.haml +0 -0
- data/spec/fixtures/sample/views/inline-js.html.haml +0 -0
- data/spec/fixtures/sample/views/layout.haml +1 -1
- data/spec/fixtures/sample/views/markaby.html.mab +5 -0
- data/spec/fixtures/sample/views/maruku.html.maruku +0 -0
- data/spec/fixtures/sample/views/services/index.html.haml +0 -0
- data/spec/fixtures/sample/views/stylesheets/site.css.sass +1 -1
- data/spec/generator_spec.rb +34 -0
- data/spec/spec_helper.rb +5 -3
- metadata +72 -288
- data/features/asset_host.feature +0 -12
- data/features/automatic_image_sizes.feature +0 -14
- data/features/cache_buster.feature +0 -22
- data/features/generator.feature +0 -8
- data/features/minify_css.feature +0 -22
- data/features/minify_javascript.feature +0 -12
- data/features/page_alias_and_layouts.feature +0 -12
- data/features/relative_assets.feature +0 -12
- data/features/step_definitions/asset_host_steps.rb +0 -7
- data/features/step_definitions/env.rb +0 -3
- data/features/step_definitions/generator_steps.rb +0 -24
- data/features/step_definitions/middleman_steps.rb +0 -28
- data/features/step_definitions/page_layout_steps.rb +0 -13
- data/lib/middleman/assets.rb +0 -33
- data/lib/middleman/config.ru +0 -2
- data/lib/middleman/features.rb +0 -39
- data/lib/middleman/features/asset_host.rb +0 -21
- data/lib/middleman/features/automatic_image_sizes.rb +0 -31
- data/lib/middleman/features/automatic_image_sizes/fastimage.rb +0 -282
- data/lib/middleman/features/default_helpers.rb +0 -68
- data/lib/middleman/features/livereload.rb +0 -19
- data/lib/middleman/features/minify_javascript/rack.rb +0 -31
- data/lib/middleman/features/smush_pngs.rb +0 -38
- data/lib/middleman/features/ugly_haml.rb +0 -7
- data/lib/middleman/renderers.rb +0 -26
- data/lib/middleman/renderers/coffee.rb +0 -28
- data/lib/middleman/renderers/haml.rb +0 -47
- data/lib/middleman/renderers/sass.rb +0 -67
- data/lib/middleman/template/init.rbt +0 -57
- data/lib/middleman/template/views/index.html.haml +0 -4
- data/lib/middleman/template/views/stylesheets/site.css.sass +0 -27
- data/lib/middleman/templater+dynamic_renderer.rb +0 -26
- data/spec/fixtures/sample/public/images/blank.gif +0 -0
- data/spec/fixtures/sample/public/stylesheets/auto-css.css +0 -0
- data/spec/fixtures/sample/public/stylesheets/sub1/auto-css.css +0 -0
- data/spec/fixtures/sample/public/stylesheets/sub1/sub2/auto-css.css +0 -0
- data/spec/fixtures/sample/views/asset_host.html.haml +0 -1
- data/spec/fixtures/sample/views/auto-css.html.haml +0 -1
- data/spec/fixtures/sample/views/auto-image-sizes.html.haml +0 -1
- data/spec/fixtures/sample/views/cache-buster.html.haml +0 -2
- data/spec/fixtures/sample/views/custom-layout.html.haml +0 -1
- data/spec/fixtures/sample/views/custom.haml +0 -5
- data/spec/fixtures/sample/views/inline-css.html.haml +0 -4
- data/spec/fixtures/sample/views/page-classes.html.haml +0 -1
- data/spec/fixtures/sample/views/stylesheets/asset_host.css.sass +0 -3
- data/spec/fixtures/sample/views/stylesheets/relative_assets.css.sass +0 -3
- data/spec/fixtures/sample/views/stylesheets/site_scss.css.scss +0 -1
- data/spec/fixtures/sample/views/stylesheets/test_less.css.less +0 -5
- data/spec/helpers_spec.rb +0 -43
Binary file
|
File without changes
|
File without changes
|
File without changes
|
@@ -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 +0,0 @@
|
|
1
|
-
%h1 Welcome
|
@@ -1 +0,0 @@
|
|
1
|
-
= page_classes
|
@@ -1 +0,0 @@
|
|
1
|
-
@import "compass/reset";
|
data/spec/helpers_spec.rb
DELETED
@@ -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
|