Skip to content
Browse files

Delayed or removed requires because `make install` cannot require ext…

…ensions
  • Loading branch information...
1 parent a28478b commit 04422c3c7fc0273a5ef9d01641fb0a2a4ee0d03d @drbrain drbrain committed Nov 28, 2012
Showing with 7 additions and 2 deletions.
  1. +1 −1 lib/rubygems.rb
  2. +6 −1 lib/rubygems/specification.rb
View
2 lib/rubygems.rb
@@ -107,7 +107,6 @@ module Gem
require 'rubygems/defaults'
require 'rubygems/deprecate'
require 'rubygems/errors'
-require 'rubygems/source_list'
module Gem
RUBYGEMS_DIR = File.dirname File.expand_path(__FILE__)
@@ -1027,6 +1026,7 @@ def clear_default_specs
autoload :Requirement, 'rubygems/requirement'
autoload :Dependency, 'rubygems/dependency'
autoload :DependencyList, 'rubygems/dependency_list'
+ autoload :SourceList, 'rubygems/source_list'
autoload :SpecFetcher, 'rubygems/spec_fetcher'
autoload :Specification, 'rubygems/specification'
autoload :PathSupport, 'rubygems/path_support'
View
7 lib/rubygems/specification.rb
@@ -39,7 +39,12 @@
require 'rubygems/requirement'
require 'rubygems/platform'
require 'rubygems/deprecate'
-require 'date'
+
+# :stopdoc:
+# date.rb can't be loaded for `make install` due to miniruby
+# Date is needed for old gems that stored #date as Date instead of Time.
+class Date; end
+# :startdoc:
class Gem::Specification

0 comments on commit 04422c3

Please sign in to comment.
Something went wrong with that request. Please try again.