uc3-dmp-id 0.1.67 → 0.1.68
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uc3-dmp-id/finder.rb +1 -4
- data/lib/uc3-dmp-id/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f6ec06f994f12700ca9584e1a9f1bb42c5ff556e7ff6f1d9610c31dbd6cad2b
|
4
|
+
data.tar.gz: 32684f7693d73bc03c6eb7ea07906046895031d6aa3ec045c4c898fe04c03318
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37817e517884f4fc2d79d4c63aa71bbdede1fe74b182212b84a6e17aa685ac4696415bdb2b7a3ad19ab4d55a83e1015f50dda730ca9f84cc125627b38c8606eb
|
7
|
+
data.tar.gz: 700da77d44d8302b2b4fdfd4d985ae4a0f48ffbed10a74b1924a6a7fd42f1eb7cf8bb722342c93a205d84eb70cfa65a2abe81e902e6be394df1e363e37f47977
|
data/lib/uc3-dmp-id/finder.rb
CHANGED
@@ -49,11 +49,8 @@ module Uc3DmpId
|
|
49
49
|
# dmps = pks.reduce(:&).flatten.uniq
|
50
50
|
# return [] if dmps.nil? || dmps.empty?
|
51
51
|
|
52
|
-
|
52
|
+
[owner_pks, org_pks, funder_pks].flatten.uniq
|
53
53
|
|
54
|
-
# Fetch full DMP records for the results
|
55
|
-
client = Uc3DmpDynamo::Client.new(table: ENV['DYNAMO_TABLE'])
|
56
|
-
pks.map { |p_key| by_pk(p_key:, client:, logger:, cleanse: true) }
|
57
54
|
end
|
58
55
|
|
59
56
|
# Find a DMP based on the contents of the incoming JSON
|
data/lib/uc3-dmp-id/version.rb
CHANGED