akr
9d326d261e
* lib/pp.rb (PP::PPMethods#pp_hash): don't sort keys because hash is
...
ordered.
(ENV.pretty_print): call pp_hash with sorted hash.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-14 02:14:16 +00:00
akr
acbffce267
* lib/pp.rb (PP::PPMethods#pp_hash): sort condition changed:
...
all keys have a same class which is kind of Comparable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-07 13:02:35 +00:00
akr
174b77b280
* lib/pp.rb (PP::PPMethods#pp_hash): sort if
...
all keys are strings, symbols or integers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-07 06:39:56 +00:00
akr
6f9ded1fb0
* lib/pp.rb: call original "method" method instead of redefined one.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-07 10:02:58 +00:00
matz
8ef2289a49
* lib/pp.rb (PP::PPMethods::seplist): revert last change to work
...
around wrapper bug. [ruby-dev:30840]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-05 05:48:45 +00:00
matz
4bacdc1e46
* bignum.c (bignorm): sizeof(long) may be smaller than
...
sizeof(VALUE). [ruby-dev:29013]
* ruby.h (FIXNUM_MAX): fixnum may be bigger than long.
* ruby.h (SIGNED_VALUE): signed integer of size of VALUE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-11 05:00:02 +00:00
ryan
2bf2f48a0b
cached rdoc diagrams, private rdoc comments, minor clarifications in debug.rb and pp.rb
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-08 23:17:53 +00:00
matz
7dd70df4b0
* lib/pp.rb (PP::PPMethods::seplist): should have preserved
...
original reference to the array. [ruby-dev:28747]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-21 08:20:12 +00:00
akr
eeda97f8e3
* lib/pp.rb (Kernel#pretty_inspect): defined for pretty printed
...
string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-16 17:05:22 +00:00
akr
55fc4f0c27
* lib/pp.rb (PP.mcall): new method.
...
(Struct#pretty_print): call Kernel#class and Struct#members even if
overriden.
(Struct#pretty_print_cycle): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-13 07:35:50 +00:00
akr
1717014d72
A trick for negative address removed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-30 05:02:37 +00:00
akr
1ebb904958
ChangeLog lib/pp.rb
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-30 04:44:12 +00:00
akr
5a6ed851fe
* lib/pp.rb (PP::PPMethods#object_address_group): adjust address format.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-28 11:26:39 +00:00
akr
7935361d36
* lib/pp.rb (PP::PPMethods#guard_inspect_key): support
...
__recursive_key__. [ruby-dev:25821]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-09 14:56:16 +00:00
matz
6645b92826
* object.c (inspect_obj): unintended space removal.
...
[ruby-dev:25810]
* eval.c (rb_exec_recursive): should not use NODE in disclosed
context. [ruby-dev:25812]
* io.c (rb_f_open): need not to check if to_open value is a
T_FILE. [ruby-dev:25812]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-07 02:05:08 +00:00
akr
1b178621c2
* lib/pp.rb: rdoced by Sam Roberts.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-06 02:55:16 +00:00
akr
25d8e7a119
* lib/pp.rb (File::Stat#pretty_print): Etc.getpwuid and Etc.getgrgid
...
may return nil. [ruby-talk:129826]
reported by Daniel Berger.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-06 02:41:15 +00:00
nobu
5d581bc314
* lib/pp.rb (PP#object_address_group): remove odd number of 'f'
...
prefixed to negative address.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-14 04:27:39 +00:00
akr
4d664a098d
* (lib/pp.rb, lib/prettyprint.rb): define seplist in PP::PPMethods
...
instead of PrettyPrint.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-27 01:46:05 +00:00
akr
166b3957e0
* lib/pathname.rb: use assert_raise instead of assert_raises.
...
* lib/pp.rb: ditto.
* lib/time.rb: ditto.
* lib/tsort.rb: ditto.
use TSortHash and TSortArray instead of Hash and Array in test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-11 17:36:37 +00:00
nobu
216a505751
wrong commit.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-08 07:54:34 +00:00
nobu
5e947e2d03
* lib/pp.rb (PP::PPMethods::object_address_group): suppress negative
...
sign for higher heap areas.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-08 07:46:18 +00:00
nahi
8fc2fa55f9
* lib/pp.rb (PPInspectTest#test_to_s_with_iv): rollback the previous
...
commit. [ruby-dev:22813]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-06 13:42:15 +00:00
nahi
c47d29da45
* lib/pp.rb (PPInspectTest#test_to_s_with_iv): remove instance
...
variable which is defined in the test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-06 13:24:17 +00:00
akr
0c792a32b7
* lib/prettyprint.rb (PrettyPrint#seplist): added.
...
* lib/pp.rb (PPMethods#pp_object): use seplist.
(PPMethods#pp_hash): ditto.
(Array#pretty_print): ditto.
(Struct#pretty_print): ditto.
(MatchData#pretty_print): ditto.
* lib/set.rb (Set#pretty_print): use seplist.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-05 14:59:46 +00:00
akr
05172c4211
* lib/pp.rb (Struct#pretty_print_cycle): follow 1.8 style.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-02 23:09:38 +00:00
akr
d837280dc8
* 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
with instance variables. [ruby-talk:91157]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-01 16:57:47 +00:00
akr
6abca35457
fix typos.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-07 11:31:21 +00:00
akr
ff9f067f89
* lib/pp.rb: don't use local variable `pp'.
...
* lib/prettyprint.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-16 12:22:15 +00:00
akr
0b5d8d2d66
* lib/pp.rb: refine to_s test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-11 04:53:57 +00:00
akr
93aa87568b
* lib/pp.rb (PP::ObjectMixin#pretty_print): refine to_s handling.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-10 20:53:58 +00:00
akr
b6c5aa09a8
add test for previous change.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-16 03:57:52 +00:00
akr
0eeff37f94
* lib/pp.rb (object_address_group): use to_s instead of name
...
to get name of class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-16 03:32:40 +00:00
akr
03e45b46ea
* lib/pp.rb (Kernel.pp): module function.
...
(MatchData#pretty_print): new method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-07 13:02:29 +00:00
akr
fce7467e60
* lib/pp.rb: Use Test::Unit.
...
* lib/prettyprint.rb: Ditto
* lib/time.rb: Ditto
* lib/tsort.rb: Ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-21 05:51:41 +00:00
akr
c2dbfe53fc
fix sharing_detection.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-20 19:54:56 +00:00
akr
d0ea0b4a8d
refine previous change.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-20 19:17:15 +00:00
akr
f345126746
* lib/pp.rb: Don't redefine `inspect'.
...
(pretty_print_inspect): new method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-20 17:58:24 +00:00
akr
96f82b243f
* lib/pp.rb (PP.singleline_pp): new method.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-12-02 16:16:05 +00:00
akr
e2d1e7cfe4
* lib/prettyprint.rb (PrettyPrint.singleline_format): new method.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-08 01:58:34 +00:00
akr
c47f24027a
* pp.rb (ARGF.pretty_print): implemented.
...
(PP.pp): arguments reordered.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-09-11 12:29:17 +00:00
akr
9c4a482229
* lib/time.rb (Time.rfc2822, Time#rfc2822): preserve localtimeness.
...
* lib/pp.rb: pretty_print_cycled is renamed to pretty_print_cycle.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-24 05:18:08 +00:00
akr
4e85b28085
expand TABs.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-07-03 02:49:42 +00:00
akr
ba8174d11e
made object address test to compare inspect's result.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-06-30 07:30:26 +00:00
akr
788181a4eb
fix object address test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-06-29 16:21:18 +00:00
matz
f0221db462
* re.c (rb_reg_expr_str): need to process backslashes properly.
...
* object.c (rb_any_to_a): declare Object#to_a to be obsolete.
* object.c (rb_Array): do not convert nil into [] automagically.
* object.c (rb_Integer): use "to_int" instead of
"to_i". [experimental]
* object.c (nil_to_f): new method.
* object.c (rb_Integer): Symbols and nil should cause error.
* object.c (rb_Float): nil should cause error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-06-28 14:42:46 +00:00
akr
ee852ed46d
lib/pp.rb: fix object address.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-06-28 08:55:10 +00:00
akr
571ff1d6b9
* lib/prettyprint.rb, lib/pp.rb: convenience methods added.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-06-27 12:01:07 +00:00
akr
e50f2d285f
* lib/prettyprint.rb: re-implemented for incremental output to handle
...
huge data. API is changed a bit.
* lib/pp.rb: adapt new pretty printing API.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-06-27 06:27:20 +00:00
akr
4795daf1bc
* lib/pp.rb (pp): return nil like p.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-03-25 18:24:46 +00:00