diff --git a/Rakefile b/Rakefile index 44de711..899f989 100644 --- a/Rakefile +++ b/Rakefile @@ -25,7 +25,7 @@ task 'build:java' => 'date_epoch' do |t| gem_command = ENV["GEM_COMMAND"] gem_command &&= gem_command.shellsplit Bundler::GemHelper.instance.instance_eval do - sh([*(gem_command || "gem"), "build", "-V", specfile, "--", "--platform=java"]) do + sh([*(gem_command || "gem"), "build", "-V", "--platform=java", specfile]) do FileUtils.mkdir_p("pkg") FileUtils.mv(file_name, "pkg") Bundler.ui.confirm "#{spec.name} #{spec.version} built to pkg/#{file_name}." diff --git a/io-console.gemspec b/io-console.gemspec index be05f09..0d6b7d6 100644 --- a/io-console.gemspec +++ b/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