Skip to content

Commit

Permalink
Removed deprecated argument usage from Rakefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimweirich committed Mar 5, 2011
1 parent dcadc07 commit 4ab3c72
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
9 changes: 3 additions & 6 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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
Expand All @@ -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}]"
Expand Down
6 changes: 3 additions & 3 deletions rakelib/rbx.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions rakelib/ruby19.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4ab3c72

Please sign in to comment.