ruby-changes:36638
From: usa <ko1@a...>
Date: Sat, 6 Dec 2014 04:35:31 +0900 (JST)
Subject: [ruby-changes:36638] usa:r48719 (trunk): * lib/pp.rb (File::Stat#pritty_print): some platforms (such as Windows)
usa 2014-12-06 04:35:19 +0900 (Sat, 06 Dec 2014) New Revision: 48719 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48719 Log: * lib/pp.rb (File::Stat#pritty_print): some platforms (such as Windows) does not have major/minor parts of device. Modified files: trunk/ChangeLog trunk/lib/pp.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 48718) +++ ChangeLog (revision 48719) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat Dec 6 04:33:52 2014 NAKAMURA Usaku <usa@r...> + + * lib/pp.rb (File::Stat#pritty_print): some platforms (such as Windows) + does not have major/minor parts of device. + Fri Dec 5 22:43:04 2014 SHIBATA Hiroshi <shibata.hiroshi@g...> * ext/psych/lib/psych.rb: bump version to 2.0.8 Index: lib/pp.rb =================================================================== --- lib/pp.rb (revision 48718) +++ lib/pp.rb (revision 48719) @@ -469,8 +469,10 @@ class File < IO # :nodoc: https://github.com/ruby/ruby/blob/trunk/lib/pp.rb#L469 q.comma_breakable q.group { q.text sprintf("rdev=0x%x", self.rdev) - q.breakable - q.text sprintf('(%d, %d)', self.rdev_major, self.rdev_minor) + if self.rdev_major && self.rdev_minor + q.breakable + q.text sprintf('(%d, %d)', self.rdev_major, self.rdev_minor) + end } q.comma_breakable q.text "size="; q.pp self.size; q.comma_breakable -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/