Sha256: 44a5d2832162b7349c928d8916db7514fd4b48e406e344f1ef17863e34f31409

Contents?: true

Size: 1.03 KB

Versions: 8

Compression:

Stored size: 1.03 KB

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
 
# Remove hoe dependency
class Hoe
  def extra_dev_deps
    @extra_dev_deps.reject! { |dep| dep[0] == "hoe" }
    @extra_dev_deps
  end
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 |= %w[ {coverage,doc,log,tmp} **/*.{log,db} profile_results.* **/.DS_Store spec/db ]
 
  GEM_DEPENDENCIES.each do |dep|
    p.extra_deps << dep
  end
 
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
snusnu-dm-accepts_nested_attributes-0.0.1 tasks/hoe.rb
snusnu-dm-accepts_nested_attributes-0.0.2 tasks/hoe.rb
snusnu-dm-accepts_nested_attributes-0.0.3 tasks/hoe.rb
snusnu-dm-accepts_nested_attributes-0.0.4 tasks/hoe.rb
snusnu-dm-accepts_nested_attributes-0.0.5 tasks/hoe.rb
snusnu-dm-accepts_nested_attributes-0.0.6 tasks/hoe.rb
snusnu-dm-accepts_nested_attributes-0.10.0 tasks/hoe.rb
snusnu-dm-accepts_nested_attributes-0.11.0 tasks/hoe.rb