From 5a626073dfa5de3b24cf9bdf87c0df11dc0fbfc7 Mon Sep 17 00:00:00 2001 From: Jim Gay Date: Fri, 20 Dec 2024 13:39:36 -0500 Subject: [PATCH] Simplify metadata. Add build:all task --- Rakefile | 9 +++++++++ radius.gemspec | 3 --- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Rakefile b/Rakefile index df46d71..c3d9712 100644 --- a/Rakefile +++ b/Rakefile @@ -6,3 +6,12 @@ require File.dirname(__FILE__) + '/lib/radius/version' Dir['tasks/**/*.rake'].each { |t| load t } task :default => :test + +namespace :build do + desc "Build both Ruby and Java platform gems" + task :all do + version = ::Radius.version + system "gem build radius.gemspec --platform ruby -o radius-#{version}.gem" + system "gem build radius.gemspec --platform java -o radius-#{version}-java.gem" + end +end diff --git a/radius.gemspec b/radius.gemspec index a361ad5..800422a 100644 --- a/radius.gemspec +++ b/radius.gemspec @@ -27,11 +27,8 @@ Gem::Specification.new do |s| s.metadata = { "homepage_uri" => "https://github.com/jlong/radius", - "source_code_uri" => "https://github.com/jlong/radius", "changelog_uri" => "https://github.com/jlong/radius/blob/master/CHANGELOG", "bug_tracker_uri" => "https://github.com/jlong/radius/issues" } - - s.platforms = [Gem::Platform::RUBY, 'java'] end