uc3-dmp-id 0.0.96 → 0.0.97

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: c6623f79604248f9a0f7ea88837a0d75a85fb4b30766352bb68a6c5de08125cf
4
- data.tar.gz: 6e51e71740077defbd9b456fa5557532fc143484ac75de58510cc25ac96d073b
3
+ metadata.gz: 1b18b3d95b39f2da88fa37724c6fda10a5b52ca9f12c846a931d2437c2d765ba
4
+ data.tar.gz: bf97c7cd424030c19c720fff5011f9f6605aa375d6c9bf0f962f4ffd10174742
5
5
  SHA512:
6
- metadata.gz: 254631a72b6bae0629df5f6b7606a9d0b2323071de9b573a9712225b73a3c2a1a514236edad355b6fd9241f3267397ac275b47e92759025b4bd5f41cb21bacdf
7
- data.tar.gz: 8274ce2a62b81621cef098f70d8f62c10a3a56b09bb8b7832a4dd2fa16aa09af09ab9cc2d343c2a672ca6f8d70a6766a27aac0710d32df77221551ba694116bf
6
+ metadata.gz: 791986d2bf6e7382ad4f1bf84a7e4c6c7d501609a1dfe4d0d3aec0d3554496a5637231db298a01481ec18f0e1055b82c95158cd203a53a6aecbbf8ba4ddb6109
7
+ data.tar.gz: f0baea87de3fb99225c98bbce5df28adf9ef32fc90593c32334d5094acf2314ea5c9d01d53088bbf1bc5529cdd9f496061aa8544b40687f7624cdde7991e59a0
@@ -40,7 +40,7 @@ module Uc3DmpId
40
40
  raise UpdaterError, MSG_DMP_UNABLE_TO_VERSION if resp.nil?
41
41
 
42
42
  # Send the updates to EZID, notify the provenance and download the PDF if applicable
43
- _post_process(json: dmp, logger: logger)
43
+ _post_process(provenance: provenance, json: dmp, logger: logger)
44
44
  # Return the new version record
45
45
  logger.info(message: "Updated DMP ID: #{p_key}") if logger.respond_to?(:debug)
46
46
  Helper.cleanse_dmp_json(json: JSON.parse({ dmp: new_version }.to_json))
@@ -90,11 +90,11 @@ module Uc3DmpId
90
90
 
91
91
  # Once the DMP has been updated, we need to register it's DMP ID and download any PDF if applicable
92
92
  # -------------------------------------------------------------------------
93
- def _post_process(json:, logger: nil)
93
+ def _post_process(provenance:, json:, logger: nil)
94
94
  return false unless json.is_a?(Hash)
95
95
 
96
96
  # Indicate whether or not the updater is the provenance system
97
- json['dmphub_updater_is_provenance'] = @provenance['PK'] == json['dmphub_provenance_id']
97
+ json['dmphub_updater_is_provenance'] = provenance['PK'] == json['dmphub_provenance_id']
98
98
  # Publish the change to the EventBridge
99
99
  publisher = Uc3DmpEventBridge::Publisher.new
100
100
  publisher.publish(source: 'DmpUpdater', dmp: json, logger: logger)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.0.96'
4
+ VERSION = '0.0.97'
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.96
4
+ version: 0.0.97
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley