Change 1426

tony_smith (Tony Smith)
Tony Smith committed this change into //guest/tony_smith/perforce/API/Ruby/main
Request Review
Download .zip
Cleaned up the debug output a little.
Introduced some debug levels
so you can decide (roughly) what output you want to see. Level 1
shows command execution, connect and disconnect. Level 2 includes
Level 1 and also shows the RPC callbacks as they happen. Level 3
includes 1 and 2 and also shows when Ruby garbage collection takes
place.

Converted all the simple methods of the form P4#meth( arg ) to
       aliases for P4#meth=. Added P4#debug= to complete the scheme. The
P4#meth( arg ) forms are now deprecated. i.e. you should use:

    p4.user = "tony"

and not:

    p4.user( "tony" )

It's just more Ruby-like.
  • Files 8
  • Comments 0
8 edited 0 added 0 deleted
Changes#7
Loading...
clientuserruby.cc#7
Loading...
doc/P4.html#2
Loading...
lib/P4.rb#8
Loading...
p4.cc#12
Loading...
p4clientapi.cc#10
Loading...
p4clientapi.h#9
Loading...
p4rb_version.h#11
Loading...
Tip: Use n and p to cycle through the changes.