From e80d934f81857ee727d74434ef7378d06ff34829 Mon Sep 17 00:00:00 2001 From: Mark Oleson Date: Tue, 25 May 2021 15:57:43 -0400 Subject: [PATCH 1/2] don't URI.escape the URI, as that method has been removed --- lib/mediainfo.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mediainfo.rb b/lib/mediainfo.rb index 14eae9c..1f6cf8c 100644 --- a/lib/mediainfo.rb +++ b/lib/mediainfo.rb @@ -106,7 +106,7 @@ def self.from_uri(input) http.use_ssl = true if input.is_a? URI::HTTPS # For https support http_request = http.request(request) raise RemoteUrlError, "HTTP call to #{input} is not working : #{http_request.value}" unless http_request.is_a?(Net::HTTPOK) - MediaInfo::Tracks.new(MediaInfo.run(URI.escape(input.to_s))) + MediaInfo::Tracks.new(MediaInfo.run(input.to_s)) end end From ad43652a611865d01c85aa6239776175cb5b5da3 Mon Sep 17 00:00:00 2001 From: Mark Oleson Date: Tue, 25 May 2021 15:58:15 -0400 Subject: [PATCH 2/2] add rexml as a dependency, since as of ruby 3.0 it is no longer included in the standard distribution --- mediainfo.gemspec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mediainfo.gemspec b/mediainfo.gemspec index 56d5131..3fed629 100644 --- a/mediainfo.gemspec +++ b/mediainfo.gemspec @@ -19,7 +19,8 @@ Gem::Specification.new do |s| f.match(%r{^(test|spec|features)/}) end - # Since Ruby 1.8, REXML is included in the standard Ruby distribution. + s.add_dependency 'rexml' + s.add_development_dependency 'bundler', '~> 2' s.add_development_dependency 'rake', '~> 12.3' s.add_development_dependency 'rspec', '~> 3.0'