Skip to content

Remove stateless Analyzer class and simplify Ruby FFI surface#33

Merged
dak2 merged 1 commit intomainfrom
remove-analyzer-class
Feb 23, 2026
Merged

Remove stateless Analyzer class and simplify Ruby FFI surface#33
dak2 merged 1 commit intomainfrom
remove-analyzer-class

Conversation

@dak2
Copy link
Owner

@dak2 dak2 commented Feb 23, 2026

Analyzer was a stateless wrapper — its path field was unused (#[allow(dead_code)]) and infer_types never referenced self. Users interact only via CLI (methodray check), never via require 'methodray', so there is no need for a public Ruby class.

Analyzer was a stateless wrapper — its `path` field was unused
(#[allow(dead_code)]) and `infer_types` never referenced `self`.
Users interact only via CLI (`methodray check`), never via
`require 'methodray'`, so there is no need for a public Ruby class.

- Delete Analyzer struct/impl and version() (duplicated in CLI)
- Convert infer_types to a public module function on MethodRay
- Auto-execute setup() in #[magnus::init] instead of exposing it
- Simplify checker.rs error messages (remove stale Analyzer references)
- Update release.yml cache generation to use implicit require trigger

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dak2 dak2 merged commit 70d780a into main Feb 23, 2026
2 checks passed
@dak2 dak2 deleted the remove-analyzer-class branch February 23, 2026 02:40
@dak2 dak2 mentioned this pull request Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant