lib/tracker_api.rb in tracker_api-1.7.1 vs lib/tracker_api.rb in tracker_api-1.8.0

- old
+ new

@@ -1,10 +1,12 @@ require 'tracker_api/version' # dependencies require 'faraday' require 'faraday_middleware' +require 'pathname' +require 'mimemagic' if defined?(ActiveSupport) require 'active_support/core_ext/object/blank' else require 'core_ext/object/blank' @@ -24,13 +26,16 @@ module TrackerApi autoload :Error, 'tracker_api/error' autoload :Client, 'tracker_api/client' autoload :Logger, 'tracker_api/logger' + autoload :FileUtility, 'tracker_api/file_utility' module Errors class UnexpectedData < StandardError; end + class ClientError < Error; end + class ServerError < Error; end end module Endpoints autoload :Activity, 'tracker_api/endpoints/activity' autoload :Epic, 'tracker_api/endpoints/epic' @@ -53,10 +58,12 @@ autoload :Comments, 'tracker_api/endpoints/comments' autoload :Comment, 'tracker_api/endpoints/comment' autoload :Webhook, 'tracker_api/endpoints/webhook' autoload :Webhooks, 'tracker_api/endpoints/webhooks' autoload :StoryTransitions, 'tracker_api/endpoints/story_transitions' + autoload :Attachment, 'tracker_api/endpoints/attachment' + autoload :Attachments, 'tracker_api/endpoints/attachments' end module Resources module Shared autoload :Base, 'tracker_api/resources/shared/base' @@ -83,7 +90,8 @@ autoload :Task, 'tracker_api/resources/task' autoload :TimeZone, 'tracker_api/resources/time_zone' autoload :Comment, 'tracker_api/resources/comment' autoload :Webhook, 'tracker_api/resources/webhook' autoload :StoryTransition, 'tracker_api/resources/story_transition' + autoload :FileAttachment, 'tracker_api/resources/file_attachment' end end