From da2af62f47c81b95f995e17cf745b21a36bf5317 Mon Sep 17 00:00:00 2001 From: Scott Davis Date: Fri, 1 Apr 2011 10:32:48 -0400 Subject: [PATCH] closes #271 - fixed bug that was causing file name to truncate --- Gemfile.lock | 2 +- doc-src/Gemfile.lock | 2 +- lib/compass/compiler.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index c0448a79..d6e36fc4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -7,7 +7,7 @@ GIT PATH remote: . specs: - compass (0.11.beta.5.4a5c968) + compass (0.11.beta.5.0cf4fcd) chunky_png (~> 1.1.0) sass (>= 3.1.0.alpha.249) diff --git a/doc-src/Gemfile.lock b/doc-src/Gemfile.lock index 70bbc9df..2e427a7a 100644 --- a/doc-src/Gemfile.lock +++ b/doc-src/Gemfile.lock @@ -8,7 +8,7 @@ GIT PATH remote: .. specs: - compass (0.11.beta.4.365fc5d) + compass (0.11.beta.5.96f1e4d) chunky_png (~> 1.1.0) sass (>= 3.1.0.alpha.249) diff --git a/lib/compass/compiler.rb b/lib/compass/compiler.rb index cc887a70..bf3f7f3e 100644 --- a/lib/compass/compiler.rb +++ b/lib/compass/compiler.rb @@ -30,7 +30,7 @@ module Compass end def stylesheet_name(sass_file) - sass_file[("#{from}/".length)..-6] + %r(#{from}\/(.+)\.(.+)).match(sass_file)[1] end def css_files