Skip to content
Permalink
Browse files

Add Rake Task for RubyGems.

  • Loading branch information...
JoergWMittag committed Aug 3, 2008
1 parent a63095d commit 66a6b9ca0e4a0caece26d0bcb812b1c24d142a19
Showing with 19 additions and 4 deletions.
  1. +1 −0 .gitignore
  2. +4 −4 rundaneum.gemspec
  3. +14 −0 tasks/gem.rake
@@ -0,0 +1 @@
pkg
@@ -1,19 +1,19 @@
#!/usr/bin/env ruby

projdir = File.expand_path(File.dirname(__FILE__))
projdir = File.dirname __FILE__

require 'rubygems'
require 'date'

spec = Gem::Specification.new do |s|
SPEC = Gem::Specification.new do |s|
s.name = 'rundaneum'
s.version = '0.0.0'
s.summary = 'A Knowledge Management System'
s.email = 'Jörg W Mittag <JoergWMittag+Rundaneum@GoogleMail.Com>'
s.homepage = 'https://JoergWMittag.LighthouseApp.Com/projects/15038/'
s.description = s.summary
s.author = 'Jörg W Mittag'
s.files = Dir[File.join(projdir, '**', '*')]
s.files = Dir[File.join(projdir, '**', '*.*')].reject { |file| file =~ /pkg/ }.collect { |file| file.gsub projdir, '.'}
s.test_files = Dir[File.join(projdir, 'spec', '**', '*_spec.rb')]
s.add_dependency 'facets', '~> 2.4.1'
s.add_development_dependency 'rspec', '~> 1.1.4'
@@ -22,5 +22,5 @@ end

if __FILE__ == $0
Gem::manage_gems
Gem::Builder.new(spec).build
Gem::Builder.new(SPEC).build
end
@@ -0,0 +1,14 @@
#!/usr/bin/env rake

projdir = File.expand_path(File.join(File.dirname(__FILE__), '..'))
$LOAD_PATH.unshift projdir unless $LOAD_PATH.include? projdir

require 'rake/gempackagetask'

load 'rundaneum.gemspec'

Rake::GemPackageTask.new(SPEC) do |pkg|
pkg.need_zip = true
pkg.need_tar_gz = true
pkg.need_tar_bz2 = true
end

0 comments on commit 66a6b9c

Please sign in to comment.
You can’t perform that action at this time.