README.md in danger-pronto-0.0.1 vs README.md in danger-pronto-0.2.0

- old
+ new

@@ -1,8 +1,9 @@ # danger-pronto [![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat)](LICENSE.txt) +[![Gem](https://img.shields.io/gem/v/danger-pronto.svg?style=flat)](https://rubygems.org/gems/danger-pronto) A [Danger](https://github.com/danger/danger) plugin for [Pronto](https://github.com/mmozuras/pronto). Created by the folks at [ABODO](https://www.abodo.com). By default, only lints added or modified files. ## Installation @@ -26,19 +27,19 @@ Run Files through Pronto. Results are passed out as a table in markdown. -> Specifying custom config file. -> ```ruby +Specifying custom config file. +```ruby pronto.lint -> ``` +``` -> Lint specific files in a folder, when they change -> ```ruby +Lint specific files in a folder, when they change +```ruby public_files = (modified_files + added_files).select { |path| path.include?("/public/") } pronto.lint public_files -> ``` +``` #### Methods `lint(files: String)`