[Rake-devel] PATCH: packagetask.rb contains error
Gavin Sinclair
gsinclair at soyabean.com.au
Thu Dec 4 21:02:12 EST 2003
Rake's Rakefile had problems caused by the error that this patch
fixes. The problem is that a RubyGems Version object doesn't dig
comparisons with symbols.
Gavin
Index: lib/rake/packagetask.rb
===================================================================
RCS file: /var/cvs/rake/rake/lib/rake/packagetask.rb,v
retrieving revision 1.11
diff -u -u -r1.11 packagetask.rb
--- lib/rake/packagetask.rb 28 Nov 2003 21:59:22 -0000 1.11
+++ lib/rake/packagetask.rb 4 Dec 2003 10:00:38 -0000
@@ -76,7 +76,7 @@
# Create the tasks defined by this task library.
def define
fail "Version required (or :noversion)" if @version.nil?
- @version = nil if @version == :noversion
+ @version = nil if :noversion == @version
desc "Build all the packages"
task :package
More information about the Rake-devel
mailing list