backend: cleaner newline handling of error strings
commitb34465591ba83034985dc4be5fa3516ae059f408
authorEric Wong <normalperson@yhbt.net>
Fri, 26 Jun 2009 18:40:37 +0000 (26 11:40 -0700)
committerEric Wong <normalperson@yhbt.net>
Fri, 26 Jun 2009 20:36:58 +0000 (26 13:36 -0700)
tree8c2bf43193146a48faa24253e4498693a48cf532
parent19ba6f2602ffc5e54fc91e22d28f6231290c15bc
backend: cleaner newline handling of error strings

IO#gets respects "$/" which may be altered outside of our
control.  So force gets to use "\n" which will also match "\r\n"
(in case the mogilefs protocol changes subtly in the future).
There's also no point in exposing the trailing "\r\n" from the
network protocol to our users.
lib/mogilefs/backend.rb
test/test_backend.rb