preservation-client 7.0.1 → 7.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +1 -1
- data/Gemfile.lock +35 -30
- data/lib/preservation/client/response_error_formatter.rb +6 -4
- data/lib/preservation/client/version.rb +1 -1
- metadata +3 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c55fa0bed2687892cfd900f38fab8b3f6c7933e1117ef8feed4787cbc04fb57
|
4
|
+
data.tar.gz: 18396235dd39f9e0db02c701519b1fccf363fc6876b9da1126cf6a08810ee849
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 888b401a7e808c4b63e23150c3285d5ce615dd013597004326dce5c9dddf0eeb434edb015d141332821d9221ba844a0e6e95b3d1297ba789c00f050e49834561
|
7
|
+
data.tar.gz: f5a11ebd6c893fb9706b311cae7659c14ece2b1cb08d3c94f34c8958522a1dd7a5b53014f398a5ae8e9b736b4dbcdb6aa7ad692a8afbacbbcaf04976847543f5
|
data/.circleci/config.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
preservation-client (7.0.
|
4
|
+
preservation-client (7.0.2)
|
5
5
|
activesupport (>= 4.2, < 8)
|
6
6
|
faraday (~> 2.0)
|
7
7
|
moab-versioning (>= 5.0.0, < 7)
|
@@ -10,8 +10,9 @@ PATH
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
activesupport (7.2.
|
13
|
+
activesupport (7.2.2.1)
|
14
14
|
base64
|
15
|
+
benchmark (>= 0.3)
|
15
16
|
bigdecimal
|
16
17
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
17
18
|
connection_pool (>= 2.2.5)
|
@@ -25,11 +26,12 @@ GEM
|
|
25
26
|
public_suffix (>= 2.0.2, < 7.0)
|
26
27
|
ast (2.4.2)
|
27
28
|
base64 (0.2.0)
|
28
|
-
|
29
|
+
benchmark (0.4.0)
|
30
|
+
bigdecimal (3.1.9)
|
29
31
|
byebug (11.1.3)
|
30
32
|
coderay (1.1.3)
|
31
|
-
concurrent-ruby (1.3.
|
32
|
-
connection_pool (2.
|
33
|
+
concurrent-ruby (1.3.5)
|
34
|
+
connection_pool (2.5.0)
|
33
35
|
crack (1.0.0)
|
34
36
|
bigdecimal
|
35
37
|
rexml
|
@@ -37,37 +39,37 @@ GEM
|
|
37
39
|
docile (1.4.1)
|
38
40
|
drb (2.2.1)
|
39
41
|
druid-tools (3.0.0)
|
40
|
-
faraday (2.12.
|
41
|
-
faraday-net_http (>= 2.0, < 3.
|
42
|
+
faraday (2.12.2)
|
43
|
+
faraday-net_http (>= 2.0, < 3.5)
|
42
44
|
json
|
43
45
|
logger
|
44
|
-
faraday-net_http (3.
|
45
|
-
net-http
|
46
|
-
hashdiff (1.1.
|
47
|
-
i18n (1.14.
|
46
|
+
faraday-net_http (3.4.0)
|
47
|
+
net-http (>= 0.5.0)
|
48
|
+
hashdiff (1.1.2)
|
49
|
+
i18n (1.14.7)
|
48
50
|
concurrent-ruby (~> 1.0)
|
49
|
-
json (2.
|
51
|
+
json (2.9.1)
|
50
52
|
language_server-protocol (3.17.0.3)
|
51
|
-
logger (1.6.
|
53
|
+
logger (1.6.5)
|
52
54
|
method_source (1.1.0)
|
53
|
-
minitest (5.25.
|
55
|
+
minitest (5.25.4)
|
54
56
|
moab-versioning (6.1.0)
|
55
57
|
druid-tools (>= 1.0.0)
|
56
58
|
json
|
57
59
|
nokogiri
|
58
60
|
nokogiri-happymapper
|
59
|
-
net-http (0.
|
61
|
+
net-http (0.6.0)
|
60
62
|
uri
|
61
|
-
nokogiri (1.
|
63
|
+
nokogiri (1.18.2-arm64-darwin)
|
62
64
|
racc (~> 1.4)
|
63
|
-
nokogiri (1.
|
65
|
+
nokogiri (1.18.2-x86_64-darwin)
|
64
66
|
racc (~> 1.4)
|
65
|
-
nokogiri (1.
|
67
|
+
nokogiri (1.18.2-x86_64-linux-gnu)
|
66
68
|
racc (~> 1.4)
|
67
69
|
nokogiri-happymapper (0.10.0)
|
68
70
|
nokogiri (~> 1.5)
|
69
71
|
parallel (1.26.3)
|
70
|
-
parser (3.3.
|
72
|
+
parser (3.3.7.0)
|
71
73
|
ast (~> 2.4.1)
|
72
74
|
racc
|
73
75
|
pry (0.14.2)
|
@@ -80,8 +82,8 @@ GEM
|
|
80
82
|
racc (1.8.1)
|
81
83
|
rainbow (3.1.1)
|
82
84
|
rake (13.2.1)
|
83
|
-
regexp_parser (2.
|
84
|
-
rexml (3.
|
85
|
+
regexp_parser (2.10.0)
|
86
|
+
rexml (3.4.0)
|
85
87
|
rspec (3.13.0)
|
86
88
|
rspec-core (~> 3.13.0)
|
87
89
|
rspec-expectations (~> 3.13.0)
|
@@ -94,18 +96,18 @@ GEM
|
|
94
96
|
rspec-mocks (3.13.2)
|
95
97
|
diff-lcs (>= 1.2.0, < 2.0)
|
96
98
|
rspec-support (~> 3.13.0)
|
97
|
-
rspec-support (3.13.
|
98
|
-
rubocop (1.
|
99
|
+
rspec-support (3.13.2)
|
100
|
+
rubocop (1.71.0)
|
99
101
|
json (~> 2.3)
|
100
102
|
language_server-protocol (>= 3.17.0)
|
101
103
|
parallel (~> 1.10)
|
102
104
|
parser (>= 3.3.0.2)
|
103
105
|
rainbow (>= 2.2.2, < 4.0)
|
104
|
-
regexp_parser (>= 2.
|
105
|
-
rubocop-ast (>= 1.
|
106
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
107
|
+
rubocop-ast (>= 1.36.2, < 2.0)
|
106
108
|
ruby-progressbar (~> 1.7)
|
107
|
-
unicode-display_width (>= 2.4.0, <
|
108
|
-
rubocop-ast (1.
|
109
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
110
|
+
rubocop-ast (1.37.0)
|
109
111
|
parser (>= 3.3.1.0)
|
110
112
|
rubocop-capybara (2.21.0)
|
111
113
|
rubocop (~> 1.41)
|
@@ -121,7 +123,7 @@ GEM
|
|
121
123
|
rubocop-rspec_rails (2.29.1)
|
122
124
|
rubocop (~> 1.61)
|
123
125
|
ruby-progressbar (1.13.0)
|
124
|
-
securerandom (0.
|
126
|
+
securerandom (0.4.1)
|
125
127
|
simplecov (0.22.0)
|
126
128
|
docile (~> 1.1)
|
127
129
|
simplecov-html (~> 0.11)
|
@@ -130,8 +132,10 @@ GEM
|
|
130
132
|
simplecov_json_formatter (0.1.4)
|
131
133
|
tzinfo (2.0.6)
|
132
134
|
concurrent-ruby (~> 1.0)
|
133
|
-
unicode-display_width (
|
134
|
-
|
135
|
+
unicode-display_width (3.1.4)
|
136
|
+
unicode-emoji (~> 4.0, >= 4.0.4)
|
137
|
+
unicode-emoji (4.0.4)
|
138
|
+
uri (1.0.2)
|
135
139
|
webmock (3.24.0)
|
136
140
|
addressable (>= 2.8.0)
|
137
141
|
crack (>= 0.3.2)
|
@@ -140,6 +144,7 @@ GEM
|
|
140
144
|
|
141
145
|
PLATFORMS
|
142
146
|
arm64-darwin-23
|
147
|
+
arm64-darwin-24
|
143
148
|
x86_64-darwin-19
|
144
149
|
x86_64-darwin-20
|
145
150
|
x86_64-darwin-21
|
@@ -13,23 +13,25 @@ module Preservation
|
|
13
13
|
new(response: response, object_id: object_id, client_method_name: client_method_name).format
|
14
14
|
end
|
15
15
|
|
16
|
-
attr_reader :req_url, :status_msg, :status_code, :body, :object_id, :client_method_name
|
17
|
-
|
18
16
|
def initialize(response:, object_id: nil, client_method_name: nil)
|
19
17
|
@req_url = response.env.url
|
20
18
|
@status_msg = response.reason_phrase
|
21
19
|
@status_code = response.status
|
22
20
|
@body = response.body.present? ? response.body : DEFAULT_BODY
|
23
|
-
@
|
21
|
+
@id = object_id
|
24
22
|
@client_method_name = client_method_name
|
25
23
|
end
|
26
24
|
|
27
25
|
def format
|
28
26
|
status_info = status_msg.blank? ? status_code : "#{status_msg} (#{status_code})"
|
29
|
-
object_id_info = " for #{
|
27
|
+
object_id_info = " for #{id}" if id.present?
|
30
28
|
|
31
29
|
"Preservation::Client.#{client_method_name}#{object_id_info} got #{status_info} from Preservation at #{req_url}: #{body}"
|
32
30
|
end
|
31
|
+
|
32
|
+
private
|
33
|
+
|
34
|
+
attr_reader :req_url, :status_msg, :status_code, :body, :id, :client_method_name
|
33
35
|
end
|
34
36
|
end
|
35
37
|
end
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: preservation-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.0.
|
4
|
+
version: 7.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naomi Dushay
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-28 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: activesupport
|
@@ -240,7 +239,6 @@ metadata:
|
|
240
239
|
homepage_uri: https://github.com/sul-dlss/preservation-client
|
241
240
|
source_code_uri: https://github.com/sul-dlss/preservation-client.
|
242
241
|
rubygems_mfa_required: 'true'
|
243
|
-
post_install_message:
|
244
242
|
rdoc_options: []
|
245
243
|
require_paths:
|
246
244
|
- lib
|
@@ -255,8 +253,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
255
253
|
- !ruby/object:Gem::Version
|
256
254
|
version: '0'
|
257
255
|
requirements: []
|
258
|
-
rubygems_version: 3.
|
259
|
-
signing_key:
|
256
|
+
rubygems_version: 3.6.2
|
260
257
|
specification_version: 4
|
261
258
|
summary: A thin client for getting info from SDR preservation.
|
262
259
|
test_files: []
|