Skip to content

prism-merge v2.0.2

Choose a tag to compare

@pboling pboling released this 22 Feb 15:09
· 6606 commits to main since this release
v2.0.2
58d79d7

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.,
    gemspec add_dependency lines 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 iterated trailing_comments and re-emitted any
    comment on the same line — duplicating the entire line. Now skips trailing
    comments whose start_line falls within the node's own line range. This was the
    root cause of every add_dependency / add_development_dependency being
    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_generator as @raw_signature_generator and pass it
    (instead of the already-effective generator) to inner SmartMerger instances.
    This ensures build_effective_signature_generator wraps it only once when
    node_typing is also configured.

Official Discord 👉️ Live Chat on Discord

Many paths lead to being a sponsor or a backer of this project. Are you on such a path?

OpenCollective Backers OpenCollective Sponsors Sponsor Me on Github Liberapay Goal Progress Donate on PayPal

Buy me a coffee Donate on Polar Donate to my FLOSS efforts at ko-fi.com Donate to my FLOSS efforts using Patreon