mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Import RubyGems 1.0.0, r1575
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									40d8543fbd
								
							
						
					
					
						commit
						8289771e32
					
				
					 47 changed files with 1170 additions and 1010 deletions
				
			
		| 
						 | 
				
			
			@ -131,6 +131,7 @@ module Gem
 | 
			
		|||
          Dir.entries(gems_directory).each do |gem_directory_name|
 | 
			
		||||
            next if gem_directory_name == "." || gem_directory_name == ".."
 | 
			
		||||
            dash = gem_directory_name.rindex("-")
 | 
			
		||||
            next if dash.nil?
 | 
			
		||||
            gem_name = gem_directory_name[0...dash]
 | 
			
		||||
            current_version = GemVersions[gem_name]
 | 
			
		||||
            new_version = calculate_integers_for_gem_version(gem_directory_name[dash+1..-1])
 | 
			
		||||
| 
						 | 
				
			
			@ -167,6 +168,7 @@ module Gem
 | 
			
		|||
 | 
			
		||||
    def method_missing(method, *args, &block)
 | 
			
		||||
      QuickLoader.load_full_rubygems_library
 | 
			
		||||
      super unless Gem.respond_to?(method)
 | 
			
		||||
      Gem.send(method, *args, &block)
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
| 
						 | 
				
			
			@ -174,9 +176,14 @@ module Gem
 | 
			
		|||
  extend QuickLoader
 | 
			
		||||
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
Gem.push_all_highest_version_gems_on_load_path
 | 
			
		||||
$".unshift File.join(Gem::ConfigMap[:libdir], "ruby", Gem::ConfigMap[:ruby_version], "rubygems.rb")
 | 
			
		||||
begin
 | 
			
		||||
  Gem.push_all_highest_version_gems_on_load_path
 | 
			
		||||
  $".unshift File.join(Gem::ConfigMap[:libdir], "ruby", Gem::ConfigMap[:ruby_version], "rubygems.rb")
 | 
			
		||||
rescue Exception => e
 | 
			
		||||
  puts "Error loading gem paths on load path in gem_prelude"
 | 
			
		||||
  puts e
 | 
			
		||||
  puts e.backtrace.join("\n")
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
#puts "Gem load in #{Time.now - t} seconds"
 | 
			
		||||
end # Gem::Enable
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue