purl_fetcher-client 1.2.0 → 1.2.2

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: 989a8e0ff7bcb9f39c83e2d5656b759f8a265862e97c0f4964de9ca15ec63be7
4
- data.tar.gz: 640c89a6ed21223385b8a07950da50b3e7d0dbad00f6b35a4b34707e6af6ad99
3
+ metadata.gz: 5acaaa62d71bc3971cf608280ed164c905c643a883a03abd51c1ddc6f4efb943
4
+ data.tar.gz: a067e49e7eb1d75b66ba27cdb21bbbcb2dfc83bf9fa6885a8afaf01167d5823e
5
5
  SHA512:
6
- metadata.gz: a4155c8e5dce02815e9b9993a6634f2226047ff0c302dc8412451baa4b280892a7539cf56fb64d4dfe45512aacf70497051ac8be5a9fe302d427da97ee932d8c
7
- data.tar.gz: 7d0e48ee44aa4358a93bccae266190b287bbe4f948f017511696326c7d6a12ec661db38e2d328dcca17e78bee6b8d445e568cb10e299d94cba393568f308896f
6
+ metadata.gz: ebc5cd6e69bf54c81fc74aa0fca8ffc06b4f32007fcdaab58a9c04ef7030e2dfeeb4820b3e0fd60d61b54abc8e9af2f9ea3fd5c19219355e62aee4f23d907fc1
7
+ data.tar.gz: c6d4931fd315dc5c4c30ee407a009d2698950f09b05c286efd81413579a9d02a5a0682b97332ed42471da2e9b2bf5c43925b70f2ce575031610a2ec153e497d8
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "digest"
4
-
5
3
  module PurlFetcher
6
4
  class Client
7
5
  # This models the JSON that we send to the server.
@@ -8,7 +8,7 @@ module PurlFetcher
8
8
  # @param [Array<String>] index ([]) list of properties to index to
9
9
  # @param [Array<String>] delete ([]) list of properties to delete from
10
10
  def self.release(druid:, index: [], delete: [])
11
- new(index:, delete:).release
11
+ new(druid:, index:, delete:).release
12
12
  end
13
13
 
14
14
  # @param [String] druid the identifier of the object
@@ -31,7 +31,7 @@ module PurlFetcher
31
31
  attr_reader :druid, :index, :delete
32
32
 
33
33
  def body
34
- { index:, delete: }.to_json
34
+ { actions: { index:, delete: } }.to_json
35
35
  end
36
36
 
37
37
  def logger
@@ -1,5 +1,5 @@
1
1
  module PurlFetcher
2
2
  class Client
3
- VERSION = "1.2.0"
3
+ VERSION = "1.2.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: purl_fetcher-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-03 00:00:00.000000000 Z
11
+ date: 2024-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  - !ruby/object:Gem::Version
154
154
  version: '0'
155
155
  requirements: []
156
- rubygems_version: 3.4.19
156
+ rubygems_version: 3.5.10
157
157
  signing_key:
158
158
  specification_version: 4
159
159
  summary: Traject-compatible reader implementation for streaming data from purl-fetcher