Skip to content


Subversion checkout URL

You can clone with
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

62 lines (49 sloc) 1.846 kB
require "rubygems"
require "rake/gempackagetask"
require "rake/rdoctask"
require "rake/testtask" do |t|
t.libs << "test"
t.test_files = FileList["test/**/*_test.rb"]
t.verbose = true
task :default => ["test"]
# 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 = "spectrum"
s.version = "0.1.0"
s.summary = "A library for extracting colors from text. Or indeed converting color names to hex and hex to color names." = "Ben Sales" = ""
s.homepage = ""
s.has_rdoc = true
s.extra_rdoc_files = %w(README.markdown)
s.rdoc_options = %w(--main README.markdown)
# Add any extra files to include in the gem
s.files = %w(README.markdown) + Dir.glob("{test,lib/**/*}")
s.require_paths = ["lib"]
# If you want to depend on other gems, add them here, along with any
# relevant versions
# s.add_dependency("some_other_gem", "~> 0.1.0")
# If your tests use any gems, include them here
# s.add_development_dependency("mocha") # for example
# This task actually builds the gem.
# To publish your gem online, install the 'gemcutter' gem; Read more
# about that here: do |pkg|
pkg.gem_spec = spec
# Generate documentation do |rd|
rd.main = "README.markdown"
rd.rdoc_files.include("README.markdown", "lib/**/*.rb")
rd.rdoc_dir = "rdoc"
desc 'Clear out RDoc and generated packages'
task :clean => [:clobber_rdoc, :clobber_package]
Jump to Line
Something went wrong with that request. Please try again.