mild fixes

This commit is contained in:
tdreyno 2010-04-18 12:08:08 -07:00
parent 73231d4d1f
commit e16cf25be5
7 changed files with 12 additions and 11 deletions

1
.gitignore vendored
View file

@ -4,3 +4,4 @@ rdoc
pkg
.sass-cache
.sassc
.tmp

View file

@ -23,9 +23,8 @@ begin
gem.add_dependency("sinatra-content-for")
gem.add_dependency("rack-test")
gem.add_dependency("yui-compressor")
gem.add_dependency("haml")
gem.add_dependency("compass", "0.10.0.pre5")
gem.add_dependency("compass-colors")
gem.add_dependency("haml", ">=3.0.0.beta.3")
gem.add_dependency("compass", ">=0.10.0.rc3")
gem.add_dependency("fancy-buttons")
gem.add_dependency("json_pure")
gem.add_dependency("smusher")

View file

@ -1 +1 @@
0.13.2
0.13.2.pre

View file

@ -9,7 +9,7 @@ Feature: Minify CSS
Scenario: Rendering inline css with the feature disabled
Given "minify_css" feature is "disabled"
When I go to "/inline-css.html"
Then I should see "3" lines
Then I should see "4" lines
Scenario: Rendering external css with the feature enabled
Given "minify_css" feature is "enabled"
@ -19,4 +19,4 @@ Feature: Minify CSS
Scenario: Rendering external css with the feature disabled
Given "minify_css" feature is "disabled"
When I go to "/stylesheets/site.css"
Then I should see "47" lines
Then I should see "56" lines

View file

@ -4,9 +4,9 @@ Feature: Relative Assets
Scenario: Rendering css with the feature disabled
Given "relative_assets" feature is "disabled"
When I go to "/stylesheets/relative_assets.css"
Then I should not see "../"
Then I should not see "url('../"
Scenario: Rendering css with the feature enabled
Given "relative_assets" feature is "enabled"
When I go to "/stylesheets/relative_assets.css"
Then I should see "../"
Then I should see "url('../"

View file

@ -42,8 +42,10 @@ module Middleman
def self.set(option, value=self, &block)
if block_given?
value = Proc.new { block }
super(option, value, &nil)
else
super
end
super(option, value)
end
@@afters = []

View file

@ -104,7 +104,6 @@ class Middleman::Base
configure :build do
::Compass.configuration do |config|
config.line_comments = false
config.css_dir = File.join(File.basename(self.build_dir), self.css_dir)
config.images_dir = File.join(File.basename(self.build_dir), self.images_dir)
end