Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mataku/danger-lock_dependency_versions
A Danger plugin for dependency file versions management.
https://github.com/mataku/danger-lock_dependency_versions
danger danger-plugin ruby
Last synced: 3 months ago
JSON representation
A Danger plugin for dependency file versions management.
- Host: GitHub
- URL: https://github.com/mataku/danger-lock_dependency_versions
- Owner: mataku
- License: mit
- Created: 2017-11-19T10:36:04.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-06-11T02:31:45.000Z (over 3 years ago)
- Last Synced: 2024-09-17T03:09:57.216Z (4 months ago)
- Topics: danger, danger-plugin, ruby
- Language: Ruby
- Homepage:
- Size: 49.8 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/mataku/danger-lock_dependency_versions.svg?branch=master)](https://travis-ci.org/mataku/danger-lock_dependency_versions)
# danger-lock_dependency_versions
A [Danger](http://danger.systems/ruby/) plugin for managing dependency files.
Check files which should be committed together to version control (e.g., `Gemfile` and `Gemfile.lock`, `Cartfile` and `Cartfile.resolved`).
## Installation
Add this line to your Gemfile:
```shell
gem danger-lock_dependency_versions
```## Usage
First, create `.lock_list.yml` and add key-value pair to check.
```yaml
Gemfile: Gemfile.lock
Cartfile: Cartfile.resolved
```Add to Dangerfile.
```
# Optional: you can specify yml file path (default: ./lock_list.yml)
# lock_dependency_versions.lock_list_file = './scripts/file.yml'
lock_dependency_versions.check
```If lockfile has not committed to version control, post a failure comment by Danger.
### Methods
```
check(warning: boolean)
```if specify `warning: true`, set comment status to warning. (default: false)