summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2011-12-28 03:17:12 -0800
committerChristian Neukirchen <chneukirchen@gmail.com>2011-12-28 03:17:12 -0800
commite7714404837a3e0ef9802817304c91d28a6c8447 (patch)
treecbe658c86ecd29ce94db79ea55204ebc172a5ac8
parentb90543f46b94af5d5c24720d8dce59e839c7409e (diff)
parentb84f0ba39978cfa50cc459e43a3f02f57e0fdc54 (diff)
downloadbacon-e7714404837a3e0ef9802817304c91d28a6c8447.tar.gz
bacon-e7714404837a3e0ef9802817304c91d28a6c8447.tar.xz
bacon-e7714404837a3e0ef9802817304c91d28a6c8447.zip
Merge pull request #6 from manveru/master
Two minor fixes
-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