• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kettle-rb / toml-merge / 20648531632
81%

Build:
DEFAULT BRANCH: main
Ran 02 Jan 2026 01:07AM UTC
Jobs 1
Files 1
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Jan 2026 01:05AM UTC coverage: 95.575%. Remained the same
20648531632

push

github

pboling
✨ Proper integration with tree_haver backend selection via backend argument

### Added

- `Backends` module with constants for backend selection
  - `Backends::TREE_SITTER` (`:tree_sitter_toml`) - Native tree-sitter parser
  - `Backends::CITRUS` (`:citrus_toml`) - Pure Ruby toml-rb parser
  - `Backends::AUTO` (`:auto`) - Auto-detect available backend
  - `Backends.validate!` and `Backends.valid?` for validation
- `SmartMerger` now accepts `backend:` parameter for explicit backend selection
  - Follows same pattern as markdown-merge
  - Auto-detects backend by default, or use `backend: Backends::CITRUS` to force pure Ruby
- `FileAnalysis` now accepts `backend:` parameter and exposes resolved backend via `#backend` attr
- `NodeWrapper` now accepts `backend:` parameter for correct canonical type resolution
- `NodeTypeNormalizer` module for backend-agnostic node type handling
  - Maps backend-specific types (e.g., `table_array_element`) to canonical types (e.g., `array_of_tables`)
  - Supports both `tree_sitter_toml` and `citrus_toml` backends with comprehensive type mappings
  - Provides helper methods: `table_type?`, `value_type?`, `key_type?`, `container_type?`
  - Extensible via `register_backend` for custom TOML parsers
  - Follows the same pattern as `markdown-merge`'s `NodeTypeNormalizer`
- `NodeWrapper#canonical_type` method returns the normalized type for a node
- Comprehensive test suite for `NodeTypeNormalizer` with 26 new specs
- `spec/support/dependency_tags.rb` for conditional test execution based on backend availability

### Changed

- **citrus_toml mappings**: Updated to match actual Citrus/toml-rb node types
  - `table_array` → `:array_of_tables` (Citrus produces `:table_array`, not `:table_array_element`)
  - `keyvalue` → `:pair` (Citrus produces `:keyvalue`, not `:pair`)
  - Added all Citrus-specific integer types: `decimal_integer`, `hexadecimal_integer`, `octal_integer`, `binary_integer`
  - Added all Citrus-specific string types: `ba... (continued)

31 of 36 branches covered (86.11%)

Branch coverage included in aggregate %.

77 of 77 relevant lines covered (100.0%)

30.01 hits per line

Jobs
ID Job ID Ran Files Coverage
1 20648531632.1 02 Jan 2026 01:07AM UTC 1
95.58
GitHub Action Run
Source Files on build 20648531632
  • Tree
  • List 1
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 15902dcb on github
  • Prev Build on main (#20647860214)
  • Next Build on main (#20648880947)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc