dspace.rb 1.32 KB
Newer Older
1
2
require "forwardable"
require "json"
3
require "resource_kit"
4
require "faraday"
5
require "active_support/all"
6

7
require_relative "dspace/version"
8
require_relative "dspace/resources/schema_registry_resource"
9
require_relative "dspace/resources/community_resource"
10
require_relative "dspace/resources/collection_resource"
11
require_relative "dspace/resources/authentication_resource"
12
require_relative "dspace/resources/bitstream_resource"
13
require_relative "dspace/resources/status_resource"
14
require_relative "dspace/resources/item_resource"
15
16
require_relative "dspace/builders/hash_builder"
require_relative "dspace/builders/model_builder"
17
require_relative "dspace/builders/tempfile_builder"
18
require_relative "dspace/community"
19
require_relative "dspace/collection"
20
require_relative "dspace/item"
Bruno Nocera Zanette's avatar
Bruno Nocera Zanette committed
21
require_relative "dspace/metadata"
22
require_relative "dspace/schema"
Bruno Nocera Zanette's avatar
Bruno Nocera Zanette committed
23
require_relative "dspace/metadata_field"
24
25
require_relative "dspace/bitstream"
require_relative "dspace/policy"
26
require_relative "dspace/client"
27

28
module Dspace
29
30

  class NotAuthorizedError < StandardError; end
31
32
33
34
  class NotFoundError < StandardError; end
  class MethodNotAllowedError < StandardError; end
  class UnsupportedMediaTypeError < StandardError; end
  class ServerError < StandardError; end
35
36
  class InvalidTokenError < StandardError; end
  class InvalidCredentialsError < StandardError; end
37

38
end