class Buildr::PackageGemTask

Attributes

changelog[RW]

Public Class Methods

new(*args) click to toggle source
Calls superclass method
# File lib/buildr/packaging/gems.rb, line 23
def initialize(*args)
  super
  @spec = Gem::Specification.new
  prepare do
    include(changelog) if changelog
  end
end

Public Instance Methods

spec() { |spec| ... } click to toggle source
# File lib/buildr/packaging/gems.rb, line 33
def spec
  yield @spec if block_given?
  @spec
end
upload() click to toggle source
# File lib/buildr/packaging/gems.rb, line 38
def upload
  rubyforge = RubyForge.new
  rubyforge.login
  rubyforge.userconfig.merge!('release_changes'=>changelog.to_s, 'preformatted'=>true) if changelog
  rubyforge.add_release spec.rubyforge_project.downcase, spec.name.downcase, spec.version, package(:gem).to_s
end