Rakefile in getopt-1.3.6 vs Rakefile in getopt-1.3.7
- old
+ new
@@ -1,23 +1,22 @@
-require 'rake'
-require 'rake/testtask'
-
-desc "Install the getopt package (non-gem)"
-task :install do
- dest = File.join(Config::CONFIG['sitelibdir'], 'getopt')
- Dir.mkdir(dest) unless File.exists? dest
- cp 'lib/getopt/std.rb', dest, :verbose => true
- cp 'lib/getopt/long.rb', dest, :verbose => true
-end
-
-desc "Install the getopt package as a gem"
-task :install_gem do
- ruby 'getopt.gemspec'
- file = Dir["*.gem"].first
- sh "gem install #{file}"
-end
-
-Rake::TestTask.new do |t|
- t.libs << 'lib'
- t.warning = true
- t.test_files = FileList['test/ts_all.rb']
-end
+require 'rake'
+require 'rake/testtask'
+
+desc "Install the getopt package (non-gem)"
+task :install do
+ dest = File.join(Config::CONFIG['sitelibdir'], 'getopt')
+ Dir.mkdir(dest) unless File.exists? dest
+ cp 'lib/getopt/std.rb', dest, :verbose => true
+ cp 'lib/getopt/long.rb', dest, :verbose => true
+end
+
+desc "Install the getopt package as a gem"
+task :install_gem do
+ ruby 'getopt.gemspec'
+ file = Dir["*.gem"].first
+ sh "gem install #{file}"
+end
+
+Rake::TestTask.new do |t|
+ t.warning = true
+ t.verbose = true
+end