ruby-changes:8455
From: yugui <ko1@a...>
Date: Tue, 28 Oct 2008 16:46:35 +0900 (JST)
Subject: [ruby-changes:8455] Ruby:r19987 (ruby_1_9_1): * tool/make-snapshot.rb: had returned wrong sizes for generated
yugui 2008-10-28 16:46:08 +0900 (Tue, 28 Oct 2008) New Revision: 19987 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19987 Log: * tool/make-snapshot.rb: had returned wrong sizes for generated archives. Modified files: branches/ruby_1_9_1/ChangeLog branches/ruby_1_9_1/tool/make-snapshot Index: ruby_1_9_1/ChangeLog =================================================================== --- ruby_1_9_1/ChangeLog (revision 19986) +++ ruby_1_9_1/ChangeLog (revision 19987) @@ -1,5 +1,10 @@ -Tue Oct 28 12:42:28 2008 Yuki Sonoda <yugui@y...> +Tue Oct 28 16:43:05 2008 Yuki Sonoda (Yugui) <yugui@y...> + * tool/make-snapshot.rb: had returned wrong sizes for generated + archives. + +Tue Oct 28 12:42:28 2008 Yuki Sonoda (Yugui) <yugui@y...> + * tool/make-snapshot.rb (package): did not accept tagnames with the prefix "previewN" Index: ruby_1_9_1/tool/make-snapshot =================================================================== --- ruby_1_9_1/tool/make-snapshot (revision 19986) +++ ruby_1_9_1/tool/make-snapshot (revision 19987) @@ -1,4 +1,5 @@ #!/usr/bin/ruby -s +# -*- coding: US-ASCII -*- require 'uri' require 'digest/md5' require 'digest/sha2' @@ -191,11 +192,14 @@ revisions.collect {|rev| package(rev, destdir)}.flatten.each do |name| name or next - str = open(name, "rb") {|f| f.read} + str = open(name, "rb:binary") {|f| f.read} md5 = Digest::MD5.hexdigest str sha = Digest::SHA256.hexdigest str - puts "MD5(#{name})= #{md5}" - puts "SHA256(#{name})= #{sha}" - puts "SIZE(name)= #{str.size}" + puts "* #{name}" + puts " SIZE: #{str.bytesize} bytes" + puts " MD5: #{md5}" + puts " SHA256: #{sha}" puts end + +# vim:fileencoding=US-ASCII sw=2 ts=4 noexpandtab ff=unix -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/