Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove URI.escape and add ruby 3 rexml dependency #55

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/mediainfo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion mediainfo.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down