uc3-dmp-id 0.1.27 → 0.1.28
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 +4 -4
- data/lib/uc3-dmp-id/comparator.rb +2 -1
- data/lib/uc3-dmp-id/version.rb +1 -1
- 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: f984b52821821510b5be7f91887b366b67f2dfd9e85f29bfaa2a988b34dff2f3
|
|
4
|
+
data.tar.gz: 5e6d1ced0429757d65c61b5007e325e6ebe9ad8cd94b5fe67d4366289ed12c11
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d23256d8ef17d0644351ddb1087ce918f6e6868fbcb0a81e13e8322d9fe39451854f19924040cb9f43fcc2163d7dc1efad53d538b0fdbbf871f1a728e625043b
|
|
7
|
+
data.tar.gz: c054f89e7c9347a61e5ea6a8d7246c6739410995a10f4d433fd0837c0d64097b9b70e51710d275fb4f0c0ef051e9cb60e579c40ee258bfdd45235c3889e5410e
|
|
@@ -61,7 +61,7 @@ module Uc3DmpId
|
|
|
61
61
|
|
|
62
62
|
# Compare the grant ids. If we have a match return the response immediately since that is
|
|
63
63
|
# a very positive match!
|
|
64
|
-
response = {
|
|
64
|
+
response = { confidence: 'None', score: 0, notes: [] }
|
|
65
65
|
response = _grants_match?(array: hash.fetch('grant_ids', []), dmp:, response:)
|
|
66
66
|
scoring << respoonse if response[:confidence] != 'None'
|
|
67
67
|
next if response[:confidence] != 'None'
|
|
@@ -79,6 +79,7 @@ module Uc3DmpId
|
|
|
79
79
|
next if response[:score] <= 2
|
|
80
80
|
|
|
81
81
|
# Set the confidence level based on the score
|
|
82
|
+
response[:dmp_id] = dmp['_id']
|
|
82
83
|
response[:confidence] = if response[:score] > 10
|
|
83
84
|
'High'
|
|
84
85
|
else
|
data/lib/uc3-dmp-id/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: uc3-dmp-id
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.28
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brian Riley
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-03-
|
|
11
|
+
date: 2024-03-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|