summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJosef Šimánek <[email protected]>2020-05-01 00:55:07 +0200
committerHiroshi SHIBATA <[email protected]>2020-06-05 07:32:42 +0900
commitb7adb10e3986ac8334b5f304321dda6f8d135e69 ()
treee22dde35930b6beddaa1c20787209b375ba05702 /lib
parentf61ee674d8c5871e8e81b1a7f5884635a0ee9803 (diff)
[rubygems/rubygems] Add build warning when rake based extension is present, but rake is not specified as dependency.
https://.com/rubygems/rubygems/commit/75fe5475b6
Notes: Merged: https://.com/ruby/ruby/pull/3184
-rw-r--r--lib/rubygems/ext/build_error.rb2
-rw-r--r--lib/rubygems/specification_policy.rb14
2 files changed, 16 insertions, 0 deletions
@@ -2,5 +2,7 @@
##
# Raised when there is an error while building extensions.
class Gem::Ext::BuildError < Gem::InstallError
end
@@ -1,3 +1,4 @@
require 'rubygems/user_interaction'
class Gem::SpecificationPolicy
@@ -76,6 +77,8 @@ class Gem::SpecificationPolicy
validate_dependencies
validate_removed_attributes
if @warnings > 0
@@ -417,6 +420,17 @@ http://spdx.org/licenses or '#{Gem::Licenses::NONSTANDARD}' for a nonstandard li
end
end
def warning(statement) # :nodoc:
@warnings += 1