[Rubygems-developers] Fwd: Bug in Rubygems: Testing of packages, missing return.

Chad Fowler chad at chadfowler.com
Thu Jan 20 07:52:51 EST 2005


On Jan 19, 2005, at 1:02 PM, Austin Ziegler wrote:

> I am working with Kaspar Schiess on the release of Text::Reform (now
> part of the Text Formatting project on Rubyforge) and we were doing
> some checking around and found the following problem. He's also got a
> resolution for you.
>


Thanks.  Applied.

Chad



> ---------- Forwarded message ----------
> From: Kaspar Schiess <eule at space.ch>
> Date: Wed, 19 Jan 2005 19:01:27 +0100
> Subject: Bug in Rubygems: Testing of packages, missing return.
> To: Austin Ziegler <halostatue at gmail.com>
>
> Hello Austin,
>
> Thank you for forwarding:
>
> Installing a package with
>
>    gem install -t package.gem
>
> fails with
>
> ERROR:  While executing gem ... (NoMethodError)
>      undefined method `passed?' for 0:Fixnum
>
> because of Validator#unit_test NOT returning result. The attached patch
> will fix that ('return' being optional, that's a question of style, but
> it tends not to be forgotten that way.. ;) ).
>
> --- validator.rb        Wed Jan 19 18:56:43 2005
> +++ validator.rb.new    Wed Jan 19 18:55:48 2005
> @@ -139,6 +139,7 @@
>           #end
>         end
>         Dir.chdir(start_dir)
> +      return result
>       end
>
>       def remove_leading_dot_dir(path)
>
> best regards,
> kaspar
>
> hand manufactured code - www.tua.ch/ruby
>
>
>
>
> -- 
> Austin Ziegler * halostatue at gmail.com
>                * Alternate: austin at halostatue.ca
> _______________________________________________
> Rubygems-developers mailing list
> Rubygems-developers at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rubygems-developers



More information about the Rubygems-developers mailing list