uc3-dmp-id 0.1.54 → 0.1.55

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: a25055e5e62c689e02f190fe828bbe553ef380bcf6bcd2b2e2bb6299f80ea439
4
- data.tar.gz: c51528de686f3786175ef6bfe2dcde9f1c86897d0fc6d5748667167021d55b54
3
+ metadata.gz: 303302842851603259f0981187aa9e2df87db1214541f8716686ee0f68c3d565
4
+ data.tar.gz: de9174608180b81de434d1f5d87abfa1f339c14495d49f93f0c7446cdaaea608
5
5
  SHA512:
6
- metadata.gz: c3a6afb5c512125d29ff1fc6a2da94de5aa98277f08e9fb46d7e120cd64d24238f8eb915f141a4df115feb89951f7e5753daf7c49358241fc7d718277e4d3aed
7
- data.tar.gz: 7421c51628509d0e0c904625916fd56b43c6fecca16a131169568371f6b39acc274f730ca7d8942d4634daf30b89a7ddfa9f6acb63b634b3ad3fe2a3b8e1472b
6
+ metadata.gz: 654b37d44b2b871a385dd72f3104ba857e01b2fff58690708aea9beb3f2e2480eb6550bb18dc3b21cd67ea1362c805dd456bbea4da89598a50493499d934719a
7
+ data.tar.gz: bff8736d8b88b890497c13f4604dd67749bf6409045de1532debd4875f7edb7baedb4ca427d5d9a02c2baea452a603ebcc6c98652e9a33f7a9d8217a8190cb4d
@@ -155,10 +155,8 @@ module Uc3DmpId
155
155
  }
156
156
  end
157
157
  logger&.debug(message: 'Fetch relevant DMPs _by_owner - scan args', details: args)
158
- resp = client.scan(args:)
159
-
160
158
  client = Uc3DmpDynamo::Client.new if client.nil?
161
- _process_search_response(response: client.query(args:, logger:))
159
+ _process_search_response(response: client.scan(args:))
162
160
  end
163
161
 
164
162
  # Fetch the DMP IDs for the specified organization/institution
@@ -177,10 +175,8 @@ module Uc3DmpId
177
175
  }
178
176
  }
179
177
  logger&.debug(message: 'Fetch relevant DMPs _by_org - scan args', details: args)
180
- resp = client.scan(args:)
181
-
182
178
  client = Uc3DmpDynamo::Client.new if client.nil?
183
- _process_search_response(response: client.query(args:, logger:))
179
+ _process_search_response(response: client.scan(args:))
184
180
  end
185
181
 
186
182
  # Fetch the DMP IDs for the specified funder
@@ -199,10 +195,8 @@ module Uc3DmpId
199
195
  }
200
196
  }
201
197
  logger&.debug(message: 'Fetch relevant DMPs _by_funder - scan args', details: args)
202
- resp = client.scan(args:)
203
-
204
198
  client = Uc3DmpDynamo::Client.new if client.nil?
205
- _process_search_response(response: client.query(args:, logger:))
199
+ _process_search_response(response: client.scan(args:))
206
200
  end
207
201
 
208
202
  # Fetch the DMP IDs that are marked as featured
@@ -212,10 +206,8 @@ module Uc3DmpId
212
206
  expression_attribute_values: { ':sk': 'METADATA', ':featured': 1 }
213
207
  }
214
208
  logger&.debug(message: 'Fetch relevant DMPs _by_featured - scan args', details: args)
215
- resp = client.scan(args:)
216
-
217
209
  client = Uc3DmpDynamo::Client.new if client.nil?
218
- _process_search_response(response: client.query(args:, logger:))
210
+ _process_search_response(response: client.scan(args:))
219
211
  end
220
212
 
221
213
  # Return all of the publicly visible DMPs
@@ -225,10 +217,8 @@ module Uc3DmpId
225
217
  expression_attribute_values: { ':sk': 'METADATA', ':visibility': 'public' }
226
218
  }
227
219
  logger&.debug(message: 'Fetch relevant DMPs _publicly_visible - scan args', details: args)
228
- resp = client.scan(args:)
229
-
230
220
  client = Uc3DmpDynamo::Client.new if client.nil?
231
- _process_search_response(response: client.query(args:, logger:))
221
+ _process_search_response(response: client.scan(args:))
232
222
  end
233
223
 
234
224
  # Transform the search results so that we do not include any of the DMPHub specific metadata
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.1.54'
4
+ VERSION = '0.1.55'
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.54
4
+ version: 0.1.55
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley