[ruby/io-console] Rubygems 3.2 supports --platform
option
https://github.com/ruby/io-console/commit/c8046fde84
This commit is contained in:
parent
6ab5504fe5
commit
35a047301b
@ -22,11 +22,6 @@ Gem::Specification.new do |s|
|
||||
]
|
||||
s.extensions = %w[ext/io/console/extconf.rb]
|
||||
|
||||
if i = ARGV.index("--") and !(argv = ARGV[i+1..-1]).empty?
|
||||
OptionParser.new(__FILE__) do |opt|
|
||||
opt.on("--platform=PLATFORM") {|p| s.platform = p}
|
||||
end.parse!(argv)
|
||||
end
|
||||
if Gem::Platform === s.platform and s.platform =~ 'java'
|
||||
s.files.delete_if {|f| f.start_with?("ext/")}
|
||||
s.extensions.clear
|
||||
|
Loading…
x
Reference in New Issue
Block a user