{"id":17679996,"url":"https://github.com/costajob/lapidarius","last_synced_at":"2025-03-30T18:48:01.825Z","repository":{"id":56880746,"uuid":"68003633","full_name":"costajob/lapidarius","owner":"costajob","description":"A tiny library to visualize and count gem dependencies recursively","archived":false,"fork":false,"pushed_at":"2020-01-03T11:55:48.000Z","size":76,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-24T16:09:38.338Z","etag":null,"topics":["dependencies","footprint","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/costajob.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-12T11:35:18.000Z","updated_at":"2020-01-03T11:55:50.000Z","dependencies_parsed_at":"2022-08-20T23:40:08.643Z","dependency_job_id":null,"html_url":"https://github.com/costajob/lapidarius","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/costajob%2Flapidarius","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/costajob%2Flapidarius/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/costajob%2Flapidarius/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/costajob%2Flapidarius/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/costajob","download_url":"https://codeload.github.com/costajob/lapidarius/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246365640,"owners_count":20765546,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dependencies","footprint","ruby"],"created_at":"2024-10-24T09:05:04.521Z","updated_at":"2025-03-30T18:48:01.388Z","avatar_url":"https://github.com/costajob.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Table of Contents\n\n* [Scope](#scope)\n  * [Alternatives](#alternatives)\n    * [gem dep](#gem-dep)\n    * [bundle viz](#bundle-viz)\n* [Installation](#installation)\n* [Usage](#usage)\n    * [Version](#version)\n    * [Remote](#remote)\n    * [Quiet](#quiet)\n\n## Scope\nThis gem is aimed to recursively collect the `runtime dependencies` footprint of the specified gem.  \nThe output of the library mimics the `tree` shell utility, highlighting the nested dependencies via ASCII characters.\n\n### Alternatives\nSome alternatives exists: \n\n#### gem dep\nThe standard `gem dep` command just unearth one level of dependencies.\n\n#### bundle viz\nThe `bundle viz` command relies on the Gemfile and the [graphviz](http://www.graphviz.org/) library to generate a visual representation of the gem inter-dependencies.  \nWhile it is great to visualize inter-dependencies, i have hard times figuring out gem's  runtime footprint.\n\n## Installation\nInstall the gem from your shell:\n```shell\ngem install lapidarius\n```\n\n## Usage\nThis library relies heavily on the [Gem::Commands::DependencyCommand](https://github.com/rubygems/rubygems/blob/master/lib/rubygems/commands/dependency_command.rb) class to recursively the dependencies tree.   \nBoth runtime and development dependencies are counted once, but just the former are printed on screen:\n\n```shell\nlapidarius sinatra\nsinatra (2.0.0)\n├── mustermann (~\u003e 1.0)\n├── rack (~\u003e 2.0)\n├── rack-protection (= 2.0.0)\n│   └── rack (\u003e= 0)\n└── tilt (~\u003e 2.0)\n\n4 runtime, 5 development\n```\n\n### Version\nBy default this library scans for the latest available version `\u003e= 0` found at [rubygems.org](https://rubygems.org/).  \nIn case you are interested on a specific version just specify the `-v` option:\n```shell\nlapidarius sinatra -v 1.4.7\nsinatra (1.4.7)\n├── rack (~\u003e 1.5)\n├── rack-protection (~\u003e 1.4)\n│   └── rack (\u003e= 0)\n└── tilt (\u003c 3, \u003e= 1.3)\n\n3 runtime, 4 development\n```\n\n### Remote\nBy default this library scan for local gems, warning if the gem is not installed:\n```shell\nlapidarius rails -v 1.2.6\nNo gems found matching rails (= 1.2.6)\n```\n\nIf you want to scan for remote gems specify the `-r` option (be aware of slowness):\n```shell\nlapidarius rails -v 1.2.6 -r\nrails (1.2.6)\n├── actionmailer (= 1.3.6)\n│   └── actionpack (= 1.13.6)\n│       └── activesupport (= 1.4.4)\n├── actionpack (= 1.13.6)\n│   └── activesupport (= 1.4.4)\n├── actionwebservice (= 1.2.6)\n│   ├── actionpack (= 1.13.6)\n│   │   └── activesupport (= 1.4.4)\n│   └── activerecord (= 1.15.6)\n│       └── activesupport (= 1.4.4)\n├── activerecord (= 1.15.6)\n│   └── activesupport (= 1.4.4)\n├── activesupport (= 1.4.4)\n└── rake (\u003e= 0.7.2)\n\n6 runtime, 5 development\n```\n\n### Quiet\nSome gems have several interdependencies that results in a multitude of tree branches.  \nIn case you just dare to count dependencies without the visual noise, you can pass the `-q` option:\n```shell\nlapidarius rails -v 5.1.5 -r -q\n37 runtime, 48 development\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcostajob%2Flapidarius","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcostajob%2Flapidarius","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcostajob%2Flapidarius/lists"}