preservation-client 4.0.0 → 5.1.0
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/.github/pull_request_template.md +3 -6
- data/.gitignore +0 -2
- data/.rubocop.yml +80 -2
- data/.rubocop_todo.yml +3 -76
- data/Gemfile.lock +131 -0
- data/README.md +2 -4
- data/lib/preservation/client/objects.rb +0 -9
- data/lib/preservation/client/response_error_formatter.rb +3 -3
- data/lib/preservation/client/version.rb +1 -1
- data/preservation-client.gemspec +2 -2
- metadata +17 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37cef3d8d379f6c4f512f3612539aaf3df7a39ded00a94ef6a89ff1f0a37d77a
|
4
|
+
data.tar.gz: ed4a9e507f33b27bbc553ea134167c2f96d09f09ae04d0a68cd106061031ac40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 064c59c79d1866cb8b1d75fe0e47caf15329f0e49704d2ed676ac4908214e84c535d13fbe65f2328083e4ed64b120bd8b8f27d5bc87cbbb03245bb4d4550d8a3
|
7
|
+
data.tar.gz: 193e07cbc0ba2b36fdd25a1aca99655b4996ad74e05c676d116f43dab640f1b80f99045be012f491b4165eb4a5c15810ef5063fb78302181a7d8e181f0514c7a
|
data/.circleci/config.yml
CHANGED
@@ -1,12 +1,9 @@
|
|
1
|
-
## Why was this change made?
|
1
|
+
## Why was this change made? 🤔
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
## How was this change tested?
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
## Which documentation and/or configurations were updated?
|
5
|
+
## How was this change tested? 🤨
|
10
6
|
|
7
|
+
⚡ ⚠ If this change has cross service impact, run ***[integration test create_preassembly_image_spec.rb](https://github.com/sul-dlss/infrastructure-integration-test)*** on stage as it tests preservation, and/or test in stage environment, in addition to specs.⚡
|
11
8
|
|
12
9
|
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -6,6 +6,21 @@ require:
|
|
6
6
|
|
7
7
|
AllCops:
|
8
8
|
TargetRubyVersion: 3.0
|
9
|
+
SuggestExtensions: false
|
10
|
+
DisplayCopNames: true
|
11
|
+
Include:
|
12
|
+
- './Rakefile' # rake only
|
13
|
+
- '**/*.rb'
|
14
|
+
- '**/*.rake' # rake only
|
15
|
+
Exclude:
|
16
|
+
# autogenerated files (that we don't change) should go here
|
17
|
+
- 'bin/**/*'
|
18
|
+
- 'config/environments/*.rb' # rails only
|
19
|
+
- 'config/routes.rb' # rails only
|
20
|
+
- 'db/**/*' # rails only
|
21
|
+
- 'spec/spec_helper.rb'
|
22
|
+
- 'spec/rails_helper.rb' # rails only
|
23
|
+
- 'vendor/**/*' # gems only (?)
|
9
24
|
|
10
25
|
Layout/EmptyLinesAroundClassBody:
|
11
26
|
Enabled: false
|
@@ -24,6 +39,20 @@ Layout/LineLength:
|
|
24
39
|
Metrics/MethodLength:
|
25
40
|
Max: 25
|
26
41
|
|
42
|
+
# do try to keep examples short (can you split out the setup from the test?)
|
43
|
+
RSpec/ExampleLength:
|
44
|
+
Enabled: false
|
45
|
+
|
46
|
+
# most tests should test a single thing
|
47
|
+
RSpec/MultipleExpectations:
|
48
|
+
Max: 5 # default 1
|
49
|
+
|
50
|
+
RSpec/MultipleMemoizedHelpers:
|
51
|
+
Enabled: false
|
52
|
+
|
53
|
+
RSpec/NestedGroups:
|
54
|
+
Max: 5 # default: 3
|
55
|
+
|
27
56
|
Style/Documentation:
|
28
57
|
Exclude:
|
29
58
|
- 'spec/**/*'
|
@@ -31,8 +60,6 @@ Style/Documentation:
|
|
31
60
|
Style/WordArray:
|
32
61
|
Enabled: false
|
33
62
|
|
34
|
-
Gemspec/DateAssignment: # new in 1.10
|
35
|
-
Enabled: true
|
36
63
|
Gemspec/RequireMFA: # new in 1.23
|
37
64
|
Enabled: true
|
38
65
|
Layout/LineEndStringConcatenationIndentation: # new in 1.18
|
@@ -144,3 +171,54 @@ RSpec/FactoryBot/SyntaxMethods: # new in 2.7
|
|
144
171
|
Enabled: true
|
145
172
|
RSpec/Rails/AvoidSetupHook: # new in 2.4
|
146
173
|
Enabled: true
|
174
|
+
Gemspec/DeprecatedAttributeAssignment: # new in 1.30
|
175
|
+
Enabled: true
|
176
|
+
Layout/LineContinuationLeadingSpace: # new in 1.31
|
177
|
+
Enabled: true
|
178
|
+
Layout/LineContinuationSpacing: # new in 1.31
|
179
|
+
Enabled: true
|
180
|
+
Lint/ConstantOverwrittenInRescue: # new in 1.31
|
181
|
+
Enabled: true
|
182
|
+
Lint/NonAtomicFileOperation: # new in 1.31
|
183
|
+
Enabled: true
|
184
|
+
Lint/RefinementImportMethods: # new in 1.27
|
185
|
+
Enabled: true
|
186
|
+
Security/CompoundHash: # new in 1.28
|
187
|
+
Enabled: true
|
188
|
+
Style/EnvHome: # new in 1.29
|
189
|
+
Enabled: true
|
190
|
+
Style/FetchEnvVar: # new in 1.28
|
191
|
+
Enabled: true
|
192
|
+
Style/MapCompactWithConditionalBlock: # new in 1.30
|
193
|
+
Enabled: true
|
194
|
+
Style/NestedFileDirname: # new in 1.26
|
195
|
+
Enabled: true
|
196
|
+
Style/ObjectThen: # new in 1.28
|
197
|
+
Enabled: true
|
198
|
+
Style/RedundantInitialize: # new in 1.27
|
199
|
+
Enabled: true
|
200
|
+
RSpec/BeEq: # new in 2.9.0
|
201
|
+
Enabled: true
|
202
|
+
RSpec/BeNil: # new in 2.9.0
|
203
|
+
Enabled: true
|
204
|
+
RSpec/ChangeByZero: # new in 2.11.0
|
205
|
+
Enabled: true
|
206
|
+
RSpec/VerifiedDoubleReference: # new in 2.10.0
|
207
|
+
Enabled: true
|
208
|
+
|
209
|
+
Lint/RequireRangeParentheses: # new in 1.32
|
210
|
+
Enabled: true
|
211
|
+
Style/EmptyHeredoc: # new in 1.32
|
212
|
+
Enabled: true
|
213
|
+
Style/MagicCommentFormat: # new in 1.35
|
214
|
+
Enabled: true
|
215
|
+
RSpec/ClassCheck: # new in 2.13
|
216
|
+
Enabled: true
|
217
|
+
RSpec/NoExpectationExample: # new in 2.13
|
218
|
+
Enabled: true
|
219
|
+
RSpec/Capybara/SpecificFinders: # new in 2.13
|
220
|
+
Enabled: true
|
221
|
+
RSpec/Capybara/SpecificMatcher: # new in 2.12
|
222
|
+
Enabled: true
|
223
|
+
RSpec/Rails/HaveHttpStatus: # new in 2.12
|
224
|
+
Enabled: true
|
data/.rubocop_todo.yml
CHANGED
@@ -1,92 +1,19 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config --auto-gen-only-exclude`
|
3
|
-
# on 2022-
|
3
|
+
# on 2022-10-04 18:22:01 UTC using RuboCop version 1.36.0.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
8
8
|
|
9
|
-
# Offense count: 1
|
10
|
-
# Configuration parameters: Include.
|
11
|
-
# Include: **/*.gemspec
|
12
|
-
Gemspec/RequiredRubyVersion:
|
13
|
-
Exclude:
|
14
|
-
- 'preservation-client.gemspec'
|
15
|
-
|
16
9
|
# Offense count: 2
|
17
|
-
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes, Max.
|
10
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes, Max.
|
18
11
|
Metrics/AbcSize:
|
19
12
|
Exclude:
|
20
13
|
- 'lib/preservation/client/versioned_api_service.rb'
|
21
14
|
|
22
15
|
# Offense count: 1
|
23
|
-
# Configuration parameters: IgnoredMethods, Max.
|
16
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, Max.
|
24
17
|
Metrics/CyclomaticComplexity:
|
25
18
|
Exclude:
|
26
19
|
- 'lib/preservation/client/versioned_api_service.rb'
|
27
|
-
|
28
|
-
# Offense count: 1
|
29
|
-
# Configuration parameters: Prefixes.
|
30
|
-
# Prefixes: when, with, without
|
31
|
-
RSpec/ContextWording:
|
32
|
-
Exclude:
|
33
|
-
- 'spec/preservation/client_spec.rb'
|
34
|
-
|
35
|
-
# Offense count: 2
|
36
|
-
# Configuration parameters: Max, CountAsOne.
|
37
|
-
RSpec/ExampleLength:
|
38
|
-
Exclude:
|
39
|
-
- 'spec/preservation/client/objects_spec.rb'
|
40
|
-
- 'spec/preservation/client_spec.rb'
|
41
|
-
|
42
|
-
# Offense count: 1
|
43
|
-
RSpec/IdenticalEqualityAssertion:
|
44
|
-
Exclude:
|
45
|
-
- 'spec/preservation/client_spec.rb'
|
46
|
-
|
47
|
-
# Offense count: 4
|
48
|
-
# Configuration parameters: Max.
|
49
|
-
RSpec/MultipleExpectations:
|
50
|
-
Exclude:
|
51
|
-
- 'spec/preservation/client/objects_spec.rb'
|
52
|
-
- 'spec/preservation/client/response_error_formatter_spec.rb'
|
53
|
-
- 'spec/preservation/client_spec.rb'
|
54
|
-
|
55
|
-
# Offense count: 66
|
56
|
-
# Configuration parameters: AllowSubject, Max.
|
57
|
-
RSpec/MultipleMemoizedHelpers:
|
58
|
-
Exclude:
|
59
|
-
- 'spec/preservation/client/catalog_spec.rb'
|
60
|
-
- 'spec/preservation/client/objects_spec.rb'
|
61
|
-
- 'spec/preservation/client/response_error_formatter_spec.rb'
|
62
|
-
- 'spec/preservation/client/versioned_api_service_spec.rb'
|
63
|
-
|
64
|
-
# Offense count: 10
|
65
|
-
# Configuration parameters: IgnoreSharedExamples.
|
66
|
-
RSpec/NamedSubject:
|
67
|
-
Exclude:
|
68
|
-
- 'spec/preservation/client/versioned_api_service_spec.rb'
|
69
|
-
|
70
|
-
# Offense count: 10
|
71
|
-
# Configuration parameters: Max.
|
72
|
-
RSpec/NestedGroups:
|
73
|
-
Exclude:
|
74
|
-
- 'spec/preservation/client/catalog_spec.rb'
|
75
|
-
- 'spec/preservation/client/versioned_api_service_spec.rb'
|
76
|
-
|
77
|
-
# Offense count: 4
|
78
|
-
# Cop supports --auto-correct.
|
79
|
-
RSpec/ScatteredLet:
|
80
|
-
Exclude:
|
81
|
-
- 'spec/preservation/client/objects_spec.rb'
|
82
|
-
|
83
|
-
# Offense count: 24
|
84
|
-
RSpec/SubjectStub:
|
85
|
-
Exclude:
|
86
|
-
- 'spec/preservation/client/objects_spec.rb'
|
87
|
-
|
88
|
-
# Offense count: 4
|
89
|
-
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
|
90
|
-
RSpec/VerifiedDoubles:
|
91
|
-
Exclude:
|
92
|
-
- 'spec/preservation/client/response_error_formatter_spec.rb'
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,131 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
preservation-client (5.1.0)
|
5
|
+
activesupport (>= 4.2, < 8)
|
6
|
+
faraday (~> 2.0)
|
7
|
+
moab-versioning (>= 5.0.0, < 7)
|
8
|
+
zeitwerk (~> 2.1)
|
9
|
+
|
10
|
+
GEM
|
11
|
+
remote: https://rubygems.org/
|
12
|
+
specs:
|
13
|
+
activesupport (7.0.4)
|
14
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
15
|
+
i18n (>= 1.6, < 2)
|
16
|
+
minitest (>= 5.1)
|
17
|
+
tzinfo (~> 2.0)
|
18
|
+
addressable (2.8.1)
|
19
|
+
public_suffix (>= 2.0.2, < 6.0)
|
20
|
+
ast (2.4.2)
|
21
|
+
byebug (11.1.3)
|
22
|
+
coderay (1.1.3)
|
23
|
+
concurrent-ruby (1.1.10)
|
24
|
+
crack (0.4.5)
|
25
|
+
rexml
|
26
|
+
diff-lcs (1.5.0)
|
27
|
+
docile (1.4.0)
|
28
|
+
druid-tools (3.0.0)
|
29
|
+
faraday (2.7.2)
|
30
|
+
faraday-net_http (>= 2.0, < 3.1)
|
31
|
+
ruby2_keywords (>= 0.0.4)
|
32
|
+
faraday-net_http (3.0.2)
|
33
|
+
hashdiff (1.0.1)
|
34
|
+
i18n (1.12.0)
|
35
|
+
concurrent-ruby (~> 1.0)
|
36
|
+
json (2.6.3)
|
37
|
+
method_source (1.0.0)
|
38
|
+
minitest (5.17.0)
|
39
|
+
moab-versioning (5.2.0)
|
40
|
+
druid-tools (>= 1.0.0)
|
41
|
+
json
|
42
|
+
nokogiri
|
43
|
+
nokogiri-happymapper
|
44
|
+
nokogiri (1.14.0-x86_64-darwin)
|
45
|
+
racc (~> 1.4)
|
46
|
+
nokogiri (1.14.0-x86_64-linux)
|
47
|
+
racc (~> 1.4)
|
48
|
+
nokogiri-happymapper (0.9.0)
|
49
|
+
nokogiri (~> 1.5)
|
50
|
+
parallel (1.22.1)
|
51
|
+
parser (3.2.0.0)
|
52
|
+
ast (~> 2.4.1)
|
53
|
+
pry (0.14.2)
|
54
|
+
coderay (~> 1.1)
|
55
|
+
method_source (~> 1.0)
|
56
|
+
pry-byebug (3.10.1)
|
57
|
+
byebug (~> 11.0)
|
58
|
+
pry (>= 0.13, < 0.15)
|
59
|
+
public_suffix (5.0.1)
|
60
|
+
racc (1.6.2)
|
61
|
+
rainbow (3.1.1)
|
62
|
+
rake (13.0.6)
|
63
|
+
regexp_parser (2.6.1)
|
64
|
+
rexml (3.2.5)
|
65
|
+
rspec (3.12.0)
|
66
|
+
rspec-core (~> 3.12.0)
|
67
|
+
rspec-expectations (~> 3.12.0)
|
68
|
+
rspec-mocks (~> 3.12.0)
|
69
|
+
rspec-core (3.12.0)
|
70
|
+
rspec-support (~> 3.12.0)
|
71
|
+
rspec-expectations (3.12.2)
|
72
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
73
|
+
rspec-support (~> 3.12.0)
|
74
|
+
rspec-mocks (3.12.2)
|
75
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
76
|
+
rspec-support (~> 3.12.0)
|
77
|
+
rspec-support (3.12.0)
|
78
|
+
rubocop (1.43.0)
|
79
|
+
json (~> 2.3)
|
80
|
+
parallel (~> 1.10)
|
81
|
+
parser (>= 3.2.0.0)
|
82
|
+
rainbow (>= 2.2.2, < 4.0)
|
83
|
+
regexp_parser (>= 1.8, < 3.0)
|
84
|
+
rexml (>= 3.2.5, < 4.0)
|
85
|
+
rubocop-ast (>= 1.24.1, < 2.0)
|
86
|
+
ruby-progressbar (~> 1.7)
|
87
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
88
|
+
rubocop-ast (1.24.1)
|
89
|
+
parser (>= 3.1.1.0)
|
90
|
+
rubocop-capybara (2.17.0)
|
91
|
+
rubocop (~> 1.41)
|
92
|
+
rubocop-rake (0.6.0)
|
93
|
+
rubocop (~> 1.0)
|
94
|
+
rubocop-rspec (2.18.0)
|
95
|
+
rubocop (~> 1.33)
|
96
|
+
rubocop-capybara
|
97
|
+
ruby-progressbar (1.11.0)
|
98
|
+
ruby2_keywords (0.0.5)
|
99
|
+
simplecov (0.22.0)
|
100
|
+
docile (~> 1.1)
|
101
|
+
simplecov-html (~> 0.11)
|
102
|
+
simplecov_json_formatter (~> 0.1)
|
103
|
+
simplecov-html (0.12.3)
|
104
|
+
simplecov_json_formatter (0.1.4)
|
105
|
+
tzinfo (2.0.5)
|
106
|
+
concurrent-ruby (~> 1.0)
|
107
|
+
unicode-display_width (2.4.2)
|
108
|
+
webmock (3.18.1)
|
109
|
+
addressable (>= 2.8.0)
|
110
|
+
crack (>= 0.3.2)
|
111
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
112
|
+
zeitwerk (2.6.6)
|
113
|
+
|
114
|
+
PLATFORMS
|
115
|
+
x86_64-darwin-19
|
116
|
+
x86_64-linux
|
117
|
+
|
118
|
+
DEPENDENCIES
|
119
|
+
bundler (~> 2.0)
|
120
|
+
preservation-client!
|
121
|
+
pry-byebug
|
122
|
+
rake (>= 12.3.3)
|
123
|
+
rspec (~> 3.0)
|
124
|
+
rubocop (~> 1.24)
|
125
|
+
rubocop-rake
|
126
|
+
rubocop-rspec (~> 2.1)
|
127
|
+
simplecov
|
128
|
+
webmock
|
129
|
+
|
130
|
+
BUNDLED WITH
|
131
|
+
2.4.4
|
data/README.md
CHANGED
@@ -88,10 +88,6 @@ Note that the preservation service is behind a firewall.
|
|
88
88
|
- `client.objects.metadata(druid: 'oo000oo0000', filepath: 'identityMetadata.xml', version: '8')` - returns contents of identityMetadata.xml in version 8 of Moab object
|
89
89
|
- `client.objects.signature_catalog('oo000oo0000')` - returns latest Moab::SignatureCatalog from Moab
|
90
90
|
|
91
|
-
### Retrieve the primary moab storage location
|
92
|
-
|
93
|
-
- `client.objects.primary_moab_location(druid: 'ooo000oo0000')` - returns the path to the storage location for the primary moab
|
94
|
-
|
95
91
|
### Validate the Moab
|
96
92
|
|
97
93
|
- `client.objects.validate_moab(druid: 'ooo000oo0000')` - validates that the Moab object, used by preservationWF to ensure we have a valid Moab before replicating to various preservation endpoints
|
@@ -99,6 +95,7 @@ Note that the preservation service is behind a firewall.
|
|
99
95
|
### Get difference information between passed contentMetadata.xml and files in the Moab
|
100
96
|
|
101
97
|
- `client.objects.content_inventory_diff(druid: 'oo000oo0000', content_metadata: '<contentMetadata>...</contentMetadata>')` - returns Moab::FileInventoryDifference containing differences between passed content metadata and latest version for subset 'all'
|
98
|
+
|
102
99
|
- you may specify the subset (all|shelve|preserve|publish) and/or the version:
|
103
100
|
- `client.objects.content_inventory_diff(druid: 'oo000oo0000', subset: 'publish', version: '1', content_metadata: '<contentMetadata>...</contentMetadata>')`
|
104
101
|
|
@@ -107,6 +104,7 @@ Note that the preservation service is behind a firewall.
|
|
107
104
|
### Alert the catalog that an object has been changed and needs to be updated
|
108
105
|
|
109
106
|
- `client.update(druid: 'oo000oo0000', version: 3, size: 2342, storage_location: 'some/storage/location')` - returns true if it worked
|
107
|
+
|
110
108
|
## Development
|
111
109
|
|
112
110
|
After checking out the repo, run `bundle` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
@@ -80,15 +80,6 @@ module Preservation
|
|
80
80
|
get("objects/#{druid}/validate_moab", {}, on_data: nil)
|
81
81
|
end
|
82
82
|
|
83
|
-
# retrieve the storage location for the primary moab of the given druid
|
84
|
-
# @param [String] druid - with or without prefix: 'druid:ab123cd4567' or 'ab123cd4567'
|
85
|
-
# @return [String] the storage location of the primary moab for the given druid
|
86
|
-
# @raise [Preservation::Client::NotFoundError] when druid is not found
|
87
|
-
# @raise [Preservation::Client::LockedError] when druid is in locked state (not available for versioning)
|
88
|
-
def primary_moab_location(druid:)
|
89
|
-
get("objects/#{druid}/primary_moab_location", {}, on_data: nil)
|
90
|
-
end
|
91
|
-
|
92
83
|
# convenience method for retrieving latest Moab::SignatureCatalog from a Moab object,
|
93
84
|
# @param [String] druid - with or without prefix: 'druid:ab123cd4567' OR 'ab123cd4567'
|
94
85
|
# @return [Moab::SignatureCatalog] the manifest of all files previously ingested
|
@@ -4,9 +4,9 @@ module Preservation
|
|
4
4
|
class Client
|
5
5
|
# Format HTTP response-related errors
|
6
6
|
class ResponseErrorFormatter
|
7
|
-
DEFAULT_BODY = 'Response from preservation-catalog did not contain a body. '\
|
8
|
-
'Check honeybadger for preservation-catalog for backtraces, '\
|
9
|
-
'and look into adding a `rescue_from` in preservation-catalog '\
|
7
|
+
DEFAULT_BODY = 'Response from preservation-catalog did not contain a body. ' \
|
8
|
+
'Check honeybadger for preservation-catalog for backtraces, ' \
|
9
|
+
'and look into adding a `rescue_from` in preservation-catalog ' \
|
10
10
|
'to provide more details to the client in the future.'
|
11
11
|
|
12
12
|
def self.format(response:, object_id: nil, client_method_name: nil)
|
data/preservation-client.gemspec
CHANGED
@@ -27,11 +27,11 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.bindir = 'exe'
|
28
28
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
29
|
spec.require_paths = ['lib']
|
30
|
-
spec.required_ruby_version = '>=
|
30
|
+
spec.required_ruby_version = '>= 3.0'
|
31
31
|
|
32
32
|
spec.add_dependency 'activesupport', '>= 4.2', '< 8'
|
33
33
|
spec.add_dependency 'faraday', '~> 2.0'
|
34
|
-
spec.add_dependency 'moab-versioning', '
|
34
|
+
spec.add_dependency 'moab-versioning', '>= 5.0.0', '< 7'
|
35
35
|
spec.add_dependency 'zeitwerk', '~> 2.1'
|
36
36
|
|
37
37
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: preservation-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naomi Dushay
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -48,16 +48,22 @@ dependencies:
|
|
48
48
|
name: moab-versioning
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- - "
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 5.0.0
|
54
|
+
- - "<"
|
52
55
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
56
|
+
version: '7'
|
54
57
|
type: :runtime
|
55
58
|
prerelease: false
|
56
59
|
version_requirements: !ruby/object:Gem::Requirement
|
57
60
|
requirements:
|
58
|
-
- - "
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: 5.0.0
|
64
|
+
- - "<"
|
59
65
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
66
|
+
version: '7'
|
61
67
|
- !ruby/object:Gem::Dependency
|
62
68
|
name: zeitwerk
|
63
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -213,6 +219,7 @@ files:
|
|
213
219
|
- ".rubocop.yml"
|
214
220
|
- ".rubocop_todo.yml"
|
215
221
|
- Gemfile
|
222
|
+
- Gemfile.lock
|
216
223
|
- LICENSE
|
217
224
|
- README.md
|
218
225
|
- Rakefile
|
@@ -233,7 +240,7 @@ metadata:
|
|
233
240
|
homepage_uri: https://github.com/sul-dlss/preservation-client
|
234
241
|
source_code_uri: https://github.com/sul-dlss/preservation-client.
|
235
242
|
rubygems_mfa_required: 'true'
|
236
|
-
post_install_message:
|
243
|
+
post_install_message:
|
237
244
|
rdoc_options: []
|
238
245
|
require_paths:
|
239
246
|
- lib
|
@@ -241,7 +248,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
241
248
|
requirements:
|
242
249
|
- - ">="
|
243
250
|
- !ruby/object:Gem::Version
|
244
|
-
version: '
|
251
|
+
version: '3.0'
|
245
252
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
246
253
|
requirements:
|
247
254
|
- - ">="
|
@@ -249,7 +256,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
249
256
|
version: '0'
|
250
257
|
requirements: []
|
251
258
|
rubygems_version: 3.2.32
|
252
|
-
signing_key:
|
259
|
+
signing_key:
|
253
260
|
specification_version: 4
|
254
261
|
summary: A thin client for getting info from SDR preservation.
|
255
262
|
test_files: []
|