folio_client 0.15.0 → 0.17.0

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: d0d61214a5547fd8ff28b9e79cef6eae123bddea9b060039163a1d8d7e3a8b91
4
- data.tar.gz: f343f324c6bd48998394d3bc3badeff7aa010cdafcf171d53c076df44c341756
3
+ metadata.gz: 56da738676b7e388431bd7df800101f1d9263154af720809d72f3710aa1ec492
4
+ data.tar.gz: cbdec1ca313e1800b96229ef90ab014ec4a18a3f31e04424aec95da573b83a6d
5
5
  SHA512:
6
- metadata.gz: ba5f952cf9c4449adece5c15496832bb89a73cba6fcc866e4f7024c393f22fedab0be86c4a8a394c4d893b8c9a224e38305dc79e3d0a657c76c8413658600a88
7
- data.tar.gz: c747fa00a2e6f51ba219116bc197922fab303bda976fc0945d9e906d3160813206ae434c2d8c791f66c41a92781d288eaaae40401ed03db83d4eded7783d17a1
6
+ metadata.gz: 02bde3498c2bf91d4ea51888cb53672198f59af32f40d36f713237c8631135984790aab6ea447cef99a58fe2c0d6ea849ad43319cba9b888789173b6932242f9
7
+ data.tar.gz: 14ebfb14e447dad4d0758566cdc0c12125d397da74d703ada8806c6eeaae9d9f43016ac5aeedc338fbe4e5c26c3c1675ed3e1d667aaec15cf25d4a51ec861bbf
data/.rubocop.yml CHANGED
@@ -1,18 +1,354 @@
1
- inherit_mode:
2
- merge:
3
- - Exclude
4
-
5
1
  require:
6
- - standard
7
- - standard-custom
8
- - standard-performance
9
2
  - rubocop-performance
10
3
  - rubocop-rspec
11
4
 
