Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix "lambda method requires a literal block" (Ruby 3.3) (#2141)
Running the test suite on Ruby 3.2 produces this validation warning: ``` $ RUBYOPT=-W bundle e rspec spec/lib/capistrano/configuration_spec.rb ... warning: lambda without a literal block is deprecated; use the proc without lambda instead ``` On Ruby 3.3 (head), it crashes because the deprecation is now an error[^1]: ``` ArgumentError: the lambda method requires a literal block ``` This commit fixes the problem by replacing `lambda` with `proc`, as instructed in the deprecation warning. [^1]: https://bugs.ruby-lang.org/issues/19777
- Loading branch information