lib/checkr/util.rb in checkr-official-1.7 vs lib/checkr/util.rb in checkr-official-1.7.1
- old
+ new
@@ -1,5 +1,7 @@
+require 'erb'
+
module Checkr
module Util
def self.query_string(params)
if params && params.any?
@@ -36,10 +38,10 @@
end
ret
end
def self.escape(val)
- URI.escape(val.to_s, Regexp.new("[^#{URI::PATTERN::UNRESERVED}]"))
+ ERB::Util.url_encode(val.to_s)
end
def self.symbolize_keys(obj)
if obj.is_a?(Hash)
ret = {}