Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kawakamimoeki/depec
Depec is a Ruby tool to analyze project directory's dependency spec.
https://github.com/kawakamimoeki/depec
dependency gem ruby rubygems
Last synced: 2 months ago
JSON representation
Depec is a Ruby tool to analyze project directory's dependency spec.
- Host: GitHub
- URL: https://github.com/kawakamimoeki/depec
- Owner: kawakamimoeki
- Created: 2021-12-21T13:28:42.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-22T08:32:45.000Z (about 3 years ago)
- Last Synced: 2024-01-06T04:03:12.093Z (about 1 year ago)
- Topics: dependency, gem, ruby, rubygems
- Language: Ruby
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Depec
Analyze project directory's dependency spec.
## Installation
Add this line to your application's Gemfile:
```ruby
gem "depec", github: "cc-kawakami/depec", tag: "v0.1.0"
```And then execute:
$ bundle
Or:
$ gem install specific_install
$ gem specific_install https://github.com/cc-kawakami/depec.git v0.1.0## Usage
Initialize configuration:
```bash
bundle exec depec init
? Do you want to know whether Ruby is used?: Yes
? Do you want to know Ruby version?: Yes
? Do you want to know Bundler version?: Yes
? Gem name that do you want to know version: rails, jekyll
? Do you want to know whether Node.js is used?: Yes
? Do you want to know Node.js version?: Yes
? Npm package name that do you want to know version: vue, react
? Do you want to know whether CircleCI is used?: Yes
? Do you want to know CircleCI images?: Yes
? Do you want to know whether GitHub Actions is used?: Yes
```Analyze specified directory:
```bash
bundle exec depec analyze DIR --config=.depecrc.yml
{
"name": DIR_NAME,
"ruby": true,
"ruby_version": "2.6.9",
"bundler_version": "2.2.32",
"rails_gem": null,
"jekyll_gem": null,
"node": true,
"node_version": "14.15.1",
"vue_npm": "3.0.7",
"react_npm": null,
"circle_ci": true,
"circle_ci_images": [
"cimg/ruby:2.6.9-node",
"cimg/postgres:12.9"
],
"github_actions": false
}
```If you want to output to JSON file,
```bash
bundle exec depec analyze DIR --config=.depecrc.yml --output=out.json
```