12
- inherit_gem:
13
- standard: config/base.yml
14
- standard-performance: config/base.yml
15
- standard-custom: config/base.yml
5
+ AllCops:
6
+ TargetRubyVersion: 3.0
7
+ DisplayCopNames: true
8
+ SuggestExtensions: false
9
+ Exclude:
10
+ - bin/**
11
+ - vendor/bundle/**/*
12
+
13
+ # Per team developer playbook
14
+ Layout/LineLength:
15
+ Max: 150
16
+ RSpec/MultipleMemoizedHelpers:
17
+ Enabled: false
18
+ RSpec/MultipleExpectations:
19
+ Max: 3
20
+ RSpec/ExampleLength:
21
+ Max: 15
22
+
23
+ RSpec/BeEq: # new in 2.9.0
24
+ Enabled: true
25
+ RSpec/BeNil: # new in 2.9.0
26
+ Enabled: true
27
+ RSpec/ChangeByZero: # new in 2.11
28
+ Enabled: true
29
+ RSpec/ClassCheck: # new in 2.13
30
+ Enabled: true
31
+ RSpec/ExcessiveDocstringSpacing: # new in 2.5
32
+ Enabled: true
33
+ RSpec/IdenticalEqualityAssertion: # new in 2.4
34
+ Enabled: true
35
+ RSpec/NoExpectationExample: # new in 2.13
36
+ Enabled: true
37
+ RSpec/SortMetadata: # new in 2.14
38
+ Enabled: true
39
+ RSpec/SubjectDeclaration: # new in 2.5
40
+ Enabled: true
41
+ RSpec/VerifiedDoubleReference: # new in 2.10.0
42
+ Enabled: true
43
+ FactoryBot/ConsistentParenthesesStyle: # new in 2.14
44
+ Enabled: true
45
+ FactoryBot/SyntaxMethods: # new in 2.7
46
+ Enabled: true
47
+ RSpec/Rails/AvoidSetupHook: # new in 2.4
48
+ Enabled: true
49
+ RSpec/Rails/HaveHttpStatus: # new in 2.12
50
+ Enabled: true
51
+ RSpec/Rails/InferredSpecType: # new in 2.14
52
+ Enabled: true
53
+ Capybara/MatchStyle: # new in 2.17
54
+ Enabled: true
55
+ Capybara/NegationMatcher: # new in 2.14
56
+ Enabled: true
57
+ Capybara/SpecificActions: # new in 2.14
58
+ Enabled: true
59
+ Capybara/SpecificFinders: # new in 2.13
60
+ Enabled: true
61
+ Capybara/SpecificMatcher: # new in 2.12
62
+ Enabled: true
63
+ RSpec/DuplicatedMetadata: # new in 2.16
64
+ Enabled: true
65
+ RSpec/PendingWithoutReason: # new in 2.16
66
+ Enabled: true
67
+ FactoryBot/FactoryNameStyle: # new in 2.16
68
+ Enabled: true
69
+ RSpec/Rails/MinitestAssertions: # new in 2.17
70
+ Enabled: true
71
+ RSpec/RedundantAround: # new in 2.19
72
+ Enabled: true
73
+ RSpec/SkipBlockInsideExample: # new in 2.19
74
+ Enabled: true
75
+ RSpec/Rails/TravelAround: # new in 2.19
76
+ Enabled: true
77
+ FactoryBot/AssociationStyle: # new in 2.23
78
+ Enabled: true
79
+ FactoryBot/FactoryAssociationWithStrategy: # new in 2.23
80
+ Enabled: true
81
+ FactoryBot/RedundantFactoryOption: # new in 2.23
82
+ Enabled: true
83
+ RSpec/BeEmpty: # new in 2.20
84
+ Enabled: true
85
+ RSpec/ContainExactly: # new in 2.19
86
+ Enabled: true
87
+ RSpec/IndexedLet: # new in 2.20
88
+ Enabled: true
89
+ RSpec/MatchArray: # new in 2.19
90
+ Enabled: true
91
+
92
+ Gemspec/DeprecatedAttributeAssignment: # new in 1.30
93
+ Enabled: true
94
+ Gemspec/DevelopmentDependencies: # new in 1.44
95
+ Enabled: false
96
+ Gemspec/RequireMFA: # new in 1.23
97
+ Enabled: true
98
+ Layout/LineContinuationLeadingSpace: # new in 1.31
99
+ Enabled: true
100
+ Layout/LineContinuationSpacing: # new in 1.31
101
+ Enabled: true
102
+ Layout/LineEndStringConcatenationIndentation: # new in 1.18
103
+ Enabled: true
104
+ Layout/SpaceBeforeBrackets: # new in 1.7
105
+ Enabled: true
106
+ Lint/AmbiguousAssignment: # new in 1.7
107
+ Enabled: true
108
+ Lint/AmbiguousOperatorPrecedence: # new in 1.21
109
+ Enabled: true
110
+ Lint/AmbiguousRange: # new in 1.19
111
+ Enabled: true
112
+ Lint/ConstantOverwrittenInRescue: # new in 1.31
113
+ Enabled: true
114
+ Lint/DeprecatedConstants: # new in 1.8
115
+ Enabled: true
116
+ Lint/DuplicateBranch: # new in 1.3
117
+ Enabled: true
118
+ Lint/DuplicateMagicComment: # new in 1.37
119
+ Enabled: true
120
+ Lint/DuplicateMatchPattern: # new in 1.50
121
+ Enabled: true
122
+ Lint/DuplicateRegexpCharacterClassElement: # new in 1.1
123
+ Enabled: true
124
+ Lint/EmptyBlock: # new in 1.1
125
+ Enabled: true
126
+ Lint/EmptyClass: # new in 1.3
127
+ Enabled: true
128
+ Lint/EmptyInPattern: # new in 1.16
129
+ Enabled: true
130
+ Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
131
+ Enabled: true
132
+ Lint/ItWithoutArgumentsInBlock: # new in 1.59
133
+ Enabled: true
134
+ Lint/LambdaWithoutLiteralBlock: # new in 1.8
135
+ Enabled: true
136
+ Lint/LiteralAssignmentInCondition: # new in 1.58
137
+ Enabled: true
138
+ Lint/MixedCaseRange: # new in 1.53
139
+ Enabled: true
140
+ Lint/NoReturnInBeginEndBlocks: # new in 1.2
141
+ Enabled: true
142
+ Lint/NonAtomicFileOperation: # new in 1.31
143
+ Enabled: true
144
+ Lint/NumberedParameterAssignment: # new in 1.9
145
+ Enabled: true
146
+ Lint/OrAssignmentToConstant: # new in 1.9
147
+ Enabled: true
148
+ Lint/RedundantDirGlobSort: # new in 1.8
149
+ Enabled: true
150
+ Lint/RedundantRegexpQuantifiers: # new in 1.53
151
+ Enabled: true
152
+ Lint/RefinementImportMethods: # new in 1.27
153
+ Enabled: true
154
+ Lint/RequireRangeParentheses: # new in 1.32
155
+ Enabled: true
156
+ Lint/RequireRelativeSelfPath: # new in 1.22
157
+ Enabled: true
158
+ Lint/SymbolConversion: # new in 1.9
159
+ Enabled: true
160
+ Lint/ToEnumArguments: # new in 1.1
161
+ Enabled: true
162
+ Lint/TripleQuotes: # new in 1.9
163
+ Enabled: true
164
+ Lint/UnexpectedBlockArity: # new in 1.5
165
+ Enabled: true
166
+ Lint/UnmodifiedReduceAccumulator: # new in 1.1
167
+ Enabled: true
168
+ Lint/UselessRescue: # new in 1.43
169
+ Enabled: true
170
+ Lint/UselessRuby2Keywords: # new in 1.23
171
+ Enabled: true
172
+ Metrics/CollectionLiteralLength: # new in 1.47
173
+ Enabled: true
174
+ Naming/BlockForwarding: # new in 1.24
175
+ Enabled: true
176
+ Security/CompoundHash: # new in 1.28
177
+ Enabled: true
178
+ Security/IoMethods: # new in 1.22
179
+ Enabled: true
180
+ Style/ArgumentsForwarding: # new in 1.1
181
+ Enabled: true
182
+ Style/ArrayIntersect: # new in 1.40
183
+ Enabled: true
184
+ Style/CollectionCompact: # new in 1.2
185
+ Enabled: true
186
+ Style/ComparableClamp: # new in 1.44
187
+ Enabled: true
188
+ Style/ConcatArrayLiterals: # new in 1.41
189
+ Enabled: true
190
+ Style/DataInheritance: # new in 1.49
191
+ Enabled: true
192
+ Style/DirEmpty: # new in 1.48
193
+ Enabled: true
194
+ Style/DocumentDynamicEvalDefinition: # new in 1.1
195
+ Enabled: true
196
+ Style/EmptyHeredoc: # new in 1.32
197
+ Enabled: true
198
+ Style/EndlessMethod: # new in 1.8
199
+ Enabled: true
200
+ Style/EnvHome: # new in 1.29
201
+ Enabled: true
202
+ Style/ExactRegexpMatch: # new in 1.51
203
+ Enabled: true
204
+ Style/FetchEnvVar: # new in 1.28
205
+ Enabled: true
206
+ Style/FileEmpty: # new in 1.48
207
+ Enabled: true
208
+ Style/FileRead: # new in 1.24
209
+ Enabled: true
210
+ Style/FileWrite: # new in 1.24
211
+ Enabled: true
212
+ Style/HashConversion: # new in 1.10
213
+ Enabled: true
214
+ Style/HashExcept: # new in 1.7
215
+ Enabled: true
216
+ Style/IfWithBooleanLiteralBranches: # new in 1.9
217
+ Enabled: true
218
+ Style/InPatternThen: # new in 1.16
219
+ Enabled: true
220
+ Style/MagicCommentFormat: # new in 1.35
221
+ Enabled: true
222
+ Style/MapCompactWithConditionalBlock: # new in 1.30
223
+ Enabled: true
224
+ Style/MapToHash: # new in 1.24
225
+ Enabled: true
226
+ Style/MapToSet: # new in 1.42
227
+ Enabled: true
228
+ Style/MinMaxComparison: # new in 1.42
229
+ Enabled: true
230
+ Style/MultilineInPatternThen: # new in 1.16
231
+ Enabled: true
232
+ Style/NegatedIfElseCondition: # new in 1.2
233
+ Enabled: true
234
+ Style/NestedFileDirname: # new in 1.26
235
+ Enabled: true
236
+ Style/NilLambda: # new in 1.3
237
+ Enabled: true
238
+ Style/NumberedParameters: # new in 1.22
239
+ Enabled: true
240
+ Style/NumberedParametersLimit: # new in 1.22
241
+ Enabled: true
242
+ Style/ObjectThen: # new in 1.28
243
+ Enabled: true
244
+ Style/OpenStructUse: # new in 1.23
245
+ Enabled: true
246
+ Style/OperatorMethodCall: # new in 1.37
247
+ Enabled: true
248
+ Style/QuotedSymbols: # new in 1.16
249
+ Enabled: true
250
+ Style/RedundantArgument: # new in 1.4
251
+ Enabled: true
252
+ Style/RedundantArrayConstructor: # new in 1.52
253
+ Enabled: true
254
+ Style/RedundantConstantBase: # new in 1.40
255
+ Enabled: true
256
+ Style/RedundantCurrentDirectoryInPath: # new in 1.53
257
+ Enabled: true
258
+ Style/RedundantDoubleSplatHashBraces: # new in 1.41
259
+ Enabled: true
260
+ Style/RedundantEach: # new in 1.38
261
+ Enabled: true
262
+ Style/RedundantFilterChain: # new in 1.52
263
+ Enabled: true
264
+ Style/RedundantHeredocDelimiterQuotes: # new in 1.45
265
+ Enabled: true
266
+ Style/RedundantInitialize: # new in 1.27
267
+ Enabled: true
268
+ Style/RedundantLineContinuation: # new in 1.49
269
+ Enabled: true
270
+ Style/RedundantRegexpArgument: # new in 1.53
271
+ Enabled: true
272
+ Style/RedundantRegexpConstructor: # new in 1.52
273
+ Enabled: true
274
+ Style/RedundantSelfAssignmentBranch: # new in 1.19
275
+ Enabled: true
276
+ Style/RedundantStringEscape: # new in 1.37
277
+ Enabled: true
278
+ Style/ReturnNilInPredicateMethodDefinition: # new in 1.53
279
+ Enabled: true
280
+ Style/SelectByRegexp: # new in 1.22
281
+ Enabled: true
282
+ Style/SingleLineDoEndBlock: # new in 1.57
283
+ Enabled: true
284
+ Style/StringChars: # new in 1.12
285
+ Enabled: true
286
+ Style/SuperWithArgsParentheses: # new in 1.58
287
+ Enabled: true
288
+ Style/SwapValues: # new in 1.1
289
+ Enabled: true
290
+ Style/YAMLFileRead: # new in 1.53
291
+ Enabled: true
292
+ Capybara/ClickLinkOrButtonStyle: # new in 2.19
293
+ Enabled: true
294
+ Capybara/RedundantWithinFind: # new in 2.20
295
+ Enabled: true
296
+ Capybara/RSpec/HaveSelector: # new in 2.19
297
+ Enabled: true
298
+ Capybara/RSpec/PredicateMatcher: # new in 2.19
299
+ Enabled: true
300
+ FactoryBot/IdSequence: # new in <<next>>
301
+ Enabled: true
302
+ RSpec/EmptyMetadata: # new in 2.24
303
+ Enabled: true
304
+ RSpec/Eq: # new in 2.24
305
+ Enabled: true
306
+ RSpec/MetadataStyle: # new in 2.24
307
+ Enabled: true
308
+ RSpec/ReceiveMessages: # new in 2.23
309
+ Enabled: true
310
+ RSpec/SpecFilePathFormat: # new in 2.24
311
+ Enabled: true
312
+ RSpec/SpecFilePathSuffix: # new in 2.24
313
+ Enabled: true
314
+ RSpec/Rails/NegationBeValid: # new in 2.23
315
+ Enabled: true
16
316
 
