-
Notifications
You must be signed in to change notification settings - Fork 163
Customizing your project's gem specification
technicalpickles edited this page Aug 22, 2010
·
9 revisions
When you instantiate your Jeweler::Tasks, you have opportunity to customize your projects Gem::Specification . Here the bare minimum to get going:
Jeweler::Tasks.new do |gem|
gem.name = "the-perfect-gem"
gem.summary = "This gem is perfect"
gem.email = "josh@technicalpickles.com"
gem.homepage = "http://github.com/technicalpickles/the-perfect-gem"
gem.authors = ["Josh Nichols"]
end
In this example, the block variable gem is a brand new Gem::Specification that has been filed in with some defaults:
- files is set to a FileList containing some standard directories for a gem (ie the contents of bin, lib, rails, generators)
- "extra_rdoc_files"http://rubygems.org/read/chapter/20#extra_rdoc_files is set to a FileList containing README, ChangeLog, and LICENSE files.
- test_files is set to a FileList containing the standard test directories
- has_rdoc is set to true
- executables is populated from the bin directory