2 # MogileFS is a Ruby client for Danga Interactive's open source distributed
5 # To read more about Danga's MogileFS: http://danga.com/mogilefs/
9 VERSION = '2.0.2'.freeze
12 # Raised when a socket remains unreadable for too long.
14 class Error < StandardError; end
15 class UnreadableSocketError < Error; end
16 class SizeMismatchError < Error; end
17 class ChecksumMismatchError < RuntimeError; end
18 class ReadOnlyError < Error
19 def message; 'readonly mogilefs'; end
21 class EmptyPathError < Error
22 def message; 'Empty path for mogile upload'; end
25 class UnsupportedPathError < Error; end
26 class RequestTruncatedError < Error; end
27 class InvalidResponseError < Error; end
28 class UnreachableBackendError < Error
29 def message; "couldn't connect to mogilefsd backend"; end
34 require 'mogilefs/backend'
35 require 'mogilefs/httpfile'
36 require 'mogilefs/client'
37 require 'mogilefs/bigfile'
38 require 'mogilefs/mogilefs'
39 require 'mogilefs/admin'