commit eabc808e1f79297aff65bb9e3adacf59a72b90ba
parent e2aa05a0ceaf03409d5979087d8c50546e53ffe1
Author: William Morgan <wmorgan-sup@masanjin.net>
Date: Sun, 17 May 2009 11:36:52 -0700
make the default MBox start offset be 0, not nil
This makes writing unit tests easier.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/mbox/loader.rb b/lib/sup/mbox/loader.rb
@@ -9,7 +9,7 @@ class Loader < Source
attr_accessor :labels
## uri_or_fp is horrific. need to refactor.
- def initialize uri_or_fp, start_offset=nil, usual=true, archived=false, id=nil, labels=[]
+ def initialize uri_or_fp, start_offset=0, usual=true, archived=false, id=nil, labels=[]
@mutex = Mutex.new
@labels = ((labels || []) - LabelManager::RESERVED_LABELS).uniq.freeze