Sha256: 66377333df2182eb25b4cd4af01c846fc8e36a7cede4fae336aaba4990e5fd5c
Contents?: true
Size: 1.16 KB
Versions: 2
Compression:
Stored size: 1.16 KB
Contents
# Install .gem project packaging begin require 'rubygems/package_task' Gem::PackageTask.new($gemspec) do |t| # Name of the package t.name = $gemspec.name # Version of the package t.version = $gemspec.version # Directory used to store the package files t.package_dir = 'pkg' # True if a gzipped tar file (tgz) should be produced t.need_tar = false # True if a gzipped tar file (tar.gz) should be produced t.need_tar_gz = true # True if a bzip2'd tar file (tar.bz2) should be produced t.need_tar_bz2 = false # True if a zip file should be produced (default is false) t.need_zip = true # List of files to be included in the package. t.package_files = $gemspec.files # Tar command for gzipped or bzip2ed archives. t.tar_command = 'tar' # Zip command for zipped archives. t.zip_command = 'zip' end rescue LoadError task :gem do abort 'rubygems/package_task is not available. You should verify your rubygems installation' end task :package do abort 'rubygems/package_task is not available. You should verify your rubygems installation' end end
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
noe-1.1.0 | ./tasks/gem.rake |
noe-1.1.0 | ./templates/ruby/src/tasks/gem.rake |