preservation-client 7.0.1 → 7.1.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c80fea134e78418410a157f1d05d2c1fe5ab4651f5d5db2f44d5b7ae2ec9171d
4
- data.tar.gz: c569af575448f9ae1f23e3810159ecda3e8c5089e6f10c3f35e69af3e63f64ea
3
+ metadata.gz: 36fb9768da13a43eecf5e4e7bd172f4c3416ee96476350b08f1a97eae98b62a3
4
+ data.tar.gz: 3f2a39bbc970df659ee1b49aa3b7cef13af405d438c47c9e430c7aabfd7fd575
5
5
  SHA512:
6
- metadata.gz: d748a24a0cedea152322ece89273ee8e10131bd97884d49ab87d3e09ecf47fd30b295498aed3813d90906d9b0aff2f9ed43b81995df646489a113e2eec404a45
7
- data.tar.gz: 1cba48166d80175dc0dbdcab7f5aefeb606fefa98391ff377071c361c6e4e1514cc21ef04c6ef8e78540e1e069c787aec9dfb7380c31cd57f1a5e0f71d0686c4
6
+ metadata.gz: 58491e17ab30f18d0000c860c96490df43663909867d2f072728b98b001b23c8c828e2a7eb02f68efbcbdc85ae83d2ff21df81bbe83f1b1eb7200a263fe54056
7
+ data.tar.gz: a4bd42e808ba8e69e78802281b797ccf1c5b650458a91d6a516fda4cf91d226ca736d5a860570592a5ce30aa756c9a6956f735febf8e7e1c1515e2f200c8d5c4
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.5.0
4
4
  workflows:
5
5
  build:
6
6
  jobs:
@@ -8,3 +8,5 @@ workflows:
8
8
  name: lint
9
9
  - ruby-rails/test-gem:
10
10
  name: test
11
+ context: dlss
12
+ use-codecov: true
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- preservation-client (7.0.1)
5
- activesupport (>= 4.2, < 8)
4
+ preservation-client (7.1.0)
5
+ activesupport (>= 4.2)
6
6
  faraday (~> 2.0)
7
7
  moab-versioning (>= 5.0.0, < 7)
8
8
  zeitwerk (~> 2.1)
@@ -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 (8.0.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)
@@ -21,15 +22,17 @@ GEM
21
22
  minitest (>= 5.1)
22
23
  securerandom (>= 0.3)
23
24
  tzinfo (~> 2.0, >= 2.0.5)
25
+ uri (>= 0.13.1)
24
26
  addressable (2.8.7)
25
27
  public_suffix (>= 2.0.2, < 7.0)
26
28
  ast (2.4.2)
27
29
  base64 (0.2.0)
28
- bigdecimal (3.1.8)
30
+ benchmark (0.4.0)
31
+ bigdecimal (3.1.9)
29
32
  byebug (11.1.3)
30
33
  coderay (1.1.3)
31
- concurrent-ruby (1.3.4)
32
- connection_pool (2.4.1)
34
+ concurrent-ruby (1.3.5)
35
+ connection_pool (2.5.0)
33
36
  crack (1.0.0)
34
37
  bigdecimal
35
38
  rexml
@@ -37,37 +40,37 @@ GEM
37
40
  docile (1.4.1)
38
41
  drb (2.2.1)
39
42
  druid-tools (3.0.0)
40
- faraday (2.12.0)
41
- faraday-net_http (>= 2.0, < 3.4)
43
+ faraday (2.12.2)
44
+ faraday-net_http (>= 2.0, < 3.5)
42
45
  json
43
46
  logger
44
- faraday-net_http (3.3.0)
45
- net-http
46
- hashdiff (1.1.1)
47
- i18n (1.14.6)
47
+ faraday-net_http (3.4.0)
48
+ net-http (>= 0.5.0)
49
+ hashdiff (1.1.2)
50
+ i18n (1.14.7)
48
51
  concurrent-ruby (~> 1.0)
