Commit 6e746c9
authored
This change fixes the `undefined method 'map' for nil (NoMethodError)`
for `cucumber-10.2.0/lib/cucumber/formatter/message_builder.rb:144`:
`'Cucumber::Formatter::MessageBuilder#argument_group_to_message'`
caused by:
* Dec 11, 2025: #1805
allows to pull `cucumber-cucumber-expressions` `19.0.0`
* Jan 21, 2026: cucumber/messages#370
introduce a breaking change that allows the `children` field of
`Cucumber::Messages::Group` to be `nil`
* Jan 21, 2026: cucumber/cucumber-expressions#387
`ruby/lib/cucumber/cucumber_expressions/group_builder.rb` sets
the `children` to `nil` if `empty?`
* Jan 26, 2026: The `cucumber-cucumber-expressions` `19.0.0` gem released
and will be pulled in by `cucumber` `10.2.0` that raises the error
The fix is simply accept the `nil` value for
`Cucumber::Messages::Group#children`.
1 parent 78e472d commit 6e746c9
2 files changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
0 commit comments