17
- inherit_from:
18
- - .rubocop/custom.yml
317
+ Performance/AncestorsInclude: # new in 1.7
318
+ Enabled: true
319
+ Performance/BigDecimalWithNumericArgument: # new in 1.7
320
+ Enabled: true
321
+ Performance/BlockGivenWithExplicitBlock: # new in 1.9
322
+ Enabled: true
323
+ Performance/CollectionLiteralInLoop: # new in 1.8
324
+ Enabled: true
325
+ Performance/ConcurrentMonotonicTime: # new in 1.12
326
+ Enabled: true
327
+ Performance/ConstantRegexp: # new in 1.9
328
+ Enabled: true
329
+ Performance/MapCompact: # new in 1.11
330
+ Enabled: true
331
+ Performance/MapMethodChain: # new in 1.19
332
+ Enabled: true
333
+ Performance/MethodObjectAsBlock: # new in 1.9
334
+ Enabled: true
335
+ Performance/RedundantEqualityComparisonBlock: # new in 1.10
336
+ Enabled: true
337
+ Performance/RedundantSortBlock: # new in 1.7
338
+ Enabled: true
339
+ Performance/RedundantSplitRegexpArgument: # new in 1.10
340
+ Enabled: true
341
+ Performance/RedundantStringChars: # new in 1.7
342
+ Enabled: true
343
+ Performance/ReverseFirst: # new in 1.7
344
+ Enabled: true
345
+ Performance/SortReverse: # new in 1.7
346
+ Enabled: true
347
+ Performance/Squeeze: # new in 1.7
348
+ Enabled: true
349
+ Performance/StringIdentifierArgument: # new in 1.13
350
+ Enabled: true
351
+ Performance/StringInclude: # new in 1.7
352
+ Enabled: true
353
+ Performance/Sum: # new in 1.8
354
+ Enabled: true
data/Gemfile CHANGED
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- source "https://rubygems.org"
3
+ source 'https://rubygems.org'
4
4
 
