Skip to content

Add a Gemfile / Gemfile.lock parser (Ruby) #7

Description

@AshwinUgale

Why

Third format named in the README roadmap. Gemfile.lock has an exact-version GEM/specs section that maps cleanly onto Pin.

What to do

  • Add parse_gemfile(path) to sidecar/src/docchat_sidecar/lockfiles.py.
  • Prefer Gemfile.lock's specs: block (exact versions) when present; fall back to parsing gem "rails", "~> 7.0" lines in the Gemfile and running the range through _strip_range.

Acceptance criteria

  • Tests for the lock-present and lock-absent paths plus malformed input.
  • Full sidecar check pipeline green.

Pointers

  • lockfiles.py: Pin, _strip_range, and the existing parsers as templates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    adapterNew format/source adapter (lockfile or doc source)enhancementNew feature or requestgood first issueGood for newcomerspythonPython sidecar

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions