dor-services 5.31.1 → 5.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0fbf4d60e619912c5af278f19fe929f44596617bff66caf754183aa995f77d4c
4
- data.tar.gz: 7c8ceae83d61011967e306270ae07f016bc2600eccd10a39389c7e79c4b918bc
3
+ metadata.gz: 999ab2db6a129de6b99ddc21d61750e0691d89074e69737a44def52aa0088d0c
4
+ data.tar.gz: 3c0488469dc69c038072fdff2ec093afd4115e5d82213f1e8e604967605e4545
5
5
  SHA512:
6
- metadata.gz: b12fe3f28a6cd6484bb298d7ea96a70c449c762eb3064848b3540e84be9809d2be7f65e1f80ffad46fad5b03b9197fc805800308e1acae8bd4dd07b99c161fb2
7
- data.tar.gz: f7ef47c60176f1b7a6c1c3573e5169f4569989a0d5e78cb146c3404c142dd62b36f55b2f83866ec6aace1c94984d5e6eeae2040d017c640caac7c6aaba87b40f
6
+ metadata.gz: 430d3c2645ff34c099d81abb9723b87dd5de40c29b7c0c2d4b83a7750f947b8cef61939ed0be949f8343ca6b0170f5a353476a8ee15a8512f15e4a71f76a753c
7
+ data.tar.gz: 280aa45a9897ece2e92aa8bb9448b6c2e21c9698f2ab22eb9569b1cf2248697c99d368b110fa753c5320b29bcc73b67e203e55a4aec14984857fc90166d3f51d
data/lib/dor/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dor
2
- VERSION = '5.31.1'.freeze
2
+ VERSION = '5.32.0'.freeze
3
3
  end
@@ -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 = {}
@@ -82,8 +82,10 @@ module Workflow
82
82
  @attrs['elapsed'].nil? ? nil : @attrs['elapsed'].to_f
83
83
  end
84
84
 
85
- def update!(info, new_owner = nil)
86
- @owner = new_owner unless new_owner.nil?
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.31.1
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-06-12 00:00:00.000000000 Z
17
+ date: 2018-11-15 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: active-fedora