Skip to content
Browse files

Added a test task, updated the file list and added a spec license to …

…the Rakefile.
  • Loading branch information...
1 parent e826a8f commit 6901d09b69b4dbd5f2223295714fb0b49d49e7cb Daniel Berger committed Dec 18, 2009
Showing with 26 additions and 14 deletions.
  1. +26 −14 Rakefile
View
40 Rakefile
@@ -58,23 +58,28 @@ end
#
PKG_FILES = FileList[
- "README","bin/example.rb","ext/extconf.rb",
- "ext/ruby_krb5_auth.c","COPYING","TODO","Rakefile"
+ "README",
+ "examples/example.rb",
+ "ext/extconf.rb",
+ "ext/ruby_krb5_auth.c",
+ "test/test_krb5.rb",
+ "Rakefile"
]
SPEC = Gem::Specification.new do |s|
- s.name = PKG_NAME
- s.version = PKG_VERSION
- s.email = "clalance@redhat.com"
- s.homepage = "http://rubyforge.org/projects/krb5-auth/"
- s.summary = "Kerberos binding for Ruby"
- s.files = PKG_FILES
- s.autorequire = "Krb5Auth"
- s.require_paths = [ "ext" ]
- s.extensions = "ext/extconf.rb"
- s.author = "Chris Lalancette"
- s.platform = Gem::Platform::RUBY
- s.has_rdoc = true
+ s.name = PKG_NAME
+ s.version = PKG_VERSION
+ s.email = "clalance@redhat.com"
+ s.homepage = "http://rubyforge.org/projects/krb5-auth/"
+ s.summary = "Kerberos binding for Ruby"
+ s.license = "LGPL"
+ s.files = PKG_FILES
+ s.autorequire = "Krb5Auth"
+ s.require_paths = [ "ext" ]
+ s.extensions = "ext/extconf.rb"
+ s.author = "Chris Lalancette"
+ s.platform = Gem::Platform::RUBY
+ s.has_rdoc = true
end
Rake::GemPackageTask.new(SPEC) do |pkg|
@@ -101,3 +106,10 @@ end
desc "Default task: build all"
task :default => [ :build, :rdoc, :rpm ] do |t|
end
+
+Rake::TestTask.new(:test) do |test|
+ task :test => [:build]
+ test.libs << 'ext'
+ test.warning = true
+ test.verbose = true
+end

0 comments on commit 6901d09

Please sign in to comment.
Something went wrong with that request. Please try again.