[Rubygems-developers] [rubygems] Build broken by chadfowler (#1221)

Marcus Rueckert darix at web.de
Mon Mar 26 06:31:47 EDT 2007


On 2007-03-26 00:20:42 -0400, Jim Weirich wrote:
> The source_index.rb file was changed to use hexdigest, but in doing so
> caused the following errors:
> 
> >   1) Error:
> > test_index_signature(TestSourceIndex):
> > ArgumentError: wrong number of arguments (1 for 0)
> >     ./lib/rubygems/source_index.rb:177:in `hexdigest'
> >     ./lib/rubygems/source_index.rb:177:in `index_signature'
> >     ./test/test_source_index.rb:174:in `test_index_signature'
> >
> >   2) Error:
> > test_signature(TestSourceIndex):
> > ArgumentError: wrong number of arguments (1 for 0)
> >     ./lib/rubygems/source_index.rb:182:in `hexdigest'
> >     ./lib/rubygems/source_index.rb:182:in `gem_signature'
> >     ./test/test_source_index.rb:162:in `test_signature'
> 
> The line in question is:
> 
>       Digest::SHA256.new.hexdigest(@gems[gem_full_name].to_yaml).to_s
> 
> Is there any reason this shouldn't read:
> 
>       Digest::SHA256.new(@gems[gem_full_name].to_yaml).hexdigest

wasnt this api changed in 1.8.6?

    darix

-- 
           openSUSE - SUSE Linux is my linux
               openSUSE is good for you
                   www.opensuse.org


More information about the Rubygems-developers mailing list