dor-services 5.31.1 → 5.32.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dor/version.rb +1 -1
- data/lib/dor/workflow/document.rb +2 -2
- data/lib/dor/workflow/process.rb +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 999ab2db6a129de6b99ddc21d61750e0691d89074e69737a44def52aa0088d0c
|
4
|
+
data.tar.gz: 3c0488469dc69c038072fdff2ec093afd4115e5d82213f1e8e604967605e4545
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 430d3c2645ff34c099d81abb9723b87dd5de40c29b7c0c2d4b83a7750f947b8cef61939ed0be949f8343ca6b0170f5a353476a8ee15a8512f15e4a71f76a753c
|
7
|
+
data.tar.gz: 280aa45a9897ece2e92aa8bb9448b6c2e21c9698f2ab22eb9569b1cf2248697c99d368b110fa753c5320b29bcc73b67e203e55a4aec14984857fc90166d3f51d
|
data/lib/dor/version.rb
CHANGED
@@ -8,7 +8,7 @@ module Workflow
|
|
8
8
|
t.root(:path => 'workflow')
|
9
9
|
t.repository(:path => {:attribute => 'repository'})
|
10
10
|
t.workflowId(:path => {:attribute => 'id'})
|
11
|
-
t.process
|
11
|
+
t.process do
|
12
12
|
t.name_(:path => {:attribute => 'name'})
|
13
13
|
t.status(:path => {:attribute => 'status'})
|
14
14
|
t.timestamp(:path => {:attribute => 'datetime'}) # , :data_type => :date)
|
@@ -16,7 +16,7 @@ module Workflow
|
|
16
16
|
t.lifecycle(:path => {:attribute => 'lifecycle'})
|
17
17
|
t.attempts(:path => {:attribute => 'attempts'}, :index_as => [:not_searchable])
|
18
18
|
t.version(:path => {:attribute => 'version'})
|
19
|
-
|
19
|
+
end
|
20
20
|
end
|
21
21
|
|
22
22
|
@@definitions = {}
|
data/lib/dor/workflow/process.rb
CHANGED
@@ -82,8 +82,10 @@ module Workflow
|
|
82
82
|
@attrs['elapsed'].nil? ? nil : @attrs['elapsed'].to_f
|
83
83
|
end
|
84
84
|
|
85
|
-
|
86
|
-
|
85
|
+
# @param info [Nokogiri::XML::Element]
|
86
|
+
# @param new_owner [Dor::Workflow::Document]
|
87
|
+
def update!(info, new_owner)
|
88
|
+
@owner = new_owner
|
87
89
|
if info.is_a? Nokogiri::XML::Node
|
88
90
|
info = Hash[info.attributes.collect { |k, v| [k, v.value] }]
|
89
91
|
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: 5.
|
4
|
+
version: 5.32.0
|
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: 2018-
|
17
|
+
date: 2018-11-15 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: active-fedora
|