diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2011-12-28 03:17:12 -0800 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2011-12-28 03:17:12 -0800 |
commit | e7714404837a3e0ef9802817304c91d28a6c8447 (patch) | |
tree | cbe658c86ecd29ce94db79ea55204ebc172a5ac8 | |
parent | b90543f46b94af5d5c24720d8dce59e839c7409e (diff) | |
parent | b84f0ba39978cfa50cc459e43a3f02f57e0fdc54 (diff) | |
download | bacon-e7714404837a3e0ef9802817304c91d28a6c8447.tar.gz bacon-e7714404837a3e0ef9802817304c91d28a6c8447.tar.xz bacon-e7714404837a3e0ef9802817304c91d28a6c8447.zip |
Merge pull request #6 from manveru/master
Two minor fixes
-rw-r--r-- | Rakefile | 7 | ||||
-rw-r--r-- | lib/bacon.rb | 2 |
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 |