Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 17c96f19b5
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (31 sloc) 0.888 kb
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 |= GEM_CLEAN
p.spec_extras = GEM_EXTRAS if GEM_EXTRAS
GEM_DEPENDENCIES.each do |dep|
p.extra_deps << dep
end
end
Jump to Line
Something went wrong with that request. Please try again.