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

sgerrand / incident-io-rb / 36892323444
100%

Build:
DEFAULT BRANCH: main
Ran 01 Oct 2026 04:29PM UTC
Jobs 1
Files 87
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

01 Oct 2026 04:28PM UTC coverage: 100.0%. Remained the same
36892323444

push

github

web-flow
perf: simplify the generator, resources, models and specs (#5)

* refactor(generator): derive state instead of storing it

- Keep the single generated files in one INDEX_FILES table that both
  GENERATED and Writer#write read.
- Work out Result#rbs from kind, model_name and depth, and drop
  Types.rbs_result.
- Find unused overrides from the built resources, not side-effect state.
- Drop AuditLogEntry#description, which no template reads.
- Use the existing one_per_line helper in the model and audit log
  templates. The generated output is unchanged.

* refactor(resources): share one Namespace base class

Every generated V1/V2/V3::Namespace had its own copy of the same
initialize, inspect and resource cache. Move them into a hand-written
IncidentIo::Resources::Namespace, so the template only writes the
accessors.

The newest-version accessors on Client now return the version
namespace's resource, so client.incidents and client.v2.incidents are
the same object instead of two copies. The generator also refuses a
resource named like a Namespace method.

* refactor(pager): alias auto_paging_each to each

It did exactly what each does. Page#initialize also now requires data:, as its only caller always passes it.

* refactor(util): share time formatting between JSON and query strings

Util.serialize and QueryEncoder.scalar had the same Time, DateTime and Date branches, differing only in precision. Both now call Util.format_time.

* perf(model): cut per-instance work when building models

- Build the all-nil field hash once per class instead of on every new.
- Keep given fields in a Set, so to_api checks each field in constant
  time.
- Find unknown keys with an array difference instead of a block.

* test: share spec helpers and drop repeated tests

- Add rack_headers and schedule_deleted_body helpers for the webhook
  specs.
- Add an incidents helper to the pager spec.
- Drop the delete and CSV tests in generated_spec, which client_spec and
  generated_ope... (continued)

405 of 405 branches covered (100.0%)

Branch coverage included in aggregate %.

179 of 179 new or added lines in 9 files covered. (100.0%)

3345 of 3345 relevant lines covered (100.0%)

48.55 hits per line

Jobs
ID Job ID Ran Files Coverage
1 36892323444.1 01 Oct 2026 04:29PM UTC 87
100.0
GitHub Action Run
Source Files on build 36892323444
  • Tree
  • List 87
  • Changed 9
  • Source Changed 9
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #36892323444
  • e0c93f71 on github
  • Prev Build on main (#36600791432)
  • Next Build on main (#36895002122)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc