Skip to content

Commit 2992929

Browse files
committed
Fix rake tasks for latest rubygems/rake
1 parent c54cd11 commit 2992929

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Rakefile

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ begin; require 'rubygems'; rescue LoadError; end
66

77
require 'rake'
88
require 'rake/clean'
9-
require 'rake/gempackagetask'
109
require 'time'
1110
require 'date'
1211
require 'bacon'

tasks/gem.rake

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
# Distributed under the terms of the MIT license.
33
# The full text can be found in the LICENSE file included with this software
44
#
5-
require 'rake/gempackagetask'
5+
6+
require 'rubygems/package_task'
67

78
desc "make a gemspec"
89
task :gemspec => [:manifest, :changelog, :authors] do
@@ -21,7 +22,7 @@ task :uninstall => [:clean] do
2122
sh %{gem uninstall -x #{GEMSPEC.name}}
2223
end
2324

24-
Rake::GemPackageTask.new(GEMSPEC) do |p|
25+
Gem::PackageTask.new(GEMSPEC) do |p|
2526
p.need_tar = true
2627
p.need_zip = true
2728
end

tasks/schema.rake

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ task :test_db do
88
end
99

1010
desc "Dump the test schema"
11-
task :schema, :format, :needs => [:test_db] do |t,args|
11+
task :schema, [:format] => [:test_db] do |t,args|
1212
args.with_defaults(:format => "html")
1313
descs = TinyDialer.db.tables.inject([]) do |arr, table|
1414
arr << "\\dd #{table};\\d+ #{table}"

0 commit comments

Comments
 (0)