49
- json (2.7.2)
50
- language_server-protocol (3.17.0.3)
51
- logger (1.6.1)
52
+ json (2.9.1)
53
+ language_server-protocol (3.17.0.4)
54
+ logger (1.6.6)
52
55
  method_source (1.1.0)
53
- minitest (5.25.1)
56
+ minitest (5.25.4)
54
57
  moab-versioning (6.1.0)
55
58
  druid-tools (>= 1.0.0)
56
59
  json
57
60
  nokogiri
58
61
  nokogiri-happymapper
59
- net-http (0.4.1)
62
+ net-http (0.6.0)
60
63
  uri
61
- nokogiri (1.16.7-arm64-darwin)
64
+ nokogiri (1.18.2-arm64-darwin)
62
65
  racc (~> 1.4)
63
- nokogiri (1.16.7-x86_64-darwin)
66
+ nokogiri (1.18.2-x86_64-darwin)
64
67
  racc (~> 1.4)
65
- nokogiri (1.16.7-x86_64-linux)
68
+ nokogiri (1.18.2-x86_64-linux-gnu)
66
69
  racc (~> 1.4)
67
70
  nokogiri-happymapper (0.10.0)
68
71
  nokogiri (~> 1.5)
69
72
  parallel (1.26.3)
70
- parser (3.3.5.0)
73
+ parser (3.3.7.1)
71
74
  ast (~> 2.4.1)
72
75
  racc
73
76
  pry (0.14.2)
@@ -80,13 +83,13 @@ GEM
80
83
  racc (1.8.1)
81
84
  rainbow (3.1.1)
82
85
  rake (13.2.1)
83
- regexp_parser (2.9.2)
84
- rexml (3.3.8)
86
+ regexp_parser (2.10.0)
87
+ rexml (3.4.0)
85
88
  rspec (3.13.0)
86
89
  rspec-core (~> 3.13.0)
87
90
  rspec-expectations (~> 3.13.0)
88
91
  rspec-mocks (~> 3.13.0)
89
- rspec-core (3.13.2)
92
+ rspec-core (3.13.3)
90
93
  rspec-support (~> 3.13.0)
91
94
  rspec-expectations (3.13.3)
92
95
  diff-lcs (>= 1.2.0, < 2.0)
@@ -94,18 +97,18 @@ GEM
94
97
  rspec-mocks (3.13.2)
95
98
  diff-lcs (>= 1.2.0, < 2.0)
96
99
  rspec-support (~> 3.13.0)
97
- rspec-support (3.13.1)
98
- rubocop (1.67.0)
100
+ rspec-support (3.13.2)
101
+ rubocop (1.71.2)
99
102
  json (~> 2.3)
100
103
  language_server-protocol (>= 3.17.0)
101
104
  parallel (~> 1.10)
102
105
  parser (>= 3.3.0.2)
103
106
  rainbow (>= 2.2.2, < 4.0)
104
- regexp_parser (>= 2.4, < 3.0)
105
- rubocop-ast (>= 1.32.2, < 2.0)
107
+ regexp_parser (>= 2.9.3, < 3.0)
108
+ rubocop-ast (>= 1.38.0, < 2.0)
106
109
  ruby-progressbar (~> 1.7)
107
- unicode-display_width (>= 2.4.0, < 3.0)
108
- rubocop-ast (1.32.3)
110
+ unicode-display_width (>= 2.4.0, < 4.0)
111
+ rubocop-ast (1.38.0)
109
112
  parser (>= 3.3.1.0)
110
113
  rubocop-capybara (2.21.0)
111
114
  rubocop (~> 1.41)
@@ -121,7 +124,7 @@ GEM
121
124
  rubocop-rspec_rails (2.29.1)
122
125
  rubocop (~> 1.61)
123
126
  ruby-progressbar (1.13.0)
124
- securerandom (0.3.1)
127
+ securerandom (0.4.1)
125
128
  simplecov (0.22.0)
