uc3-dmp-id 0.0.88 → 0.0.89

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: 7a80f485c08b9363c829a92644ed5e03dcb10adc185fc0d0bb054d0d9f79cfa0
4
- data.tar.gz: 239562b558a5fa50b9dfa65fa9d6cfa4719ad161b051c3e53eaff2ba2f3363a8
3
+ metadata.gz: 060e5579b7df045a30beb6431b0954b19e8542b42e1dacc933c9f0f025d521a8
4
+ data.tar.gz: b784e85e55401583d782363b0b9d99f23839db175aac2e4ccfa498b5c98481c7
5
5
  SHA512:
6
- metadata.gz: bba3bb098c384aff4c37a0816b2a968468677124b8ca2a2ce5338ed029d881ab6f2ce6e421dd4b6179d15c93dedbb284dd6903f152610726080cf53833a71797
7
- data.tar.gz: 72c986c4fea24409cb96ac845888b1cf6b93c5feb6dbce1b9f6e87b1405f78e9735a43c36305aa0751aa83566ab4ad8cc9e8453074177c0f24212738bfcf0d80
6
+ metadata.gz: 3bc49726eb20d814984f6bd3585510f7d45b5dd00479cc95933f6ade4e5ca2b77a191d18377b05af0d3303b3ba19f7cedb54a85abb11d77ea45a712305c0816b
7
+ data.tar.gz: 1c6048b78d7b9c38b16433e93b3bc64df70ccfcecda64e6cc4f223ce7253bde6868b9d53834c0d3e7e17fc46cac1569acaf76a1588bf3c5a38fb2e76154f6d72
@@ -30,7 +30,8 @@ puts annotated
30
30
  raise UpdaterError, MSG_NO_CHANGE if Helper.eql?(dmp_a: existing, dmp_b: dmp)
31
31
 
32
32
  # Generate a new version of the DMP. This involves versioning the current latest version
33
- new_version = Versioner.new_version(p_key: p_key, dmp: annotated)
33
+ new_version = Versioner.new_version(provenance: provenance, p_key: p_key, client: client, debug: debug,
34
+ dmp: dmp, latest_version: existing)
34
35
 
35
36
  puts 'New version:'
36
37
  puts new_version
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.0.88'
4
+ VERSION = '0.0.89'
5
5
  end
@@ -29,7 +29,7 @@ module Uc3DmpId
29
29
  # - Saving the new `VERSION=yyyy-mm-ddThh:mm:ss+zz:zz` item
30
30
  # - Splicing in the current changes onto the existing `VERSION#latest` item
31
31
  # - Returning the spliced `VERSION#latest` back to this method
32
- def new_version(provenance:, p_key:, client: nil, dmp:, latest_version: {})
32
+ def new_version(provenance:, p_key:, client: nil, dmp:, latest_version: {}, debug: false)
33
33
  return nil unless p_key.is_a?(String) && !p_key.strip.empty? && _versionable?(dmp: dmp)
34
34
 
35
35
  client = Uc3DmpDynamo::Client.new(debug: debug) if client.nil?
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.88
4
+ version: 0.0.89
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley