multipass 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 1
3
3
  :minor: 2
4
- :patch: 2
4
+ :patch: 3
5
5
  :build:
@@ -102,12 +102,14 @@ class MultiPass
102
102
  # converts unicode (\u003c) to the actual character
103
103
  # http://rishida.net/tools/conversion/
104
104
  def unencode_javascript_unicode_escape(str)
105
- str.gsub!(/\\u([0-9a-fA-F]{4})/) do |s|
106
- int = $1.to_i(16)
107
- if int.zero? && s != "0000"
108
- s
109
- else
110
- [int].pack("U")
105
+ if str.respond_to?(:gsub!)
106
+ str.gsub!(/\\u([0-9a-fA-F]{4})/) do |s|
107
+ int = $1.to_i(16)
108
+ if int.zero? && s != "0000"
109
+ s
110
+ else
111
+ [int].pack("U")
112
+ end
111
113
  end
112
114
  end
113
115
  str
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{multipass}
8
- s.version = "1.2.2"
8
+ s.version = "1.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["rick"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multipass
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - rick