Skip to content
This repository has been archived by the owner on Apr 4, 2018. It is now read-only.

Commit

Permalink
explicit coercion to Pathname
Browse files Browse the repository at this point in the history
  • Loading branch information
fidothe committed Apr 11, 2011
1 parent 2e26d3c commit 186c411
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rb/cdn_helpers.rb
Expand Up @@ -33,6 +33,7 @@ def self.rewrite_css_file(css_file_path, public_root_path, url_prefix = '/')
def self.process_css_file(css_file, css_file_path, public_root_path, url_prefix = '/')
out_lines = []
css_file_path = Pathname.new(css_file_path).realpath
public_root_path = Pathname.new(public_root_path)
context_path = css_file_path.parent
while line = css_file.gets
out_lines << line.gsub(/url\(["']?([^"'\)]+)["']?\)/) do |url_match|
Expand Down

0 comments on commit 186c411

Please sign in to comment.