diff --git a/CHANGELOG.markdown b/CHANGELOG.markdown index 2c3b6f2a..2d4a2859 100644 --- a/CHANGELOG.markdown +++ b/CHANGELOG.markdown @@ -1,5 +1,16 @@ COMPASS CHANGELOG ================= + +0.8.11 (August 22, 2009) +------------------------ + +Bug Fix Release: + +* [Compass Core] Bug fix to sprites: fixed width and height assignments for x and y position variables +* Ruby 1.9.1 fix: binding for parse_string +* [Rails] Don't suggest creating a stylesheet link to partials. + + 0.8.10 (August 16, 2009) ------------------------ Bug Fix Release: diff --git a/REVISION b/REVISION index 91b96d9c..a548f5cf 100644 --- a/REVISION +++ b/REVISION @@ -1 +1 @@ -0492fc99695bf8ec64cb64ca41b7451db9e01fcb \ No newline at end of file +fbda9944793fa5cf0fc0d53a5205ddfee05d5ab0 \ No newline at end of file diff --git a/VERSION.yml b/VERSION.yml index d0062a44..533f9f09 100644 --- a/VERSION.yml +++ b/VERSION.yml @@ -1,4 +1,4 @@ --- -:patch: 10 +:patch: 11 :major: 0 :minor: 8 diff --git a/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite_img.sass b/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite_img.sass index 5d46a53a..2381dbd4 100644 --- a/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite_img.sass +++ b/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite_img.sass @@ -4,8 +4,8 @@ // Simplest use: +sprite-img("icons-32.png", 1) =sprite-img(!img, !col, !row = 1, !width = !sprite_image_default_width, !height = !sprite_image_default_height, !margin = !sprite_image_default_margin) - !x = ((!col - 1) * -!height) - ((!col - 1) * !margin) - !y = ((!row - 1) * -!width) - ((!row - 1) * !margin) + !x = ((!col - 1) * -!width) - ((!col - 1) * !margin) + !y = ((!row - 1) * -!height) - ((!row - 1) * !margin) :background= image_url(!img) "no-repeat" !x !y :width= !width :height= !height diff --git a/lib/compass/configuration.rb b/lib/compass/configuration.rb index 8714420a..ae4f5b95 100644 --- a/lib/compass/configuration.rb +++ b/lib/compass/configuration.rb @@ -39,9 +39,10 @@ module Compass end def parse_string(contents, filename) - eval(contents, binding, filename) + bind = binding + eval(contents, bind, filename) ATTRIBUTES.each do |prop| - value = eval(prop.to_s, binding) rescue nil + value = eval(prop.to_s, bind) rescue nil self.send("#{prop}=", value) if value end if @added_import_paths diff --git a/lib/compass/installers/rails.rb b/lib/compass/installers/rails.rb index 3d920a51..9f2a3e36 100644 --- a/lib/compass/installers/rails.rb +++ b/lib/compass/installers/rails.rb @@ -117,6 +117,8 @@ Compass.configure_sass_plugin! def stylesheet_links html = "%head\n" manifest.each_stylesheet do |stylesheet| + # Skip partials. + next if File.basename(stylesheet.from)[0..0] == "_" ss_line = " = stylesheet_link_tag '#{stylesheet_prefix}#{stylesheet.to.sub(/\.sass$/,'.css')}'" if stylesheet.options[:media] ss_line += ", :media => '#{stylesheet.options[:media]}'" diff --git a/test/command_line_test.rb b/test/command_line_test.rb index 6552c3be..8e621deb 100644 --- a/test/command_line_test.rb +++ b/test/command_line_test.rb @@ -19,7 +19,7 @@ class CommandLineTest < Test::Unit::TestCase def test_list_frameworks compass "--list-frameworks" - assert_equal("blueprint\ncompass\nyui\n", @last_result) + assert_equal(%w(blueprint compass yui), @last_result.split.sort) end def test_basic_install