Skip to content

Instantly share code, notes, and snippets.

@remear
Created November 15, 2010 21:16
Show Gist options
  • Save remear/700965 to your computer and use it in GitHub Desktop.
Save remear/700965 to your computer and use it in GitHub Desktop.
PKG_FILES = FileList[
'[a-zA-Z]*',
'generators/**/*',
'lib/**/*',
'rails/**/*',
'tasks/**/*',
'test/**/*'
]
spec = Gem::Specification.new do |s|
s.name = "yaffle"
s.version = "0.0.1"
s.author = "Gleeful Yaffler"
s.email = "[email protected]"
s.homepage = "http://yafflers.example.com/"
s.platform = Gem::Platform::RUBY
s.summary = "Sharing Yaffle Goodness"
s.files = PKG_FILES.to_a
s.require_path = "lib"
s.has_rdoc = false
s.extra_rdoc_files = ["README"]
end
desc 'Turn this plugin into a gem.'
Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment