Skip to content
Browse files

Removed deprecated argument usage from Rakefile.

  • Loading branch information...
1 parent dcadc07 commit 4ab3c72e097a79647951aca74adbaa85458bb93f @jimweirich committed Mar 5, 2011
Showing with 9 additions and 12 deletions.
  1. +3 −6 Rakefile
  2. +3 −3 rakelib/rbx.rake
  3. +3 −3 rakelib/ruby19.rake
View
9 Rakefile
@@ -328,8 +328,7 @@ task :noop
#plugin "release_manager"
desc "Make a new release"
-task :release, :rel, :reuse, :reltest,
- :needs => [
+task :release, [:rel, :reuse, :reltest] => [
:prerelease,
:clobber,
"test:all",
@@ -379,8 +378,7 @@ task :prerelease, :rel, :reuse, :reltest do |t, args|
end
end
-task :update_version, :rel, :reuse, :reltest,
- :needs => [:prerelease] do |t, args|
+task :update_version, [:rel, :reuse, :reltest] => [:prerelease] do |t, args|
if args.rel == CURRENT_VERSION
announce "No version change ... skipping version update"
else
@@ -406,8 +404,7 @@ task :update_version, :rel, :reuse, :reltest,
end
desc "Tag all the CVS files with the latest release number (REL=x.y.z)"
-task :tag, :rel, :reuse, :reltest,
- :needs => [:prerelease] do |t, args|
+task :tag, [:rel, :reuse, :reltest] => [:prerelease] do |t, args|
reltag = "REL_#{args.rel.gsub(/\./, '_')}"
reltag << args.reuse.gsub(/\./, '_') if args.reuse
announce "Tagging Repository with [#{reltag}]"
View
6 rakelib/rbx.rake
@@ -62,19 +62,19 @@ namespace "rbx" do
end
desc "Run the unit tests in Ruby 1.9"
- task :units, :opts, :needs => [:env19] do |t, args|
+ task :units, [:opts] => [:env19] do |t, args|
test_files = FileList['test/lib/*_test.rb']
Rbx.run_tests(test_files, args.opts)
end
desc "Run the functional tests in Ruby 1.9"
- task :functionals, :opts, :needs => [:env19] do |t, args|
+ task :functionals, [:opts] => [:env19] do |t, args|
test_files = FileList['test/functional/*_test.rb']
Rbx.run_tests(test_files, args.opts)
end
desc "Run the all the tests in Ruby 1.9"
- task :all, :opts, :needs => [:env19] do |t, args|
+ task :all, [:opts] => [:env19] do |t, args|
test_files = FileList['test/functional/*_test.rb', 'test/lib/*_test.rb']
Rbx.run_tests(test_files, args.opts)
end
View
6 rakelib/ruby19.rake
@@ -68,19 +68,19 @@ namespace "ruby19" do
end
desc "Run the unit tests in Ruby 1.9"
- task :units, :opts, :needs => [:env19] do |t, args|
+ task :units, [:opts] => [:env19] do |t, args|
test_files = FileList['test/lib/*_test.rb']
Ruby19.run_tests(test_files, args.opts)
end
desc "Run the functional tests in Ruby 1.9"
- task :functionals, :opts, :needs => [:env19] do |t, args|
+ task :functionals, [:opts] => [:env19] do |t, args|
test_files = FileList['test/functional/*_test.rb']
Ruby19.run_tests(test_files, args.opts)
end
desc "Run the all the tests in Ruby 1.9"
- task :all, :opts, :needs => [:env19] do |t, args|
+ task :all, [:opts] => [:env19] do |t, args|
test_files = FileList['test/*_test.rb', 'test/functional/*_test.rb', 'test/lib/*_test.rb']
Ruby19.run_tests(test_files, args.opts)
end

0 comments on commit 4ab3c72

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