Permalink
Browse files

pushed new branch: 1_1_1

git-svn-id: http://bundle-fu.googlecode.com/svn/tags/bundle_fu@47 1db77ec0-6337-0410-9320-454da9aca44f
  • Loading branch information...
2 parents c515264 + 561d05e commit 4e23d07abd14f53c3e6b2eb07f7fc5a835159d01 timcharper committed Oct 30, 2007
Showing with 3 additions and 2 deletions.
  1. +1 −0 lib/bundle_fu.rb
  2. +2 −2 test/fixtures/public/stylesheets/css_3.css
View
@@ -27,6 +27,7 @@ def bundle_js_files(filenames=[], options={})
# rewrites a relative path to an absolute path, removing excess "../" and "./"
# rewrite_relative_path("stylesheets/default/global.css", "../image.gif") => "/stylesheets/image.gif"
def rewrite_relative_path(source_filename, relative_url)
+ relative_url = relative_url.strip
return relative_url if relative_url.first == "/"
elements = File.join("/", File.dirname(source_filename)).gsub(/\/+/, '/').split("/")
@@ -1,7 +1,7 @@
.relative_image_bg {
- background-image: url(../images/background.gif)
+ background-image: url(../images/background.gif )
}
.relative_image_bg_2 {
- background-image: url(../images/groovy/background_2.gif)
+ background-image: url( ../images/groovy/background_2.gif )
}

0 comments on commit 4e23d07

Please sign in to comment.