Skip to content

Commit

Permalink
Update dev dependencies and fix new Rubocop lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Nicholaides committed Mar 26, 2024
1 parent 373deff commit 9234bc6
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 28 deletions.
48 changes: 25 additions & 23 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,55 +7,57 @@ GEM
remote: https://rubygems.org/
specs:
ast (2.4.2)
diff-lcs (1.5.0)
diff-lcs (1.5.1)
ffi (1.16.3)
json (2.7.1)
language_server-protocol (3.17.0.3)
listen (3.8.0)
listen (3.9.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
observer (0.1.2)
parallel (1.24.0)
parser (3.3.0.2)
parser (3.3.0.5)
ast (~> 2.4.1)
racc
racc (1.7.3)
rainbow (3.1.1)
rake (13.0.6)
rake (13.1.0)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
regexp_parser (2.9.0)
retest (1.11.0)
listen (~> 3.2)
retest (1.13.2)
listen (~> 3.9)
observer (~> 0.1)
string-similarity (~> 2.1)
tty-option (~> 0.1)
rexml (3.2.6)
rspec (3.12.0)
rspec-core (~> 3.12.0)
rspec-expectations (~> 3.12.0)
rspec-mocks (~> 3.12.0)
rspec-core (3.12.2)
rspec-support (~> 3.12.0)
rspec-expectations (3.12.3)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.0)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-mocks (3.12.6)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-support (3.12.1)
rubocop (1.59.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.1)
rubocop (1.62.1)
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)
rubocop-ast (>= 1.30.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
rubocop-ast (1.31.2)
parser (>= 3.3.0.4)
rubocop-capybara (2.20.0)
rubocop (~> 1.41)
rubocop-factory_bot (2.25.1)
Expand All @@ -71,7 +73,7 @@ GEM
tty-option (0.3.0)
unicode-display_width (2.5.0)
webrick (1.8.1)
yard (0.9.34)
yard (0.9.36)

PLATFORMS
arm64-darwin-22
Expand Down
4 changes: 2 additions & 2 deletions lib/cecil/node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,11 @@ def stringify = stringify_children.join
# @see BlockContext#content_for
class Deferred < Node
# @!visibility private
def initialize(**kwargs, &block) # rubocop:disable Style/ArgumentsForwarding,Naming/BlockForwarding
def initialize(**kwargs, &block) # rubocop:disable Style/ArgumentsForwarding
super(**kwargs)

@evaluate = lambda do
Container.new(**kwargs, &block) # rubocop:disable Style/ArgumentsForwarding,Naming/BlockForwarding
Container.new(**kwargs, &block) # rubocop:disable Style/ArgumentsForwarding
.tap { root.replace_child self, _1 }
end
end
Expand Down
6 changes: 3 additions & 3 deletions spec/cecil/code_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@
end

describe "overriding instance methods to change behavior" do
def self.def_syntax(&block) # rubocop:disable Naming/BlockForwarding
def self.def_syntax(&block)
let(:syntax) do
Class.new(described_class, &block) # rubocop:disable Naming/BlockForwarding
Class.new(described_class, &block)
end
end

def expect_syntax(&) = expect(syntax.generate_string(&))
def expect_syntax_block(&block) = expect { syntax.generate_string(&block) } # rubocop:disable Naming/BlockForwarding
def expect_syntax_block(&block) = expect { syntax.generate_string(&block) }

describe ".indent_chars" do
describe "overriding with another string" do
Expand Down

0 comments on commit 9234bc6

Please sign in to comment.