lib/iri.rb in iri-0.4.0 vs lib/iri.rb in iri-0.4.1
- old
+ new
@@ -135,11 +135,11 @@
end
# Replace the fragment part of the URI.
def fragment(val)
modify do |c|
- c.fragment = val
+ c.fragment = val.to_s
end
end
# Replace the query part of the URI.
def query(val)
@@ -166,10 +166,10 @@
# Iri.new('https://google.com/a/b?q=test').append('/hello')
#
# The result will contain "https://google.com/a/b/hello?q=test".
def append(part)
modify do |c|
- c.path = c.path + '/' + CGI.escape(part)
+ c.path = c.path + '/' + CGI.escape(part.to_s)
end
end
private