Rakefile in win32-event-0.5.2 vs Rakefile in win32-event-0.6.0
- old
+ new
@@ -1,18 +1,14 @@
require 'rake'
require 'rake/testtask'
-require 'rbconfig'
-include Config
+require 'rake/clean'
-namespace 'gem' do
- desc 'Remove existing .gem file from the current directory'
- task :clean do
- Dir['*.gem'].each{ |f| File.delete(f) }
- end
+CLEAN.include("**/*.gem", "**/*.rbc")
+namespace 'gem' do
desc 'Create the win32-event gem'
- task :create do
+ task :create => [:clean] do
spec = eval(IO.read('win32-event.gemspec'))
Gem::Builder.new(spec).build
end
desc 'Install the win32-event gem'
@@ -24,5 +20,7 @@
Rake::TestTask.new do |t|
t.verbose = true
t.warning = true
end
+
+task :default => :test