lib/refile.rb in leifcr-refile-0.6.3 vs lib/refile.rb in leifcr-refile-0.7.0

- old
+ new

@@ -1,25 +1,33 @@ require "uri" require "fileutils" require "tempfile" -require "rest_client" require "logger" require "mime/types" module Refile # @api private - class Invalid < StandardError; end + class Error < StandardError; end # @api private + class Invalid < Error; end + + # @api private class InvalidID < Invalid; end # @api private class InvalidMaxSize < Invalid; end # @api private class InvalidFile < Invalid; end + # Raised when the given URL couldn't be parsed. + class InvalidUrl < Error; end + + # Raised when the given URL redirects more than allowed. + class TooManyRedirects < Error; end + # @api private class Confirm < StandardError def message "are you sure? this will remove all files in the backend, call as \ `clear!(:confirm)` if you're sure you want to do this" @@ -487,11 +495,13 @@ require "refile/version" require "refile/signature" require "refile/type" require "refile/backend_macros" require "refile/attachment_definition" + require "refile/download" require "refile/attacher" require "refile/attachment" + require "refile/attachment/multiple_attachments" require "refile/random_hasher" require "refile/file" require "refile/custom_logger" require "refile/app" require "refile/backend/file_system"