Sha256: 80c2d6a5d60cf58e2e57530c03e9ceb629f90b380fa6cee10d0ac87133dfae1f

Contents?: true

Size: 1.88 KB

Versions: 2

Compression:

Stored size: 1.88 KB

Contents

require 'hoe'
require 'newgem/version'

AUTHOR        = "Dr Nic Williams"
EMAIL         = "drnicwilliams@gmail.com"
DESCRIPTION   = "Make your own gems at home"
GEM_NAME      = "newgem" # what ppl will type to install your gem
RUBYFORGE_PROJECT = "newgem"
HOMEPATH      = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
RUBYFORGE_USERNAME = "unknown"
if File.exists?(rubyforge_config_file = File.expand_path("~/.rubyforge/user-config.yml"))
  config = YAML.load(File.read(rubyforge_config_file))
  RUBYFORGE_USERNAME.replace config["username"]
end

REV = nil #File.read(".svn/entries")[/committed-rev="(\d+)"/, 1] rescue nil
# REV = `svn info`.each {|line| if line =~ /^Revision:/ then k,v = line.split(': '); break v.chomp; else next; end} rescue nil
VERS = Newgem::VERSION::STRING + (REV ? ".#{REV}" : "")
CLEAN.include ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store']

# Generate all the Rake tasks
# Run 'rake -T' to see list of generated tasks (from gem root directory)
hoe = Hoe.new(GEM_NAME, VERS) do |p|
  p.author = AUTHOR 
  p.description = DESCRIPTION
  p.email = EMAIL
  p.summary = DESCRIPTION
  p.url = HOMEPATH
  p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
  p.test_globs = ["test/**/test*.rb"]
  p.clean_globs |= CLEAN  #An array of file patterns to delete on clean.

  # == Optional
  p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
  p.extra_deps = [
    ['hoe', '>=1.3.0'],
    ['RedCloth','>=3.0.4'],
    ['syntax','>=1.0.0'],
    ['activesupport','>=1.4.2'],
    ['rubigen','>=1.0.3']
  ]
  #p.spec_extras    - A hash of extra values to set in the gemspec.
end

CHANGES = hoe.paragraphs_of('History.txt', 0..1).join("\n\n")
PATH    = (RUBYFORGE_PROJECT == GEM_NAME) ? RUBYFORGE_PROJECT : "\#{RUBYFORGE_PROJECT}/\#{GEM_NAME}"
hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
newgem-0.13.2 config/hoe.rb
newgem-0.13.3 config/hoe.rb