From a292199da4ff0dfd8fef1754177e3ee63ffc13fe Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 8 Feb 2004 07:46:18 +0000 Subject: * lib/pp.rb (PP::PPMethods::object_address_group): suppress negative sign for higher heap areas. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 17 +++++++++++------ lib/pp.rb | 2 +- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7103247e5..b753a9d60 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,11 @@ +Sun Feb 8 16:46:13 2004 Nobuyoshi Nakada + + * lib/pp.rb (PP::PPMethods::object_address_group): suppress negative + sign for higher heap areas. + Fri Feb 6 22:48:16 2004 Dave Thomas - * lib/rdoc/generators/html_generator.rb (gen_url): Support + * lib/rdoc/generators/html_generator.rb (gen_url): Support https in RDoc hyperlinks Fri Feb 6 22:41:22 2004 NAKAMURA, Hiroshi @@ -57,7 +62,7 @@ Mon Feb 2 01:54:00 2004 Tanaka Akira * lib/pp.rb (Struct#pretty_print): make it 1.8 style. (Numeric#pretty_print, FalseClass#pretty_print) - (TrueClass#pretty_print, Module#pretty_print): fix pp for objects + (TrueClass#pretty_print, Module#pretty_print): fix pp for objects with instance variables. [ruby-talk:91157] * lib/open-uri.rb (URI::Generic#find_proxy): return nil on loopback @@ -96,18 +101,18 @@ Sat Jan 31 09:20:32 2004 NAKAMURA, Hiroshi Sat Jan 31 01:00:32 2004 NAKAMURA, Hiroshi * lib/soap/wsdlDriver.rb, lib/wsdl/soap/operation.rb: add support of - "parts" attribute of soap:body element in WSDL. + "parts" attribute of soap:body element in WSDL. * lib/wsdl/xmlSchema/schema.rb: friendly warning message for - simpleType element which is not supported for now. + simpleType element which is not supported for now. * lib/soap/mapping/factory.rb: deleted unused methods. * lib/soap/mapping/rubytypeFactory.rb: do no ignore case while xsi:type - string <-> Ruby class name matching. + string <-> Ruby class name matching. * test/wsdl/soap/{soapbodyparts.wsdl,test_soapbodyparts.wsdl}: new - files. + files. Thu Jan 29 23:56:00 2004 WATANABE Hirofumi diff --git a/lib/pp.rb b/lib/pp.rb index 81a453d9a..8176e2d6a 100644 --- a/lib/pp.rb +++ b/lib/pp.rb @@ -193,7 +193,7 @@ class PP < PrettyPrint end def object_address_group(obj, &block) - group(1, sprintf('#<%s:0x%x', obj.class.to_s, obj.__id__ * 2), '>', &block) + group(1, sprintf('#<%s:0x%.x', obj.class.to_s, obj.__id__ * 2), '>', &block) end def comma_breakable -- cgit