prism-merge v2.0.2
2.0.2 - 2026-02-22
- TAG: v2.0.2
- COVERAGE: 98.80% -- 823/833 lines in 12 files
- BRANCH COVERAGE: 85.61% -- 452/528 branches in 12 files
- 93.51% documented
Fixed
- Fix node duplication when merging files with inline trailing comments (e.g.,
gemspecadd_dependencylines with# ruby >= 3.2.0).add_node_to_result
output the full source line (which already includes inline comments via
analysis.line_at), then also iteratedtrailing_commentsand re-emitted any
comment on the same line — duplicating the entire line. Now skips trailing
comments whosestart_linefalls within the node's own line range. This was the
root cause of everyadd_dependency/add_development_dependencybeing
duplicated in gemspec and gemfile merges when inline comments were present. - Prevent potential double-wrapping in
merge_node_body_recursively— store the
raw (unwrapped)signature_generatoras@raw_signature_generatorand pass it
(instead of the already-effective generator) to innerSmartMergerinstances.
This ensuresbuild_effective_signature_generatorwraps it only once when
node_typingis also configured.
Many paths lead to being a sponsor or a backer of this project. Are you on such a path?