From 172b674a40a1f6e2789e4157a397bc0500475bdc Mon Sep 17 00:00:00 2001 From: PikachuEXE Date: Thu, 18 Jun 2020 15:46:13 +0800 Subject: [PATCH 1/2] * Replace URI.escape with ::URI::DEFAULT_PARSER.escape Similar code change https://github.com/mongodb/mongo-ruby-driver/pull/1614/files --- lib/fastimage.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fastimage.rb b/lib/fastimage.rb index 96c7222..a1c9782 100644 --- a/lib/fastimage.rb +++ b/lib/fastimage.rb @@ -282,7 +282,7 @@ def escaped_location(location) begin URI(location) rescue URI::InvalidURIError - URI.escape(location) + ::URI::DEFAULT_PARSER.escape(location) else location end From 0d4dd4a7ed23963d91b871c1fbc342b0fe568eb7 Mon Sep 17 00:00:00 2001 From: PikachuEXE Date: Thu, 18 Jun 2020 15:46:27 +0800 Subject: [PATCH 2/2] * Test with 2.7 too --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 1039dd0..9da81c9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,3 +9,4 @@ rvm: - 2.4 - 2.5 - 2.6 + - 2.7