Sha256: 8f48e92bbdc53f4575114e60826dcd73391acc7bc77fd93b0e91a51190e21f87
Contents?: true
Size: 440 Bytes
Versions: 1
Compression:
Stored size: 440 Bytes
Contents
require "anyfetch/open_uri" require "anyfetch/original_filename/content_type" module Anyfetch class FTP < OpenURI def initialize(uri, options = {}) @uri = uri @options = options setup_auth end private def setup_auth if @uri.password # Rollback URI-encoding of password by open-uri lib @uri.instance_variable_set "@password", URI.decode(@uri.password) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
anyfetch-0.1.3 | lib/anyfetch/ftp.rb |