uc3-dmp-id 0.1.60 → 0.1.61

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: 791179155f0be964f0cfc186f26de88e9f0774ee9ebb671f7856074b1d40639e
4
- data.tar.gz: 0bf38f90d0863863362ea4fb5357566d8b262c2036840d78519796e2d55d893a
3
+ metadata.gz: bb07288c4e1b21217a2ca9ed4df6a8c7243968c2cea3dbd0474796b6399d2a09
4
+ data.tar.gz: 665c7eb28c3fd99e73c50f06b9bd95be7f96bb95b0a0c551634c6b5c941fd9db
5
5
  SHA512:
6
- metadata.gz: e938eb3ddaa088e2cc17bb6a4202de8673c5eeb046c47207e1c040eff8775fdede2b835a90758ab8e892490677b93502c205b0244fae3884299498caf27575a8
7
- data.tar.gz: ae45834944f078ab9e0d3fae1c6b32d2f5015c5b74b46c526c62b457b22e329662c6049ba4dd090e67f4c7f4208d9a1f858cb62b4dc52fa8b1e2bc1b4b17f692
6
+ metadata.gz: 8f196c1f061e5fcbd9085f5d483936797b3fe97bdb3e74b9bb8e2fc83effdefc4ecffbb28a0f0b478418fff6e8b6edd21b35cb2e103e6d7db1696e33e94d9d2f
7
+ data.tar.gz: b4adad6f533baff187391f415123134b93ffc0c01a93771f6519d8e935f91966c32c0d2ff2c051a98b09a596a615c86226b1f7ba6eeda72092b34b127edac403
@@ -25,9 +25,13 @@ module Uc3DmpId
25
25
  def search_dmps(args:, logger: nil)
26
26
  # Fetch the DMPs for each of the possible filter options
27
27
  client = Uc3DmpDynamo::Client.new(table: ENV['DYNAMO_INDEX_TABLE'])
28
- owner_pks = _by_owner(owner: args['owner'], client:, logger:) unless args['owner'].nil?
29
- org_pks = _by_org(org: args['org'], client:, logger:) unless args['org'].nil?
30
- funder_pks = _by_funder(funder: args['funder'], client:, logger:) unless args['funder'].nil?
28
+ owner = args['owner']
29
+ org = args['org']
30
+ funder = args['funder']
31
+
32
+ owner_pks = owner.nil? ? [] : _by_owner(owner: owner, client:, logger:)
33
+ org_pks = org.nil? ? [] : _by_org(org: org, client:, logger:)
34
+ funder_pks = funder.nil? ? [] : _by_funder(funder: funder, client:, logger:)
31
35
  return [] if owner_pks.empty? && org_pks.empty? && funder_pks.empty?
32
36
 
33
37
  # Only use the DMPs that fit all of the filter criteria
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.1.60'
4
+ VERSION = '0.1.61'
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.60
4
+ version: 0.1.61
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-07-10 00:00:00.000000000 Z
11
+ date: 2024-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json