diff options
Diffstat (limited to 'activesupport/Rakefile')
-rw-r--r-- | activesupport/Rakefile | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/activesupport/Rakefile b/activesupport/Rakefile index 84e93079d3..03997a35dd 100644 --- a/activesupport/Rakefile +++ b/activesupport/Rakefile @@ -72,11 +72,11 @@ end desc "Publish the release files to RubyForge." task :release => [ :package ] do - `rubyforge login` + require 'rubyforge' - for ext in %w( gem tgz zip ) - release_command = "rubyforge add_release #{PKG_NAME} #{PKG_NAME} 'REL #{PKG_VERSION}' pkg/#{PKG_NAME}-#{PKG_VERSION}.#{ext}" - puts release_command - system(release_command) - end -end + packages = %w( gem tgz zip ).collect{ |ext| "pkg/#{PKG_NAME}-#{PKG_VERSION}.#{ext}" } + + rubyforge = RubyForge.new + rubyforge.login + rubyforge.add_release(PKG_NAME, PKG_NAME, "REL #{PKG_VERSION}", *packages) +end
\ No newline at end of file |