dor-services 6.1.13 → 6.1.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb09163ebcee46966592628dd44eabc78126d5ca5e720b1c798f68e3f9dd7521
4
- data.tar.gz: a3c14829d0ea6ee884e2f78a636b90380299ab77aed7f23be401e1b4cfe5ca2c
3
+ metadata.gz: 90689318d87fa2d34cad2f9df2abe024b83732e3355e594d5fceadc571623dff
4
+ data.tar.gz: 3dd75f93c07aff83bc289df53d2da635a5b9bf2288b3f0ce0accbb6c8d4d7bc8
5
5
  SHA512:
6
- metadata.gz: 4a6eafdb2aef57dfbdb0e669f68ebf1fb0932144aad24c85fdba61ddf629815e2ef900cbb91485b9f0ee6aebef54fba22d17109a276269c427d437edbcc1fdb7
7
- data.tar.gz: e5795abc37dcd1255c603e31ec7e45180a5590a97f7eeeac8cc1eb6a68be0f37825f55f140739c8a2f26274aa746172716cc8321a2247a16037d38626a4bb21d
6
+ metadata.gz: 2cced9204b98f138a77c158145d410b870cd7808c32eb983cc589c935b740dfbc1c51e8b731e697269ad15307e20f64312e49ba522e414c85828e1fb5876e533
7
+ data.tar.gz: a21b1cce429f00d0c88392368ab615e31064d5dd48793e3d1e868b02a3977ca3434eed45b472dfe49b77f9802ea309dffb79f56ca11b399e6b2f10eb7d77d28d
@@ -13,6 +13,6 @@ module Dor
13
13
  druid.mkdir_with_final_link(source)
14
14
  end
15
15
  end
16
- deprecation_deprecate initialize_workspace: 'This functionality has moved to dor_services_app'
16
+ deprecation_deprecate initialize_workspace: 'Use Dor::Services::Client.object(object_identifier).workspace.create(source:) instead'
17
17
  end
18
18
  end
@@ -71,7 +71,7 @@ module Dor
71
71
  def get_preserved_file(file, version)
72
72
  Sdr::Client.get_preserved_file_content(pid, file, version)
73
73
  end
74
- deprecation_deprecate get_preserved_file: 'Use Dor::Services::Client.preserved_content instead'
74
+ deprecation_deprecate get_preserved_file: 'Use Dor::Services::Client.object(object_identifier).files.preserved_content(filename:, version:) instead'
75
75
 
76
76
  def get_file(file)
77
77
  druid_tools = DruidTools::Druid.new(pid, Config.content.content_base_dir)
@@ -85,7 +85,7 @@ module Dor
85
85
  end
86
86
  data
87
87
  end
88
- deprecation_deprecate get_file: 'use dor-services-app:/v1/objects/:id/contents/*path instead'
88
+ deprecation_deprecate get_file: 'Use Dor::Services::Client.object(object_identifier).files.retrieve(filename:) instead'
89
89
 
90
90
  # @param [String] filename
91
91
  def remove_file(filename)
@@ -133,7 +133,6 @@ module Dor
133
133
  end
134
134
  deprecation_deprecate remove_resource: 'will be removed without replacement'
135
135
 
136
- # TODO: Move to Argo
137
136
  # list files in the workspace
138
137
  # @return [Array] workspace files
139
138
  def list_files
@@ -158,7 +157,7 @@ module Dor
158
157
  end
159
158
  files
160
159
  end
161
- deprecation_deprecate list_files: 'use dor-services-app:/v1/objects/:id/contents instead'
160
+ deprecation_deprecate list_files: 'Use Dor::Services::Client.object(object_identifier).files.list instead'
162
161
 
163
162
  # @param [String] filename
164
163
  # @return [Boolean] whether the file in question is present in the object's workspace
@@ -76,7 +76,7 @@ module Dor
76
76
  def create_workflow(name, create_ds = true, priority = 0)
77
77
  CreateWorkflowService.create_workflow(self, name: name, create_ds: create_ds, priority: priority)
78
78
  end
79
- deprecation_deprecate create_workflow: 'Use CreateWorkflowService.create_workflow'
79
+ deprecation_deprecate create_workflow: 'Use Dor::Services::Client.object(object_identifier).workflow.create(wf_name:) instead'
80
80
 
81
81
  def initialize_workflow(name, create_ds = true, priority = 0)
82
82
  warn 'WARNING: initialize_workflow is deprecated, use create_workflow instead'
@@ -71,6 +71,6 @@ module Dor
71
71
  def publish_metadata_remotely
72
72
  Dor::Services::Client.object(pid).publish
73
73
  end
74
- deprecation_deprecate publish_metadata_remotely: 'use Dor::Services::Client.publish instead'
74
+ deprecation_deprecate publish_metadata_remotely: 'Use Dor::Services::Client.object(object_identifier).publish instead'
75
75
  end
76
76
  end
@@ -19,7 +19,7 @@ module Dor
19
19
  def open_new_version(opts = {})
20
20
  VersionService.open(self, opts)
21
21
  end
22
- deprecation_deprecate open_new_version: 'Use VersionService.open instead'
22
+ deprecation_deprecate open_new_version: 'Use Dor::Services::Client.object(object_identifier).open_new_version(**params) instead'
23
23
 
24
24
  def current_version
25
25
  versionMetadata.current_version_id
@@ -37,7 +37,7 @@ module Dor
37
37
  def close_version(opts = {})
38
38
  VersionService.close(self, opts)
39
39
  end
40
- deprecation_deprecate close_version: 'Use VersionService.close instead'
40
+ deprecation_deprecate close_version: 'Use Dor::Services::Client.object(object_identifier).close_version(**params) instead'
41
41
 
42
42
  # @return [Boolean] true if 'opened' lifecycle is active, false otherwise
43
43
  def new_version_open?
@@ -62,11 +62,11 @@ module Dor
62
62
  def start_version
63
63
  open_new_version
64
64
  end
65
- deprecation_deprecate start_version: 'use VersionService.open'
65
+ deprecation_deprecate start_version: 'Use Dor::Services::Client.object(object_identifier).open_new_version(**params) instead'
66
66
 
67
67
  def submit_version
68
68
  close_version
69
69
  end
70
- deprecation_deprecate submit_version: 'use VersionService.close'
70
+ deprecation_deprecate submit_version: 'Use Dor::Services::Client.object(object_identifier).close_version(**params) instead'
71
71
  end
72
72
  end
data/lib/dor/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dor
4
- VERSION = '6.1.13'
4
+ VERSION = '6.1.14'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dor-services
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.13
4
+ version: 6.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Klein
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2019-01-16 00:00:00.000000000 Z
17
+ date: 2019-01-18 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: active-fedora
@@ -675,7 +675,7 @@ files:
675
675
  - lib/dor/workflow/document.rb
676
676
  - lib/dor/workflow/process.rb
677
677
  - lib/tasks/rdoc.rake
678
- homepage:
678
+ homepage: http://github.com/sul-dlss/dor-services
679
679
  licenses:
680
680
  - ALv2
681
681
  - Stanford University