@massu/adapter-rails
v1.0.0
Published
Massu first-party adapter for Ruby on Rails — Tree-sitter AST detection of routes, namespaces, and root controllers in config/routes.rb
Maintainers
Readme
@massu/adapter-rails
Massu first-party adapter for Ruby on Rails — Tree-sitter AST detection of routes,
namespaces, and root controllers in config/routes.rb.
What it detects
route_method— most-common explicit HTTP verb (get/post/put/patch/delete) used at top level with a string-literal path argument.api_namespace— first segment of the firstnamespace :foo do …block, normalized to a leading-slash path (per Rails routing guide §3).root_controller— controller name fromroot 'pages#home'orroot to: 'pages#home'.
Install
npm install @massu/adapter-railsThe adapter is also CORE-BUNDLED in @massu/[email protected]+ for zero-config use; the
standalone package adds the REGISTRY-VERIFIED trust class — the published tarball's
dist/ is sha256-verified end-to-end against the signed manifest at
https://registry.massu.ai/adapters/manifest.json.
Authoring SDK
This adapter is built on top of @massu/core/adapter (the SemVer-stable adapter
authoring surface). See docs/AUTHORING-ADAPTERS.md
for the full contract.
License
Business Source License 1.1 — see LICENSE.
