Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
73 lines (56 sloc) 2.17 KB
require "rubygems"
require "rake/gempackagetask"
require "rake/rdoctask"
task :default => :package do
puts "Don't forget to write some tests!"
# This builds the actual gem. For details of what all these options
# mean, and other ones you can add, check the documentation here:
spec = do |s|
# Change these as appropriate = "panelbeater"
s.version = "0.1.6"
s.summary = "A gem for communicating with the cPanel and WHM API's" = "Jamie Dyer" = ""
s.homepage = ""
s.has_rdoc = false
# You should probably have a README of some kind. Change the filename
# as appropriate
# s.extra_rdoc_files = %w(README)
# s.rdoc_options = %w(--main README)
# Add any extra files to include in the gem (like your README)
s.files = %w() + Dir.glob("{**/*}")
s.test_files = Dir.glob('test/fixtures/*') + Dir.glob('test/*.rb') + Dir.glob('test/*.example')
s.require_paths = ["lib"]
# If you want to depend on other gems, add them here, along with any
# relevant versions
# If your tests use any gems, include them here
# If you want to publish automatically to rubyforge, you'll may need
# to tweak this, and the publishing task below too.
# This task actually builds the gem. We also regenerate a static
# .gemspec file, which is useful if something (i.e. GitHub) will
# be automatically building a gem for this project. If you're not
# using GitHub, edit as appropriate. do |pkg|
pkg.gem_spec = spec
# Generate the gemspec file for github.
file = File.dirname(__FILE__) + "/#{}.gemspec", "w") {|f| f << spec.to_ruby }
# Generate documentation do |rd|
rd.rdoc_dir = "rdoc"
desc 'Clear out RDoc and generated packages'
task :clean => [:clobber_rdoc, :clobber_package] do
rm "#{}.gemspec"