Skip to main content

Ruby indexer plugin for CodeMap

Project description

codemap-ruby

A Ruby indexer for CodeMap, shipped as an independent PyPI package.

What it captures

Backed by tree-sitter-ruby:

AST node Symbol kind
class class (with extra.ruby_kind=class)
module class (with extra.ruby_kind=module)
method (inside class/module) method
method (top level) function
singleton_method method (with extra.ruby_kind=singleton)
top-level constant assignment variable
constant assignment inside class/module field

Nested class / module declarations are tracked with a class stack: module A; class B; def m; end; end; end produces A#B#m().

Install

pip install codemap-ruby

SymbolID encoding

scip-ruby . . . app/models/user.rb/User#hello().

Limits

  • attr_accessor / attr_reader / attr_writer macros are not expanded into individual field symbols.
  • define_method, class_eval, and other metaprogramming are not resolved.
  • Mixin (include/extend) edges are not yet emitted.

License

MIT.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codemap_ruby-0.4.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codemap_ruby-0.4.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file codemap_ruby-0.4.0.tar.gz.

File metadata

  • Download URL: codemap_ruby-0.4.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for codemap_ruby-0.4.0.tar.gz
Algorithm Hash digest
SHA256 989db8fa9a6ade0e21869ff0f69d388061a8524ca5fd7d5788cfcaed74961080
MD5 030009cb6428be01e0173fbed59ee727
BLAKE2b-256 94169ebc9e2ee7d32b12cd914c85d34958e53f7706b610fdb59e8f9b8a299527

See more details on using hashes here.

Provenance

The following attestation bundles were made for codemap_ruby-0.4.0.tar.gz:

Publisher: publish.yml on qxbyte/codemap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file codemap_ruby-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: codemap_ruby-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for codemap_ruby-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 87a8b348b55e8a5d524b23e8ec4a0ac7b370bfe61e69e577dcb810ea6d5ba380
MD5 b3ed3a68936a50d22e5971f93f5e8261
BLAKE2b-256 b24552025f82ca4f85ecbe0e1d1c0757ba83c57df178cecb5e06191e9b7b3e95

See more details on using hashes here.

Provenance

The following attestation bundles were made for codemap_ruby-0.4.0-py3-none-any.whl:

Publisher: publish.yml on qxbyte/codemap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page