P4.html #4

  • //
  • guest/
  • tony_smith/
  • perforce/
  • API/
  • Ruby/
  • main/
  • P4.html
  • Commits
# Change User Description Committed
#4 1324 Tony Smith P4/Ruby documentation update.
Changed doc layout and added
in docs for newly added methods and classes.
#3 1166 Tony Smith Followup to previous change.

Simplify the interface to getting results/errors and warnings.
No need for the P4Result class anymore so that's gone (though
it's still there as a C++ class because it's useful) and so
is P4#result. Now you get your errors/warnings and results using
P4#errors, P4#warnings and P4#output all of which return arrays.
#2 1165 Tony Smith Minor reshuffle.
Added the ability to disable exceptions
completely if you don't like them or to have them raised only
for errors (and not for warnings). Removed P4#warnings
interface and replaced it with P4#exception_level.

Some minor doc tweaks to go with the above change
#1 1164 Tony Smith Reworked exception handling (hopefully for the last time) in
P4/Ruby. Now exceptions are raised on completion of Perforce
commands if any errors or warnings were received as part of
executing the command.

This change also adds documentation, and indexes the Ruby
interface off my main page. Bad form to combine so many changes
in one changelist, but it's getting late and I want to get
them submitted!