126
129
  docile (~> 1.1)
127
130
  simplecov-html (~> 0.11)
@@ -130,9 +133,11 @@ GEM
130
133
  simplecov_json_formatter (0.1.4)
131
134
  tzinfo (2.0.6)
132
135
  concurrent-ruby (~> 1.0)
133
- unicode-display_width (2.6.0)
134
- uri (0.13.1)
135
- webmock (3.24.0)
136
+ unicode-display_width (3.1.4)
137
+ unicode-emoji (~> 4.0, >= 4.0.4)
138
+ unicode-emoji (4.0.4)
139
+ uri (1.0.2)
140
+ webmock (3.25.0)
136
141
  addressable (>= 2.8.0)
137
142
  crack (>= 0.3.2)
138
143
  hashdiff (>= 0.4.0, < 2.0.0)
@@ -140,6 +145,7 @@ GEM
140
145
 
141
146
  PLATFORMS
142
147
  arm64-darwin-23
148
+ arm64-darwin-24
143
149
  x86_64-darwin-19
144
150
  x86_64-darwin-20
145
151
  x86_64-darwin-21
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  [![Gem Version](https://badge.fury.io/rb/preservation-client.svg)](https://badge.fury.io/rb/preservation-client)
2
2
  [![CircleCI](https://circleci.com/gh/sul-dlss/preservation-client.svg?style=svg)](https://circleci.com/gh/sul-dlss/preservation-client)
3
- [![Maintainability](https://api.codeclimate.com/v1/badges/00d2d8957226777105b3/maintainability)](https://codeclimate.com/github/sul-dlss/preservation-client/maintainability)
4
- [![Test Coverage](https://api.codeclimate.com/v1/badges/00d2d8957226777105b3/test_coverage)](https://codeclimate.com/github/sul-dlss/preservation-client/test_coverage)
3
+ [![codecov](https://codecov.io/github/sul-dlss/preservation-client/graph/badge.svg?token=1499MH27Z6)](https://codecov.io/github/sul-dlss/preservation-client)
5
4
 
6
5
  # preservation-client
7
6
 
@@ -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.1.0'
6
6
  end
7
7
  end
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.require_paths = ['lib']
30
30
  spec.required_ruby_version = '>= 3.0'
31
31
 
32
- spec.add_dependency 'activesupport', '>= 4.2', '< 8'
32
+ spec.add_dependency 'activesupport', '>= 4.2'
33
33
  spec.add_dependency 'faraday', '~> 2.0'
34
34
  spec.add_dependency 'moab-versioning', '>= 5.0.0', '< 7'
35
35
  spec.add_dependency 'zeitwerk', '~> 2.1'
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.1.0
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-02-18 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: activesupport
@@ -17,9 +16,6 @@ dependencies:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
18
  version: '4.2'
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '8'
23
19
  type: :runtime
24
20
  prerelease: false
25
21
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,9 +23,6 @@ dependencies:
27
23
  - - ">="
28
24
  - !ruby/object:Gem::Version
29
25
  version: '4.2'
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: '8'
33
26
  - !ruby/object:Gem::Dependency
34
27
  name: faraday
35
28
  requirement: !ruby/object:Gem::Requirement
@@ -240,7 +233,6 @@ metadata:
240
233
  homepage_uri: https://github.com/sul-dlss/preservation-client
241
234
  source_code_uri: https://github.com/sul-dlss/preservation-client.
242
235
  rubygems_mfa_required: 'true'
243
- post_install_message:
244
236
  rdoc_options: []
245
237
  require_paths:
246
238
  - lib
@@ -255,8 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
255
247
  - !ruby/object:Gem::Version
256
248
  version: '0'
257
249
  requirements: []
258
- rubygems_version: 3.5.11
259
- signing_key:
250
+ rubygems_version: 3.6.3
260
251
  specification_version: 4
261
252
  summary: A thin client for getting info from SDR preservation.
262
253
  test_files: []