Skip to content

Commit

Permalink
Merge pull request #664 from sul-dlss/update-dependencies
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
ndushay authored Jan 15, 2024
2 parents fd788a7 + db6d48f commit 3e1619e
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 9 deletions.
37 changes: 36 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -458,4 +458,39 @@ Style/YAMLFileRead: # new in 1.53
RSpec/ReceiveMessages: # new in 2.23
Enabled: true
RSpec/Rails/NegationBeValid: # new in 2.23
Enabled: true
Enabled: true

Lint/ItWithoutArgumentsInBlock: # new in 1.59
Enabled: true
Lint/LiteralAssignmentInCondition: # new in 1.58
Enabled: true
Style/SingleLineDoEndBlock: # new in 1.57
Enabled: true
Style/SuperWithArgsParentheses: # new in 1.58
Enabled: true
Capybara/ClickLinkOrButtonStyle: # new in 2.19
Enabled: true
Capybara/RedundantWithinFind: # new in 2.20
Enabled: true
Capybara/RSpec/HaveSelector: # new in 2.19
Enabled: true
Capybara/RSpec/PredicateMatcher: # new in 2.19
Enabled: true
FactoryBot/ExcessiveCreateList: # new in 2.25
Enabled: true
FactoryBot/IdSequence: # new in 2.24
Enabled: true
RSpec/EmptyMetadata: # new in 2.24
Enabled: true
RSpec/Eq: # new in 2.24
Enabled: true
RSpec/MetadataStyle: # new in 2.24
Enabled: true
RSpec/RedundantPredicateMatcher: # new in 2.26
Enabled: true
RSpec/RemoveConst: # new in 2.26
Enabled: true
RSpec/SpecFilePathFormat: # new in 2.24
Enabled: true
RSpec/SpecFilePathSuffix: # new in 2.24
Enabled: true
10 changes: 5 additions & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ GEM
multi_json
language_server-protocol (3.17.0.3)
mini_portile2 (2.8.5)
minitest (5.20.0)
minitest (5.21.1)
multi_json (1.15.0)
mutex_m (0.2.0)
nokogiri (1.16.0)
Expand All @@ -93,7 +93,7 @@ GEM
openapi_parser (1.0.0)
optimist (3.1.0)
parallel (1.24.0)
parser (3.3.0.2)
parser (3.3.0.3)
ast (~> 2.4.1)
racc
patience_diff (1.2.0)
Expand All @@ -102,7 +102,7 @@ GEM
rack (3.0.8)
rainbow (3.1.1)
rake (13.1.0)
regexp_parser (2.8.3)
regexp_parser (2.9.0)
rexml (3.2.6)
rspec (3.12.0)
rspec-core (~> 3.12.0)
Expand All @@ -121,11 +121,11 @@ GEM
rspec-core (>= 2, < 4, != 2.12.0)
rss (0.3.0)
rexml
rubocop (1.59.0)
rubocop (1.60.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.2.2.4)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
Expand Down
6 changes: 3 additions & 3 deletions lib/cocina/models/validators/validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ def self.validate(clazz, attributes)
VALIDATORS.each { |validator| validator.validate(clazz, attributes_hash) }
end

def self.deep_transform_values(object, &block)
def self.deep_transform_values(object, ...)
case object
when Hash
object.transform_values { |value| deep_transform_values(value, &block) }
object.transform_values { |value| deep_transform_values(value, ...) }
when Array
object.map { |e| deep_transform_values(e, &block) }
object.map { |e| deep_transform_values(e, ...) }
else
yield(object)
end
Expand Down

0 comments on commit 3e1619e

Please sign in to comment.