5
5
  # Specify your gem's dependencies in folio_client.gemspec
6
6
  gemspec
7
7
 
8
- gem "byebug"
8
+ gem 'byebug'
data/Gemfile.lock CHANGED
@@ -1,17 +1,18 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- folio_client (0.15.0)
4
+ folio_client (0.17.0)
5
5
  activesupport (>= 4.2, < 8)
6
6
  dry-monads
7
7
  faraday
8
+ faraday-cookie_jar
8
9
  marc
9
10
  zeitwerk
10
11
 
11
12
  GEM
12
13
  remote: https://rubygems.org/
13
14
  specs:
14
- activesupport (7.1.2)
15
+ activesupport (7.1.3.4)
15
16
  base64
16
17
  bigdecimal
17
18
  concurrent-ruby (~> 1.0, >= 1.0.2)
@@ -21,20 +22,21 @@ GEM
21
22
  minitest (>= 5.1)
22
23
  mutex_m
23
24
  tzinfo (~> 2.0)
24
- addressable (2.8.5)
25
+ addressable (2.8.6)
25
26
  public_suffix (>= 2.0.2, < 6.0)
26
27
  ast (2.4.2)
27
28
  base64 (0.2.0)
28
- bigdecimal (3.1.4)
29
+ bigdecimal (3.1.8)
29
30
  byebug (11.1.3)
