From 35a047301b545dde2836948a7b1d4a39131f294e Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 16 Jan 2021 14:39:44 +0900 Subject: [ruby/io-console] Rubygems 3.2 supports `--platform` option https://github.com/ruby/io-console/commit/c8046fde84 --- ext/io/console/io-console.gemspec | 5 ----- 1 file changed, 5 deletions(-) (limited to 'ext/io/console') diff --git a/ext/io/console/io-console.gemspec b/ext/io/console/io-console.gemspec index be05f0950a..0d6b7d64c1 100644 --- a/ext/io/console/io-console.gemspec +++ b/ext/io/console/io-console.gemspec @@ -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 -- cgit v1.2.3