Skip to content

Commit

Permalink
Simplify metadata. Add build:all task
Browse files Browse the repository at this point in the history
  • Loading branch information
saturnflyer committed Dec 20, 2024
1 parent 1a9b5d3 commit 5a62607
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 9 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 0 additions & 3 deletions radius.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5a62607

Please sign in to comment.