30
- concurrent-ruby (1.2.2)
31
+ concurrent-ruby (1.3.3)
31
32
  connection_pool (2.4.1)
32
- crack (0.4.5)
33
+ crack (1.0.0)
34
+ bigdecimal
33
35
  rexml
34
- diff-lcs (1.5.0)
36
+ diff-lcs (1.5.1)
35
37
  docile (1.4.0)
36
- drb (2.2.0)
37
- ruby2_keywords
38
+ domain_name (0.6.20240107)
39
+ drb (2.2.1)
38
40
  dry-core (1.0.1)
39
41
  concurrent-ruby (~> 1.0)
40
42
  zeitwerk (~> 2.6)
@@ -42,72 +44,80 @@ GEM
42
44
  concurrent-ruby (~> 1.0)
43
45
  dry-core (~> 1.0, < 2)
44
46
  zeitwerk (~> 2.6)
45
- faraday (2.7.12)
46
- base64
47
- faraday-net_http (>= 2.0, < 3.1)
48
- ruby2_keywords (>= 0.0.4)
49
- faraday-net_http (3.0.2)
50
- hashdiff (1.0.1)
51
- i18n (1.14.1)
47
+ faraday (2.9.1)
48
+ faraday-net_http (>= 2.0, < 3.2)
49
+ faraday-cookie_jar (0.0.7)
50
+ faraday (>= 0.8.0)
51
+ http-cookie (~> 1.0.0)
52
+ faraday-net_http (3.1.0)
53
+ net-http
54
+ hashdiff (1.1.0)
55
+ http-cookie (1.0.6)
56
+ domain_name (~> 0.5)
57
+ i18n (1.14.5)
52
58
  concurrent-ruby (~> 1.0)
