uc3-dmp-id 0.1.27 → 0.1.28

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: 17f46e6944531f941dd897052fcf78719c8dd5596ec829614f31fb80a5daba91
4
- data.tar.gz: b5d84feae8896a1ba0dffbefb23d213a315828330510368099a329c787b3abd8
3
+ metadata.gz: f984b52821821510b5be7f91887b366b67f2dfd9e85f29bfaa2a988b34dff2f3
4
+ data.tar.gz: 5e6d1ced0429757d65c61b5007e325e6ebe9ad8cd94b5fe67d4366289ed12c11
5
5
  SHA512:
6
- metadata.gz: c0ce4ad0d1a07e58cd13d25c8b8f68f7d7f71094fd73a89651c099c2d8ae2e49a71aad3556da1cbd215dcfd6d450d3dab2d6505363daea9c17565c61307b8a36
7
- data.tar.gz: 3d14bd02b6ca70548d7e0f5567df945c39693184fb5633f4191b54c84dd406de940ad2cbd1b9774aaf6e73d595d70b8f9e60dcd6c0ccce4524539143a01da729
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 = { dmp_id: dmp['_id'], confidence: 'None', score: 0, notes: [] }
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.1.27'
4
+ VERSION = '0.1.28'
5
5
  end
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.27
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-10 00:00:00.000000000 Z
11
+ date: 2024-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json