Skip to content

Commit

Permalink
switch to internal copy of open-uri
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://rubyforge.org/var/svn/rubygems/trunk@540 3d4018f9-ac1a-0410-99e9-8a154d859a19
  • Loading branch information
richkilmer committed Sep 16, 2004
1 parent c69828c commit e238a74
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 4 additions & 6 deletions rubygems/lib/rubygems/package.rb
Expand Up @@ -6,6 +6,10 @@
require 'yaml'
require 'yaml/syck'
require 'fileutils'
require 'zlib'
require 'digest/md5'
require 'fileutils'
require 'find'

require 'rubygems/specification'

Expand All @@ -14,7 +18,6 @@ module Gem
# Wrapper for FileUtils meant to provide logging and additional operations if
# needed.
class FileOperations
require 'fileutils'
extend FileUtils
class << self
# additional methods not implemented in FileUtils
Expand Down Expand Up @@ -464,8 +467,6 @@ class TarInput
include FSyncDir
include Enumerable
attr_reader :metadata
require 'zlib'
require 'digest/md5'
class << self; private :new end

def initialize(io)
Expand Down Expand Up @@ -580,8 +581,6 @@ def file_class
end

class TarOutput
require 'zlib'
require 'yaml'

class << self; private :new end

Expand Down Expand Up @@ -712,7 +711,6 @@ def dir_class
end

def find_class
require 'find'
Find
end
end
Expand Down
4 changes: 2 additions & 2 deletions rubygems/lib/rubygems/remote_installer.rb
Expand Up @@ -208,7 +208,7 @@ def write_gem_to_file(body, destination_file)
end

def fetch_size( uri_str )
require 'open-uri'
require 'rubygems/open-uri'
size = nil
begin
open(uri_str, :proxy => @http_proxy, :content_length_proc => lambda {|t| size = t; raise "break"}) {|i| }
Expand All @@ -218,7 +218,7 @@ def fetch_size( uri_str )
end

def fetch( uri_str )
require 'open-uri'
require 'rubygems/open-uri'
open(uri_str, :proxy => @http_proxy) do |input|
input.read
end
Expand Down

0 comments on commit e238a74

Please sign in to comment.