53
- json (2.6.3)
59
+ json (2.7.2)
54
60
  language_server-protocol (3.17.0.3)
55
- lint_roller (1.1.0)
56
61
  marc (1.2.0)
57
62
  rexml
58
63
  scrub_rb (>= 1.0.1, < 2)
59
64
  unf
60
- minitest (5.20.0)
65
+ minitest (5.23.1)
61
66
  mutex_m (0.2.0)
62
- parallel (1.23.0)
63
- parser (3.2.2.4)
67
+ net-http (0.4.1)
68
+ uri
69
+ parallel (1.25.1)
70
+ parser (3.3.2.0)
64
71
  ast (~> 2.4.1)
65
72
  racc
66
- public_suffix (5.0.4)
67
- racc (1.7.3)
73
+ public_suffix (5.0.5)
74
+ racc (1.8.0)
68
75
  rainbow (3.1.1)
69
- rake (13.1.0)
70
- regexp_parser (2.8.2)
71
- rexml (3.2.6)
72
- rspec (3.12.0)
73
- rspec-core (~> 3.12.0)
74
- rspec-expectations (~> 3.12.0)
75
- rspec-mocks (~> 3.12.0)
76
- rspec-core (3.12.2)
77
- rspec-support (~> 3.12.0)
78
- rspec-expectations (3.12.3)
76
+ rake (13.2.1)
77
+ regexp_parser (2.9.2)
78
+ rexml (3.2.9)
79
+ strscan
80
+ rspec (3.13.0)
81
+ rspec-core (~> 3.13.0)
82
+ rspec-expectations (~> 3.13.0)
83
+ rspec-mocks (~> 3.13.0)
84
+ rspec-core (3.13.0)
85
+ rspec-support (~> 3.13.0)
86
+ rspec-expectations (3.13.0)
79
87
  diff-lcs (>= 1.2.0, < 2.0)
80
- rspec-support (~> 3.12.0)
81
- rspec-mocks (3.12.6)
88
+ rspec-support (~> 3.13.0)
89
+ rspec-mocks (3.13.1)
82
90
  diff-lcs (>= 1.2.0, < 2.0)
