Module: Buildr::PackageAsGem
- Included in:
- Project
- Defined in:
- lib/buildr/packaging/gems.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#package_as_gem(file_name) ⇒ Object
:nodoc:.
Instance Method Details
#package_as_gem(file_name) ⇒ Object
:nodoc:
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/buildr/packaging/gems.rb', line 84 def package_as_gem(file_name) #:nodoc: PackageGemTask.define_task(file_name).tap do |gem| %w{ lib test doc }.each do |dir| gem.include :from=>_(dir), :path=>dir if File.directory?(_(dir)) end gem.spec do |spec| spec.name = id spec.version = version spec.summary = full_comment spec.has_rdoc = true spec. << '--title' << comment spec.require_path = 'lib' end end end |