lib/rtask.rb
# Task for release the package.
Task for release the package.
Task for release the package .
def release
    if @lib_version and @version.to_s != @lib_version.to_s
      puts "Version confilict between the library and in .gemified"
      puts "library: " + @lib_version.to_s
      puts "Gemify : " + @version.to_s
      exit
    end
    filename = "#{@package}-#{@version}"
    gem = filename + ".gem"
    tgz = filename + ".tgz"
    zip = filename + ".zip"
    if File.exist?(gem) and File.exist?(tgz) and File.exist?(zip)
      @rubyforge.add_release @project, @package, @version, gem, tgz, zip
      puts "Released #{gem}, #{tgz}, and #{zip}"
    else
      puts "Please make gem and tgz files first: rake gem tgz"
      exit
    end
  end
def release if @lib_version and @version . to_s != @lib_version . to_s puts "Version confilict between the library and in .gemified" puts "library: " + @lib_version . to_s puts "Gemify : " + @version . to_s exit end filename = "#{@package}-#{@version}" gem = filename + ".gem" tgz = filename + ".tgz" zip = filename + ".zip" if File . exist? ( gem ) and File . exist? ( tgz ) and File . exist? ( zip ) @rubyforge . add_release @project , @package , @version , gem , tgz , zip puts "Released #{gem}, #{tgz}, and #{zip}" else puts "Please make gem and tgz files first: rake gem tgz" exit end end
Task for release the package.
Task for release the package .