lib/monkey_patches/addressable/uri.rb in url_canonicalize-0.1.15 vs lib/monkey_patches/addressable/uri.rb in url_canonicalize-0.2.0
- old
+ new
@@ -1,5 +1,6 @@
# frozen_string_literal: true
+
module Addressable
# Patch for Addressable's URI class
class URI
def self.canonicalize(uri)
url = parse(uri).to_s # uri can be anything Addressable::URI can handle