summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Rakefile7
-rw-r--r--lib/bacon.rb2
2 files changed, 4 insertions, 5 deletions
diff --git a/Rakefile b/Rakefile
index b0d1a1f..3d58cfa 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,5 +1,5 @@
 # Rakefile for Bacon.  -*-ruby-*-
-require 'rake/rdoctask'
+require 'rdoc/task'
 require 'rake/testtask'
 
 
@@ -85,7 +85,7 @@ begin
   require 'rake'
   require 'rake/clean'
   require 'rake/packagetask'
-  require 'rake/gempackagetask'
+  require 'rubygems/package_task'
   require 'fileutils'
 rescue LoadError
   # Too bad.
@@ -118,8 +118,7 @@ http://github.com/chneukirchen/bacon
 
   task :gem => [:chmod, :changelog]
 
-  Rake::GemPackageTask.new(spec) do |p|
-    p.gem_spec = spec
+  Gem::PackageTask.new(spec) do |p|
     p.need_tar = false
     p.need_zip = false
   end
diff --git a/lib/bacon.rb b/lib/bacon.rb
index c3c4f4f..697719d 100644
--- a/lib/bacon.rb
+++ b/lib/bacon.rb
@@ -264,7 +264,7 @@ class Proc
 
   def change?
     pre_result = yield
-    called = call
+    call
     post_result = yield
     pre_result != post_result
   end