Skip to content

Commit

Permalink
Merge pull request #3034 from ytti/dependabot/bundler/master/rubocop-…
Browse files Browse the repository at this point in the history
…tw-1.60.0

Update rubocop requirement from ~> 1.57.2 to ~> 1.60.0
  • Loading branch information
robertcheramy authored Jan 16, 2024
2 parents 4ce7d16 + 547a7c6 commit 5be7327
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2023-11-27 13:35:47 UTC using RuboCop version 1.57.2.
# on 2024-01-16 10:57:24 UTC using RuboCop version 1.60.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
Expand Down
4 changes: 2 additions & 2 deletions lib/oxidized/model/model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ def send(data)
@input.send data
end

def expect(regex, &block)
self.class.expect regex, &block
def expect(...)
self.class.expect(...)
end

def cfg
Expand Down
4 changes: 2 additions & 2 deletions lib/oxidized/nodes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ def initialize(opts = {})
end
end

def with_lock(&block)
@mutex.synchronize(&block)
def with_lock(...)
@mutex.synchronize(...)
end

def find_index(node)
Expand Down
4 changes: 2 additions & 2 deletions lib/oxidized/output/git.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ def setup

def store(file, outputs, opt = {})
@msg = opt[:msg]
@user = (opt[:user] || @cfg.user)
@email = (opt[:email] || @cfg.email)
@user = opt[:user] || @cfg.user
@email = opt[:email] || @cfg.email
@opt = opt
@commitref = nil
repo = @cfg.repo
Expand Down
4 changes: 2 additions & 2 deletions lib/oxidized/output/gitcrypt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ def unlock(repo)

def store(file, outputs, opt = {})
@msg = opt[:msg]
@user = (opt[:user] || @cfg.user)
@email = (opt[:email] || @cfg.email)
@user = opt[:user] || @cfg.user
@email = opt[:email] || @cfg.email
@opt = opt
@commitref = nil
repo = @cfg.repo
Expand Down
4 changes: 2 additions & 2 deletions lib/oxidized/source/source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ class Source
class NoConfig < OxidizedError; end

def initialize
@model_map = (Oxidized.config.model_map || {})
@group_map = (Oxidized.config.group_map || {})
@model_map = Oxidized.config.model_map || {}
@group_map = Oxidized.config.group_map || {}
end

def map_model(model)
Expand Down
2 changes: 1 addition & 1 deletion oxidized.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'mocha', '~> 2.1'
s.add_development_dependency 'pry', '~> 0.14.2'
s.add_development_dependency 'rake', '~> 13.0'
s.add_development_dependency 'rubocop', '~> 1.57.2'
s.add_development_dependency 'rubocop', '~> 1.60.0'
s.add_development_dependency 'rubocop-minitest', '~> 0.33.0'
s.add_development_dependency 'rubocop-rake', '~> 0.6.0'
s.add_development_dependency 'simplecov', '~> 0.22.0'
Expand Down

0 comments on commit 5be7327

Please sign in to comment.