ruby-changes:23242
From: drbrain <ko1@a...>
Date: Wed, 11 Apr 2012 07:41:14 +0900 (JST)
Subject: [ruby-changes:23242] drbrain:r35293 (trunk): * ext/digest/sha2/lib/sha2.rb (Digest#block_length): Fixed method name
drbrain 2012-04-11 07:41:04 +0900 (Wed, 11 Apr 2012) New Revision: 35293 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35293 Log: * ext/digest/sha2/lib/sha2.rb (Digest#block_length): Fixed method name in documentation examples. Patch by naleski via https://github.com/ruby/ruby/pull/115 Modified files: trunk/ChangeLog trunk/ext/digest/sha2/lib/sha2.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 35292) +++ ChangeLog (revision 35293) @@ -1,3 +1,9 @@ +Wed Apr 11 07:38:33 2012 Eric Hodel <drbrain@s...> + + * ext/digest/sha2/lib/sha2.rb (Digest#block_length): Fixed method name + in documentation examples. Patch by naleski via + https://github.com/ruby/ruby/pull/115 + Wed Apr 11 07:33:13 2012 Eric Hodel <drbrain@s...> * pack.c (pack_pack): Warn when an invalid character is found in the Index: ext/digest/sha2/lib/sha2.rb =================================================================== --- ext/digest/sha2/lib/sha2.rb (revision 35292) +++ ext/digest/sha2/lib/sha2.rb (revision 35293) @@ -68,11 +68,11 @@ # # Returns the block length of the digest in bytes. # - # Digest::SHA256.new.digest_length * 8 + # Digest::SHA256.new.block_length * 8 # # => 512 - # Digest::SHA384.new.digest_length * 8 + # Digest::SHA384.new.block_length * 8 # # => 1024 - # Digest::SHA512.new.digest_length * 8 + # Digest::SHA512.new.block_length * 8 # # => 1024 def block_length @sha2.block_length -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/