Skip to content
This repository
Browse code

fixes Rake::GemPackageTask deprecation warnings from rake 0.9.0

  • Loading branch information...
commit 79e9a2983a91c5e84fe99cab3214e3747121e63f 1 parent c4a9467
Vijay Dev authored May 24, 2011
4  actionmailer/Rakefile
... ...
@@ -1,7 +1,7 @@
1 1
 #!/usr/bin/env rake
2 2
 require 'rake/testtask'
3 3
 require 'rake/packagetask'
4  
-require 'rake/gempackagetask'
  4
+require 'rubygems/package_task'
5 5
 
6 6
 desc "Default Task"
7 7
 task :default => [ :test ]
@@ -24,7 +24,7 @@ end
24 24
 
25 25
 spec = eval(File.read('actionmailer.gemspec'))
26 26
 
27  
-Rake::GemPackageTask.new(spec) do |p|
  27
+Gem::PackageTask.new(spec) do |p|
28 28
   p.gem_spec = spec
29 29
 end
30 30
 
4  actionpack/Rakefile
... ...
@@ -1,7 +1,7 @@
1 1
 #!/usr/bin/env rake
2 2
 require 'rake/testtask'
3 3
 require 'rake/packagetask'
4  
-require 'rake/gempackagetask'
  4
+require 'rubygems/package_task'
5 5
 
6 6
 desc "Default Task"
7 7
 task :default => :test
@@ -36,7 +36,7 @@ end
36 36
 
37 37
 spec = eval(File.read('actionpack.gemspec'))
38 38
 
39  
-Rake::GemPackageTask.new(spec) do |p|
  39
+Gem::PackageTask.new(spec) do |p|
40 40
   p.gem_spec = spec
41 41
 end
42 42
 
4  activemodel/Rakefile
@@ -20,11 +20,11 @@ namespace :test do
20 20
 end
21 21
 
22 22
 require 'rake/packagetask'
23  
-require 'rake/gempackagetask'
  23
+require 'rubygems/package_task'
24 24
 
25 25
 spec = eval(File.read("#{dir}/activemodel.gemspec"))
26 26
 
27  
-Rake::GemPackageTask.new(spec) do |p|
  27
+Gem::PackageTask.new(spec) do |p|
28 28
   p.gem_spec = spec
29 29
 end
30 30
 
4  activerecord/Rakefile
... ...
@@ -1,7 +1,7 @@
1 1
 #!/usr/bin/env rake
2 2
 require 'rake/testtask'
3 3
 require 'rake/packagetask'
4  
-require 'rake/gempackagetask'
  4
+require 'rubygems/package_task'
5 5
 
6 6
 require File.expand_path(File.dirname(__FILE__)) + "/test/config"
7 7
 
@@ -171,7 +171,7 @@ task :rebuild_frontbase_databases => 'frontbase:rebuild_databases'
171 171
 
172 172
 spec = eval(File.read('activerecord.gemspec'))
173 173
 
174  
-Rake::GemPackageTask.new(spec) do |p|
  174
+Gem::PackageTask.new(spec) do |p|
175 175
   p.gem_spec = spec
176 176
 end
177 177
 
4  activeresource/Rakefile
... ...
@@ -1,7 +1,7 @@
1 1
 #!/usr/bin/env rake
2 2
 require 'rake/testtask'
3 3
 require 'rake/packagetask'
4  
-require 'rake/gempackagetask'
  4
+require 'rubygems/package_task'
5 5
 
6 6
 desc "Default Task"
7 7
 task :default => [ :test ]
@@ -26,7 +26,7 @@ end
26 26
 
27 27
 spec = eval(File.read('activeresource.gemspec'))
28 28
 
29  
-Rake::GemPackageTask.new(spec) do |p|
  29
+Gem::PackageTask.new(spec) do |p|
30 30
   p.gem_spec = spec
31 31
 end
32 32
 
4  activesupport/Rakefile
... ...
@@ -1,5 +1,5 @@
1 1
 require 'rake/testtask'
2  
-require 'rake/gempackagetask'
  2
+require 'rubygems/package_task'
3 3
 
4 4
 task :default => :test
5 5
 Rake::TestTask.new do |t|
@@ -20,7 +20,7 @@ dist_dirs = [ "lib", "test"]
20 20
 
21 21
 spec = eval(File.read('activesupport.gemspec'))
22 22
 
23  
-Rake::GemPackageTask.new(spec) do |p|
  23
+Gem::PackageTask.new(spec) do |p|
24 24
   p.gem_spec = spec
25 25
 end
26 26
 
4  railties/Rakefile
... ...
@@ -1,6 +1,6 @@
1 1
 #!/usr/bin/env rake
2 2
 require 'rake/testtask'
3  
-require 'rake/gempackagetask'
  3
+require 'rubygems/package_task'
4 4
 
5 5
 require 'date'
6 6
 require 'rbconfig'
@@ -55,7 +55,7 @@ end
55 55
 
56 56
 spec = eval(File.read('railties.gemspec'))
57 57
 
58  
-Rake::GemPackageTask.new(spec) do |pkg|
  58
+Gem::PackageTask.new(spec) do |pkg|
59 59
   pkg.gem_spec = spec
60 60
 end
61 61
 

0 notes on commit 79e9a29

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