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

type-ruby / t-ruby / 20878972305
93%

Build:
DEFAULT BRANCH: main
Ran 10 Jan 2026 01:24PM UTC
Jobs 1
Files 86
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

10 Jan 2026 01:24PM UTC coverage: 92.41% (+0.07%) from 92.341%
20878972305

push

github

web-flow
feat: add TypeScript-style array shorthand syntax `T[]` (#36)

* feat: add TypeScript-style array shorthand syntax `T[]`

- Add `String[]` as alternative to `Array<String>`
- Support nested arrays: `Integer[][]` → `Array[Array[Integer]]`
- Support nullable arrays: `String[]?` → `(Array[String] | nil)`
- Support arrays of nullable elements: `String?[]` → `Array[String?]`
- Support union type arrays: `(String | Integer)[]`
- Both syntaxes produce identical IR and RBS output
- Add parse_postfix_type_operators for `[]` and `?` suffix handling
- Add comprehensive unit tests (15 cases) and E2E tests (14 cases)
- Update README examples to show new syntax

* Update Gemfile.lock

* fix: restore Gemfile.lock with listen gem for CI compatibility

Ruby 4.0 skips listen gem installation, but CI runs on Ruby 3.x which
requires it. Restore the original Gemfile.lock from main branch.

* refactor: remove unused legacy type parsing code from IR::Builder

TypeParser now handles all type parsing including:
- Simple types, generics, array shorthand, union, intersection, function types

Remove legacy fallback code that was never executed, improving code coverage.

36 of 37 new or added lines in 3 files covered. (97.3%)

8206 of 8880 relevant lines covered (92.41%)

1806.32 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
97.83
-2.17% lib/t_ruby/parser_combinator/type_parser.rb
Jobs
ID Job ID Ran Files Coverage
1 20878972305.1 10 Jan 2026 01:24PM UTC 86
92.41
GitHub Action Run
Source Files on build 20878972305
  • Tree
  • List 86
  • Changed 4
  • Source Changed 3
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20878972305
  • c6a520f1 on github
  • Prev Build on main (#20576328939)
  • Next Build on main (#21091557050)
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