Sha256: 7bee88d0cc44e3591c77b34e4fbcf5098aad4939a4c38b94f0cd8188e5352b01

Contents?: true

Size: 1.01 KB

Versions: 30

Compression:

Stored size: 1.01 KB

Contents

desc 'Package and upload the release to rubyforge.'
task :release => [:clean, :dist, :package] do |t|
  require 'rubyforge'
  version = APP_VERSION
  name    = APP_NAME
  rubyforge_name = RUBYFORGE_PROJECT
  v = ENV["VERSION"] or abort "Must supply VERSION=x.y.z"
  abort "Versions don't match #{v} vs #{version}" if v != version
  pkg = "pkg/#{name}-#{version}"

  if $DEBUG then
    puts "release_id = rf.add_release #{rubyforge_name.inspect}, #{name.inspect}, #{version.inspect}, \"#{pkg}.tgz\""
    puts "rf.add_file #{rubyforge_name.inspect}, #{name.inspect}, release_id, \"#{pkg}.gem\""
  end

  rf = RubyForge.new
  puts "Logging in"
  rf.login

  c = rf.userconfig
  c["release_notes"] = APP_DESCRIPTION if Object.const_defined?("APP_DESCRIPTION")
  c["release_changes"] = APP_CHANGES   if Object.const_defined?("APP_CHANGES")
  c["preformatted"] = true

  files = ["#{pkg}.tar.gz", "dist/#{name}-#{version}.js"].compact

  puts "Releasing #{name} v. #{version}"
  rf.add_release rubyforge_name, name, version, *files
end

Version data entries

30 entries across 22 versions & 1 rubygems

Version Path
newjs-1.7.4 vendor/jsunittest/tasks/deploy.rake
newjs-1.7.4 vendor/jshoulda/tasks/deploy.rake
newjs-1.7.4 app_generators/newjs/templates/tasks/deploy.rake
newjs-1.0.3 app_generators/newjs/templates/tasks/deploy.rake
newjs-1.0.2 app_generators/newjs/templates/tasks/deploy.rake
newjs-1.1.0 app_generators/newjs/templates/tasks/deploy.rake
newjs-1.2.0 app_generators/newjs/templates/tasks/deploy.rake
newjs-1.0.4 app_generators/newjs/templates/tasks/deploy.rake
newjs-1.2.1 app_generators/newjs/templates/tasks/deploy.rake
newjs-1.3.0 app_generators/newjs/templates/tasks/deploy.rake
newjs-1.3.5 app_generators/newjs/templates/tasks/deploy.rake
newjs-1.3.3 app_generators/newjs/templates/tasks/deploy.rake
newjs-1.3.1 app_generators/newjs/templates/tasks/deploy.rake
newjs-1.3.2 app_generators/newjs/templates/tasks/deploy.rake
newjs-1.3.4 app_generators/newjs/templates/tasks/deploy.rake
newjs-1.3.6 app_generators/newjs/templates/tasks/deploy.rake
newjs-1.3.7 app_generators/newjs/templates/tasks/deploy.rake
newjs-1.5.0 app_generators/newjs/templates/tasks/deploy.rake
newjs-1.5.1 app_generators/newjs/templates/tasks/deploy.rake
newjs-1.7.0 app_generators/newjs/templates/tasks/deploy.rake