uc3-dmp-id 0.1.36 → 0.1.37

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: 60af308240750c987c1bf26d88daedb3bef5a65faaed4e71a508626c44539873
4
- data.tar.gz: bc7c71413c2faf9d1d9c838bbc6069a094e2e48a19754de3998b2056295f4f17
3
+ metadata.gz: 4b8c0ff9aa6add1fc2da937d9f76872ae6bb287adf5df008d9c0d434f25fd717
4
+ data.tar.gz: a0479d353eb1d64cfab1bdb718f3efcf6a1d66cec8ea444ab735e74708f88984
5
5
  SHA512:
6
- metadata.gz: 0ff7acaf1a66c9fcc54b76860a86e1544e1ff03c0de11258610e6c1ba93698099d47b81f4cb96bdafc38098505c28f14150f3455e0c9d226b29aa83776d6a158
7
- data.tar.gz: c576d006c4167ba347047c6693965539d54f3093108c8288882070527e67ba32869b3816340e928632f3dbab8a3b82d40460f35d4e985b39ed343f3816ee1aae
6
+ metadata.gz: a578c6b89bb5d94172d5e2c24255f81326871616767039a4aa4de6d1c00da4a9d16fcf20f26a4479d8d1d5017e90dfcb27ca9c6c4bb5b1ed5421928bfb518eeb
7
+ data.tar.gz: 3dc8d1999fb6f26cdf8fc465d160513982ac7607bfb7c5e4c5f719b4f43d3b5d82261c5c4ce87cdd10be1d1631276b212b54cfd60b3f5523b389b3f4da25dbe5
@@ -76,8 +76,8 @@ module Uc3DmpId
76
76
  response = _repository_match?(hash:, dmp:, response:) if response[:score].positive?
77
77
  response = _text_match?(type: 'title', text: hash['title'], dmp:, response:) if response[:score].positive?
78
78
  response = _text_match?(type: 'abstract', text: hash['description'], dmp:, response:) if response[:score].positive?
79
- # If the score is less than 3 then we have no confidence that it is a match
80
- next if response[:score] <= 2
79
+ # If the score is less than 4 then we have no confidence that it is a match
80
+ next if response[:score] <= 3
81
81
 
82
82
  # Set the confidence level based on the score
83
83
  response[:dmp_id] = "DMP##{dmp['dmp_id']}"
@@ -197,7 +197,7 @@ module Uc3DmpId
197
197
  }
198
198
  )
199
199
  response[:score] += last_names_matched + rors_matched + affil_names_matched
200
- response[:notes] << 'contributor names and affiliations matched'
200
+ response[:notes] << 'contributor names and/or affiliations matched'
201
201
  response
202
202
  end
203
203
  # rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.1.36'
4
+ VERSION = '0.1.37'
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.1.36
4
+ version: 0.1.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley