Sha256: 1b50d2972a6ca10fb00d19c460b7d7ed15ce511e1d3dccc8baaba2171988202f
Contents?: true
Size: 941 Bytes
Versions: 1
Compression:
Stored size: 941 Bytes
Contents
require 'hoe' @config_file = "~/.rubyforge/user-config.yml" @config = nil RUBYFORGE_USERNAME = "unknown" def rubyforge_username unless @config begin @config = YAML.load(File.read(File.expand_path(@config_file))) rescue puts <<-EOS ERROR: No rubyforge config file found: #{@config_file} Run 'rubyforge setup' to prepare your env for access to Rubyforge - See http://newgem.rubyforge.org/rubyforge.html for more details EOS exit end end RUBYFORGE_USERNAME.replace @config["username"] end hoe = Hoe.new(GEM_NAME, GEM_VERSION) do |p| p.developer(AUTHOR, EMAIL) p.description = PROJECT_DESCRIPTION p.summary = PROJECT_SUMMARY p.url = PROJECT_URL p.rubyforge_name = PROJECT_NAME if PROJECT_NAME p.clean_globs |= ["{coverage,doc,log}/", "**/*.db", "profile_results.*", "**/.*.sw?", "*.gem", ".config", "**/.DS_Store"] GEM_DEPENDENCIES.each do |dep| p.extra_deps << dep end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dm-core-0.9.3 | tasks/hoe.rb |