ezid-client 1.9.2 → 1.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- 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 +2 -2
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/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 = ">= 2
|
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,7 +1,7 @@
|
|
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
|
@@ -193,7 +193,7 @@ 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
|
- - ">="
|