Created
March 18, 2014 14:40
-
-
Save brixen/9621386 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/library/rubygems/basic_specification.rb b/library/rubygems/basic_specification.rb | |
index 470a6eb..2ad6e7a 100644 | |
--- a/library/rubygems/basic_specification.rb | |
+++ b/library/rubygems/basic_specification.rb | |
@@ -53,8 +53,6 @@ class Gem::BasicSpecification | |
# Return true if this spec can require +file+. | |
def contains_requirable_file? file | |
- build_extensions | |
- | |
suffixes = Gem.suffixes | |
full_require_paths.any? do |dir| | |
diff --git a/library/rubygems/request_set.rb b/library/rubygems/request_set.rb | |
index fb54e34..260077a 100644 | |
--- a/library/rubygems/request_set.rb | |
+++ b/library/rubygems/request_set.rb | |
@@ -125,8 +125,6 @@ class Gem::RequestSet | |
sorted_requests.each do |req| | |
if req.installed? then | |
- req.spec.spec.build_extensions | |
- | |
if @always_install.none? { |spec| spec == req.spec.spec } then | |
yield req, nil if block_given? | |
next | |
diff --git a/library/rubygems/specification.rb b/library/rubygems/specification.rb | |
index f4e609a..fc1ccb1 100644 | |
--- a/library/rubygems/specification.rb | |
+++ b/library/rubygems/specification.rb | |
@@ -1414,6 +1414,7 @@ class Gem::Specification < Gem::BasicSpecification | |
# the gem.build_complete file is missing. | |
def build_extensions # :nodoc: | |
+ return | |
return if default_gem? | |
return if extensions.empty? | |
return if installed_by_version < Gem::Version.new('2.2.0.preview.2') | |
diff --git a/library/rubygems/stub_specification.rb b/library/rubygems/stub_specification.rb | |
index 221dc1d..452735c 100644 | |
--- a/library/rubygems/stub_specification.rb | |
+++ b/library/rubygems/stub_specification.rb | |
@@ -54,6 +54,7 @@ class Gem::StubSpecification < Gem::BasicSpecification | |
end | |
def build_extensions # :nodoc: | |
+ return | |
return if default_gem? | |
return if extensions.empty? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment