juicer 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/lib/juicer.rb +1 -1
- data/lib/juicer/merger/stylesheet_merger.rb +1 -1
- metadata +2 -2
data/History.txt
CHANGED
data/lib/juicer.rb
CHANGED
@@ -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
|
+
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-
|
12
|
+
date: 2009-05-22 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|