Sha256: 536403952914e1b86b49800e382f74382703d1dfc61a0036261cd16e099a265a

Contents?: true

Size: 1.57 KB

Versions: 2

Compression:

Stored size: 1.57 KB

Contents

# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with this
# work for additional information regarding copyright ownership.  The ASF
# licenses this file to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
# License for the specific language governing permissions and limitations under
# the License.


begin
  require 'rubyforge'
rescue LoadError
  puts 'Please run rake setup to install the RubyForge gem'
  task 'setup' do
    install_gem 'rubyforge'
  end
  task 'release:check' do
    fail 'Please run rake setup to install the RubyForge gem'
  end
end


namespace 'rubyforge' do

  task 'release'=>'published' do |task|
    changes = FileList['published/CHANGES'].first
    files = FileList['published/*.{gem,tgz,zip}'].exclude(changes).existing
    print "Uploading #{spec.version} to RubyForge ... "
    rubyforge = RubyForge.new
    rubyforge.login 
    rubyforge.userconfig.merge!('release_changes'=>changes,  'preformatted' => true) if changes
    rubyforge.add_release spec.rubyforge_project.downcase, spec.name.downcase, spec.version, *files
    puts 'Done'
  end

end

task 'release:publish'=>'rubyforge:release'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
buildr-1.3.0-java rakelib/rubyforge.rake
buildr-1.3.0 rakelib/rubyforge.rake