83
- rspec-support (~> 3.12.0)
84
- rspec-support (3.12.1)
85
- rubocop (1.57.2)
91
+ rspec-support (~> 3.13.0)
92
+ rspec-support (3.13.1)
93
+ rubocop (1.64.1)
86
94
  json (~> 2.3)
87
95
  language_server-protocol (>= 3.17.0)
88
96
  parallel (~> 1.10)
89
- parser (>= 3.2.2.4)
97
+ parser (>= 3.3.0.2)
90
98
  rainbow (>= 2.2.2, < 4.0)
91
99
  regexp_parser (>= 1.8, < 3.0)
92
100
  rexml (>= 3.2.5, < 4.0)
93
- rubocop-ast (>= 1.28.1, < 2.0)
101
+ rubocop-ast (>= 1.31.1, < 2.0)
94
102
  ruby-progressbar (~> 1.7)
95
103
  unicode-display_width (>= 2.4.0, < 3.0)
96
- rubocop-ast (1.30.0)
97
- parser (>= 3.2.1.0)
98
- rubocop-capybara (2.19.0)
104
+ rubocop-ast (1.31.3)
105
+ parser (>= 3.3.1.0)
106
+ rubocop-capybara (2.21.0)
99
107
  rubocop (~> 1.41)
100
- rubocop-factory_bot (2.24.0)
101
- rubocop (~> 1.33)
102
- rubocop-performance (1.19.1)
103
- rubocop (>= 1.7.0, < 2.0)
104
- rubocop-ast (>= 0.4.0)
105
- rubocop-rspec (2.25.0)
108
+ rubocop-factory_bot (2.26.0)
109
+ rubocop (~> 1.41)
110
+ rubocop-performance (1.21.0)
111
+ rubocop (>= 1.48.1, < 2.0)
112
+ rubocop-ast (>= 1.31.1, < 2.0)
113
+ rubocop-rspec (2.31.0)
106
114
  rubocop (~> 1.40)
107
115
  rubocop-capybara (~> 2.17)
108
116
  rubocop-factory_bot (~> 2.22)
117
+ rubocop-rspec_rails (~> 2.28)
118
+ rubocop-rspec_rails (2.29.0)
119
+ rubocop (~> 1.40)
109
120
  ruby-progressbar (1.13.0)
110
- ruby2_keywords (0.0.5)
111
121
  scrub_rb (1.0.1)
112
122
  simplecov (0.22.0)
113
123
  docile (~> 1.1)
@@ -115,31 +125,22 @@ GEM
115
125
  simplecov_json_formatter (~> 0.1)
116
126
  simplecov-html (0.12.3)
117
127
  simplecov_json_formatter (0.1.4)
118
- standard (1.32.0)
119
- language_server-protocol (~> 3.17.0.2)
120
- lint_roller (~> 1.0)
121
- rubocop (~> 1.57.2)
122
- standard-custom (~> 1.0.0)
123
- standard-performance (~> 1.2)
124
- standard-custom (1.0.2)
125
- lint_roller (~> 1.0)
126
- rubocop (~> 1.50)
127
- standard-performance (1.2.1)
128
- lint_roller (~> 1.1)
129
- rubocop-performance (~> 1.19.1)
128
+ strscan (3.1.0)
130
129
  tzinfo (2.0.6)
131
130
  concurrent-ruby (~> 1.0)
132
131
  unf (0.1.4)
133
132
  unf_ext
134
133
  unf_ext (0.0.9.1)
135
134
  unicode-display_width (2.5.0)
136
- webmock (3.19.1)
135
+ uri (0.13.0)
136
+ webmock (3.23.1)
137
137
  addressable (>= 2.8.0)
138
138
  crack (>= 0.3.2)
139
139
  hashdiff (>= 0.4.0, < 2.0.0)
140
- zeitwerk (2.6.12)
140
+ zeitwerk (2.6.15)
141
141
 
142
142
  PLATFORMS
143
+ arm64-darwin-23
143
144
  x86_64-darwin-19
144
145
  x86_64-darwin-20
145
146
  x86_64-darwin-21
