Skip to content

v0.4.0

Compare
Choose a tag to compare
@dchandekstark dchandekstark released this 22 May 14:38
· 81 commits to develop since this release
  • Changed API of Duracloud::Content methods #copy and #move:
    • Now accept same keywords as .find and .new -- :space_id, :content_id, :store_id -- plus :force.
    • The :force argument is a boolean (default false) indicating whether to replace existing content (if found) at the target location. If :force is false and content exists at target, operation raises Duracloud::Content::CopyError (for both #copy and #move).
    • Also, :space_id and :content_id arguments are not required, but default to the values of the current content object's attributes. An exception is raised if the source and destination locations are the same (regardless of the value of :force).
  • Added provisional support for handling content items that are "chunked" in DuraCloud. Retrieval of a chunked item is expected to work properly; however, updating previously a chunked item or creating a new content item that is chunked by DuraCloud (most likely if the file size > 1Gb). Additional tests and clarification of expected behavior from DuraCloud will be required to extend the current work. See https://jira.duraspace.org/browse/DURACLOUD-1111 and https://jira.duraspace.org/browse/DURACLOUD-1112.