juicer 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ == 0.2.5 / 2009-05-22
2
+ * Fixed a bug with the stylesheet merger where url( <url> ); (ie URL surrounded
3
+ by spaces) resolved wrong.
4
+
1
5
  == 0.2.4 / 2009-04-29
2
6
 
3
7
  * More robust pattern checking for url() references in CSS files
@@ -3,7 +3,7 @@ require "logger"
3
3
  module Juicer
4
4
 
5
5
  # :stopdoc:
6
- VERSION = '0.2.4'
6
+ VERSION = '0.2.5'
7
7
  LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
8
8
  PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
9
9
  LOGGER = Logger.new(STDOUT)
@@ -58,7 +58,7 @@ module Juicer
58
58
  content = super.gsub(/^\s*\@import\s("|')(.*)("|')\;?/, '')
59
59
  dir = File.expand_path(File.dirname(file))
60
60
 
61
- content.scan(/url\(([^\)]*)\)/).uniq.collect do |url|
61
+ content.scan(/url\([\s"']*([^\)"'\s]*)[\s"']*\)/m).uniq.collect do |url|
62
62
  url = url.first
63
63
  path = resolve_path(url, dir)
64
64
  content.gsub!(/\(#{url}\)/m, "(#{path})") unless path == url
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: juicer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Johansen
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-04 00:00:00 +02:00
12
+ date: 2009-05-22 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency