ezid-client 1.9.1 → 1.9.3
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 +4 -4
- data/.github/workflows/ruby.yml +1 -1
- data/VERSION +1 -1
- data/ezid-client.gemspec +1 -1
- data/spec/integration/client_spec.rb +1 -1
- data/spec/unit/client_spec.rb +2 -2
- data/spec/unit/identifier_spec.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4923cc603a7be145dec5b0cef9680ebefb24914a1edbc7b4cce1e49bbb20a6cc
|
|
4
|
+
data.tar.gz: 29e09adc2fa5b7444600ad0174267b673c98b67d32dbae9d4e88eb3fe140cb54
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: df3e067372950e605a4e42c85a808b9f4d4d925884fb177c1ef13fed584bf7579b9e54ad1053160e1959f549f5271a297d6dec8bba36b398b6ca0fa58ff53b93
|
|
7
|
+
data.tar.gz: 8727ff8bb484708a3c2f8552e1208d8f664ce559718b04d0dac65226e95387eb0343fe4bc50483919851827d221c9c3e94ca6fa470f4e1bf8c7bc3b09e8342dc
|
data/.github/workflows/ruby.yml
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.9.
|
|
1
|
+
1.9.3
|
data/ezid-client.gemspec
CHANGED
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
|
17
17
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
18
18
|
spec.require_paths = ["lib"]
|
|
19
19
|
|
|
20
|
-
spec.required_ruby_version = "
|
|
20
|
+
spec.required_ruby_version = ">= 2"
|
|
21
21
|
|
|
22
22
|
spec.add_dependency "hashie", "~> 3.4", ">= 3.4.3"
|
|
23
23
|
spec.add_dependency "nokogiri"
|
|
@@ -74,7 +74,7 @@ module Ezid
|
|
|
74
74
|
it "should return a valid URL" do
|
|
75
75
|
response = subject.batch_download(format: "anvl", createdAfter: @created, permanence: "test")
|
|
76
76
|
expect(response).to be_success
|
|
77
|
-
expect(response.download_url).to match(/^
|
|
77
|
+
expect(response.download_url).to match(/^https?:\/\/ezid.cdlib.org\/download\/[^\/]+.gz$/)
|
|
78
78
|
end
|
|
79
79
|
end
|
|
80
80
|
|
data/spec/unit/client_spec.rb
CHANGED
|
@@ -162,11 +162,11 @@ EOS
|
|
|
162
162
|
let(:body) { "success: http://ezid.cdlib.org/download/da543b91a0.xml.gz" }
|
|
163
163
|
|
|
164
164
|
before do
|
|
165
|
-
allow(BatchDownloadRequest).to receive(:execute).with(subject, format: "xml") { stub_response }
|
|
165
|
+
allow(BatchDownloadRequest).to receive(:execute).with(subject, {format: "xml"}) { stub_response }
|
|
166
166
|
end
|
|
167
167
|
|
|
168
168
|
it "returns the URL to download the batch" do
|
|
169
|
-
response = subject.batch_download(format: "xml")
|
|
169
|
+
response = subject.batch_download({format: "xml"})
|
|
170
170
|
expect(response).to be_success
|
|
171
171
|
expect(response.download_url).to eq("http://ezid.cdlib.org/download/da543b91a0.xml.gz")
|
|
172
172
|
end
|
|
@@ -49,7 +49,7 @@ _status: public
|
|
|
49
49
|
end
|
|
50
50
|
describe "with a hash metadata arg", deprecated: true do
|
|
51
51
|
it "mints a new Identifier" do
|
|
52
|
-
expect(described_class).to receive(:mint).with(nil, profile: "dc", target: "http://example.com")
|
|
52
|
+
expect(described_class).to receive(:mint).with(nil, {profile: "dc", target: "http://example.com"})
|
|
53
53
|
described_class.create(profile: "dc", target: "http://example.com")
|
|
54
54
|
end
|
|
55
55
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ezid-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.9.
|
|
4
|
+
version: 1.9.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Chandek-Stark
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-11-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: hashie
|
|
@@ -185,23 +185,23 @@ homepage: https://github.com/duke-libraries/ezid-client
|
|
|
185
185
|
licenses:
|
|
186
186
|
- BSD-3-Clause
|
|
187
187
|
metadata: {}
|
|
188
|
-
post_install_message:
|
|
188
|
+
post_install_message:
|
|
189
189
|
rdoc_options: []
|
|
190
190
|
require_paths:
|
|
191
191
|
- lib
|
|
192
192
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
193
193
|
requirements:
|
|
194
|
-
- - "
|
|
194
|
+
- - ">="
|
|
195
195
|
- !ruby/object:Gem::Version
|
|
196
|
-
version: '2
|
|
196
|
+
version: '2'
|
|
197
197
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
198
198
|
requirements:
|
|
199
199
|
- - ">="
|
|
200
200
|
- !ruby/object:Gem::Version
|
|
201
201
|
version: '0'
|
|
202
202
|
requirements: []
|
|
203
|
-
rubygems_version: 3.0.
|
|
204
|
-
signing_key:
|
|
203
|
+
rubygems_version: 3.0.3.1
|
|
204
|
+
signing_key:
|
|
205
205
|
specification_version: 4
|
|
206
206
|
summary: Ruby client for EZID API Version 2
|
|
207
207
|
test_files:
|