Sha256: 58938469fde1bdbf582b9bb1a8278faa2f92652bd6650f29ee6185e0932de8ba

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

[![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:

```
$ 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_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)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
danger-lock_dependency_versions-0.0.3 README.md