Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

explicit coercion to Pathname

  • Loading branch information...
commit 186c4116b7b96ae12918e5afa38f50b0614df66a 1 parent 2e26d3c
@fidothe fidothe authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  rb/cdn_helpers.rb
View
1  rb/cdn_helpers.rb
@@ -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|
Please sign in to comment.
Something went wrong with that request. Please try again.