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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c80fea134e78418410a157f1d05d2c1fe5ab4651f5d5db2f44d5b7ae2ec9171d
4
- data.tar.gz: c569af575448f9ae1f23e3810159ecda3e8c5089e6f10c3f35e69af3e63f64ea
3
+ metadata.gz: 7c55fa0bed2687892cfd900f38fab8b3f6c7933e1117ef8feed4787cbc04fb57
4
+ data.tar.gz: 18396235dd39f9e0db02c701519b1fccf363fc6876b9da1126cf6a08810ee849
5
5
  SHA512:
6
- metadata.gz: d748a24a0cedea152322ece89273ee8e10131bd97884d49ab87d3e09ecf47fd30b295498aed3813d90906d9b0aff2f9ed43b81995df646489a113e2eec404a45
7
- data.tar.gz: 1cba48166d80175dc0dbdcab7f5aefeb606fefa98391ff377071c361c6e4e1514cc21ef04c6ef8e78540e1e069c787aec9dfb7380c31cd57f1a5e0f71d0686c4
6
+ metadata.gz: 888b401a7e808c4b63e23150c3285d5ce615dd013597004326dce5c9dddf0eeb434edb015d141332821d9221ba844a0e6e95b3d1297ba789c00f050e49834561
7
+ data.tar.gz: f5a11ebd6c893fb9706b311cae7659c14ece2b1cb08d3c94f34c8958522a1dd7a5b53014f398a5ae8e9b736b4dbcdb6aa7ad692a8afbacbbcaf04976847543f5
data/.circleci/config.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  version: 2.1
2
2
  orbs:
3
- ruby-rails: sul-dlss/ruby-rails@4.2.2
3
+ ruby-rails: sul-dlss/ruby-rails@4.2.3
4
4
  workflows:
5
5
  build:
6
6
  jobs:
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- preservation-client (7.0.1)
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.1.1)
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
- bigdecimal (3.1.8)
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.4)
32
- connection_pool (2.4.1)
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.0)
41
- faraday-net_http (>= 2.0, < 3.4)
42
+ faraday (2.12.2)
43
+ faraday-net_http (>= 2.0, < 3.5)
42
44
  json
43
45
  logger
44
- faraday-net_http (3.3.0)
45
- net-http
46
- hashdiff (1.1.1)
47
- i18n (1.14.6)
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.7.2)
51
+ json (2.9.1)
50
52
  language_server-protocol (3.17.0.3)
51
- logger (1.6.1)
53
+ logger (1.6.5)
52
54
  method_source (1.1.0)
53
- minitest (5.25.1)
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.4.1)
61
+ net-http (0.6.0)
60
62
  uri
61
- nokogiri (1.16.7-arm64-darwin)
63
+ nokogiri (1.18.2-arm64-darwin)
62
64
  racc (~> 1.4)
63
- nokogiri (1.16.7-x86_64-darwin)
65
+ nokogiri (1.18.2-x86_64-darwin)
64
66
  racc (~> 1.4)
65
- nokogiri (1.16.7-x86_64-linux)
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.5.0)
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.9.2)
84
- rexml (3.3.8)
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.1)
98
- rubocop (1.67.0)
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.4, < 3.0)
105
- rubocop-ast (>= 1.32.2, < 2.0)
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, < 3.0)
108
- rubocop-ast (1.32.3)
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.3.1)
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 (2.6.0)
134
- uri (0.13.1)
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
- @object_id = object_id
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 #{object_id}" if object_id.present?
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Preservation
4
4
  class Client
5
- VERSION = '7.0.1'
5
+ VERSION = '7.0.2'
6
6
  end
7
7
  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.1
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: 2024-10-23 00:00:00.000000000 Z
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.5.11
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: []