uc3-dmp-id 0.0.103 → 0.0.104

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: f8e56bba58989f2a6e008036dc36bc43febb01ef0ac2625c0c87246a710fee52
4
- data.tar.gz: 32d1a18e7aa3f8c23c41c1f5ab0e5d10e291e540c27b487180272abf5906532f
3
+ metadata.gz: f281a066200306c56a78470094fe5924fab333221e1bcdd4dcaade896d0e02ff
4
+ data.tar.gz: fa4b3f82159d32df245267596f3dd9d559f82c4faf07175a712448e2b2d7dd6c
5
5
  SHA512:
6
- metadata.gz: 0aa690c41fc7ed0311f219ef6063499822dbe9d0bd7504f9c422aa814438e62dc8cf7d1947b898f4c086e9f71850b533c03fab6235b9e57cf10bb49e5a3d40e4
7
- data.tar.gz: 4ce8052ee0ca147cd008a8610f95eb2dea34e1e33d50ee35f4d4b91d7ad93d8838d54ffa8d1911133d6e79b886ee3261de5bac2df53aa0c30459f5f432cd42b9
6
+ metadata.gz: a35bccc8f9a1b3a4bd475ba63151c082d5a263594454f0670e5b90800bc525d381e5191054102924c4220303648904d5c11562313360b4638def9b3aea98234e
7
+ data.tar.gz: ebbbef1978d20fad47c45bb75f1e242e4d583fc8f3107b7370a187679ce77d8adf2679178399ab85339ba1ec2ca6e7026345dd3ebfae0534343feec270ce9b9f
@@ -41,6 +41,10 @@ puts "DMPHub PROV: #{latest_version['dmphub_provenance_id']}, DMP BURIED: #{late
41
41
  logger: logger)
42
42
  raise UpdaterError, MSG_DMP_UNABLE_TO_VERSION if version.nil?
43
43
 
44
+ puts "OWNER AFTER VERSION: #{owner}"
45
+ puts version
46
+
47
+
44
48
  # Splice the assertions
45
49
  version = _process_modifications(owner: owner, updater: updater, version: version, mods: mods, note: note,
46
50
  logger: logger)
@@ -106,9 +110,14 @@ puts "DMPHub PROV: #{latest_version['dmphub_provenance_id']}, DMP BURIED: #{late
106
110
 
107
111
  puts "OWNER: #{owner}, UPDATER #{updater}, Version is Hash? #{version.is_a?(Hash)}, Mods is Hash? #{mods.is_a?(Hash)}"
108
112
 
113
+ puts "Returning version? #{!mods.is_a?(Hash) || updater.nil?}"
114
+ puts "Returning mods? #{!version.is_a?(Hash) || owner.nil?}"
115
+
109
116
  return version unless mods.is_a?(Hash) && !updater.nil?
110
117
  return mods unless version.is_a?(Hash) && !owner.nil?
111
118
 
119
+ puts "Asserting!"
120
+
112
121
  # Splice together any assertions that may have been made while the user was editing the DMP ID
113
122
  Asserter.splice(latest_version: version, modified_version: mods, logger: logger) if owner == updater
114
123
  # Attach the incoming changes as an assertion to the DMP ID since the updater is NOT the owner
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.0.103'
4
+ VERSION = '0.0.104'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uc3-dmp-id
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.103
4
+ version: 0.0.104
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley