0
-require 'capsize/version'
0
-AUTHOR = 'Glenn Rempe' # can also be an array of Authors
0
-EMAIL = "grempe@rubyforge.org"
0
-DESCRIPTION = "Capsize is a Capistrano plugin used to provide an easy way to manage and script interaction with the Amazon EC2 service using the amazon-ec2 Ruby gem."
0
-GEM_NAME = 'capsize' # what ppl will type to install your gem
0
-RUBYFORGE_PROJECT = 'capsize' # The unix name for your project
0
-HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
0
-DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
0
-@config_file = "~/.rubyforge/user-config.yml"
0
-RUBYFORGE_USERNAME = "grempe"
0
- @config = YAML.load(File.read(File.expand_path(@config_file)))
0
-ERROR: No rubyforge config file found: #{@config_file}
0
-Run 'rubyforge setup' to prepare your env for access to Rubyforge
0
- - See http://newgem.rubyforge.org/rubyforge.html for more details
0
- RUBYFORGE_USERNAME.replace @config["username"]
0
-# UNCOMMENT IF REQUIRED:
0
-# REV = `svn info`.each {|line| if line =~ /^Revision:/ then k,v = line.split(': '); break v.chomp; else next; end} rescue nil
0
-VERS = Capsize::VERSION::STRING + (REV ? ".#{REV}" : "")
0
-RDOC_OPTS = ['--quiet', '--title', 'capsize documentation',
0
- "--opname", "index.html",
0
- "--main", "README.txt",
0
- @extra_deps.reject! { |x| Array(x).first == 'hoe' }
0
-# Generate all the Rake tasks
0
-# Run 'rake -T' to see list of generated tasks (from gem root directory)
0
-hoe = Hoe.new(GEM_NAME, VERS) do |p|
0
- p.description = DESCRIPTION
0
- p.summary = DESCRIPTION
0
- p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
0
- p.test_globs = ["test/**/test_*.rb"]
0
- p.clean_globs |= ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store'] #An array of file patterns to delete on clean.
0
- p.changes = p.paragraphs_of("History.txt", 0..1).join("\\n\\n")
0
- #p.extra_deps = [] # An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
0
- p.extra_deps = [['capistrano', '>= 2.1.0'], ['amazon-ec2', '>= 0.2.6'], ['rcov', '>= 0.8.1.2.0'], ['SQS', '>= 0.1.5'], ['builder', '>= 2.1.2'], ['RedCloth', '>= 3.0.4']]
0
- #p.spec_extras = {} # A hash of extra values to set in the gemspec.
0
- :extra_rdoc_files => ["README.txt", "History.txt"],
0
- :rdoc_options => RDOC_OPTS,
0
- :autorequire => "capsize"
0
-CHANGES = hoe.paragraphs_of('History.txt', 0..1).join("\\n\\n")
0
-PATH = (RUBYFORGE_PROJECT == GEM_NAME) ? RUBYFORGE_PROJECT : "#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
0
-hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')