@@ -151,9 +152,10 @@ DEPENDENCIES
151
152
  folio_client!
152
153
  rake (~> 13.0)
153
154
  rspec (~> 3.0)
155
+ rubocop
156
+ rubocop-performance
154
157
  rubocop-rspec
155
158
  simplecov
156
- standard
157
159
  webmock
158
160
 
159
161
  BUNDLED WITH
data/README.md CHANGED
@@ -44,14 +44,15 @@ require 'folio_client'
44
44
  client = FolioClient.configure(
45
45
  url: Settings.okapi.url,
46
46
  login_params: Settings.okapi.login_params,
47
- okapi_headers: Settings.okapi.headers
47
+ okapi_headers: Settings.okapi.headers,
48
+ legacy_auth: true # consumers should leave set to true (default) until /login-with-expiry endpoint enabled in Poppy
48
49
  )
49
50
  ```
50
51
 
51
52
  The client is smart enough to automatically request a new token if it detects the one it is using has expired. If for some reason, you want to immediately request a new token, you can do this:
52
53
 
53
54
  ```ruby
54
- client.config.token = FolioClient::Authenticator.token(client.config.login_params, client.connection)
55
+ client.force_token_refresh! # or `FolioClient.force_token_refresh!` as they are identical
55
56
  ```
56
57
 
57
58
  ## API Coverage
data/Rakefile CHANGED
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "bundler/gem_tasks"
4
- require "rspec/core/rake_task"
5
- require "rubocop/rake_task"
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+ require 'rubocop/rake_task'
6
6
 
7
7
  RSpec::Core::RakeTask.new(:spec)
8
8
  RuboCop::RakeTask.new
data/api_test.rb CHANGED
@@ -1,27 +1,28 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
- require "bundler/setup"
4
- require "folio_client"
4
+ require 'bundler/setup'
5
+ require 'folio_client'
5
6
 
6
7
  marc_files = *ARGV
7
8
 
8
9
  client =
9
10
  FolioClient.configure(
10
- url: ENV["OKAPI_URL"],
11
+ url: ENV.fetch('OKAPI_URL', nil),
11
12
  login_params: {
12
- username: ENV["OKAPI_USER"],
13
- password: ENV["OKAPI_PASSWORD"]
13
+ username: ENV.fetch('OKAPI_USER', nil),
14
+ password: ENV.fetch('OKAPI_PASSWORD', nil)
14
15
  },
15
16
  okapi_headers: {
16
- "X-Okapi-Tenant": ENV["OKAPI_TENANT"],
17
- "User-Agent": "folio_client gem (testing)"
17
+ 'X-Okapi-Tenant': ENV.fetch('OKAPI_TENANT', nil),
18
+ 'User-Agent': 'folio_client gem (testing)'
18
19
  }
19
20
  )
20
21
 
21
- pp(client.fetch_marc_hash(instance_hrid: "a666"))
22
+ pp(client.fetch_marc_hash(instance_hrid: 'a666'))
22
23
 
23
- puts client.fetch_marc_xml(instance_hrid: "a666")
24
- puts client.fetch_marc_xml(barcode: "20503330279")
24
+ puts client.fetch_marc_xml(instance_hrid: 'a666')
25
+ puts client.fetch_marc_xml(barcode: '20503330279')
25
26
 
26
27
  puts client.users(query: 'username=="pet*"')
27
28
 
@@ -32,8 +33,8 @@ end
32
33
  data_importer =
33
34
  client.data_import(
34
35
  records: records,
35
- job_profile_id: "e34d7b92-9b83-11eb-a8b3-0242ac130003",
36
- job_profile_name: "Default - Create instance and SRS MARC Bib"
36
+ job_profile_id: 'e34d7b92-9b83-11eb-a8b3-0242ac130003',
37
+ job_profile_name: 'Default - Create instance and SRS MARC Bib'
37
38
  )
38
39
 
39
40
  puts data_importer.wait_until_complete