Skip to content

Commit

Permalink
Hash.new with kwargs has been removed in Ruby 3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Sep 1, 2024
1 parent 66834b2 commit 18cfe40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Please visit [cucumber/CONTRIBUTING.md](https://github.com/cucumber/cucumber/blo

### Fixed
- Fixed an issue where a change to one example in compatibility testing wasn't fully adhered to ([luke-hill](https://github.com/luke-hill))
- Fixed a Hash.new with kwargs error on Ruby 3.4 (warning on Ruby 3.3) ([#1761](https://github.com/cucumber/cucumber-ruby/pull/1761))

### Removed
- Removed support for Ruby 2.7 ([luke-hill](https://github.com/luke-hill))
Expand Down
2 changes: 1 addition & 1 deletion lib/cucumber/multiline_argument/data_table.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def row(row)
def eof; end
end

NULL_CONVERSIONS = Hash.new(strict: false, proc: ->(cell_value) { cell_value }).freeze
NULL_CONVERSIONS = Hash.new({ strict: false, proc: ->(cell_value) { cell_value } }).freeze

# @param data [Core::Test::DataTable] the data for the table
# @param conversion_procs [Hash] see map_column
Expand Down

0 comments on commit 18cfe40

Please sign in to comment.