Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 931 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 931 Bytes

gemlock-parser

This repository contains Gemfile.lock parser vendored from ScanCode toolkit. One of the main goals is to make sure that RubyGems dependencies are parsed without executing arbitrary Ruby code.

Updating

To update the repository based on upstream changes, run hack/update-from-upstream.sh.

  • for gemfile_lock.py and its tests, the script updates everything below the import block
  • for the supporting files, the script updates the existing top-level definitions
    • functions, classes, constants, module docstrings

Inspect the changes carefully, make adjustments as necessary. Make sure unit tests are passing.

Port the relevant unit test changes from test_analysis.py manually, the update script is not smart enough to do that.