juicer 1.0.20 → 1.0.21

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.20
1
+ 1.0.21
@@ -3,7 +3,7 @@ require "logger"
3
3
  module Juicer
4
4
 
5
5
  # :stopdoc:
6
- VERSION = "1.0.20"
6
+ VERSION = "1.0.21"
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)
@@ -59,7 +59,7 @@ module Juicer
59
59
  content.scan(/url\([\s"']*([^\)"'\s]*)[\s"']*\)/m).uniq.collect do |url|
60
60
  url = url.first
61
61
  path = resolve_path(url, dir)
62
- content.gsub!(/\([\s"']*#{url}[\s"']*\)/m, "(#{path})") unless path == url
62
+ content.gsub!(/\([\s"']*#{Regexp.escape(url)}[\s"']*\)/m, "(#{path})") unless path == url
63
63
  end
64
64
 
65
65
  content
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: 1.0.20
4
+ version: 1.0.21
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: