Sha256: ab907860f288c0b07edb33b61b85e9fc852785c177611d8205c979b3a0378195

Contents?: true

Size: 824 Bytes

Versions: 1

Compression:

Stored size: 824 Bytes

Contents

# Redpen

[![Gem Version](https://badge.fury.io/rb/redpen.svg)](http://badge.fury.io/rb/redpen)
[![Build Status](https://travis-ci.org/yuku-t/redpen.svg?branch=master)](https://travis-ci.org/yuku-t/redpen)
[![Code Climate](https://codeclimate.com/github/yuku-t/redpen/badges/gpa.svg)](https://codeclimate.com/github/yuku-t/redpen)

A Ruby wrapper for [RedPen].

## Requirements

- Ruby
- JDK8

## Usage

```ruby
require 'redpen'

config_file = './path/to/redpen-conf.xml'
target_file = './path/to/doc.md'

redpen = Redpen.check(config_file, target_file, format: 'markdown')

if redpen.valid?
  puts 'Ok, Valid!'
else
  puts redpen.messages
end
```

## Install

Your Gemfile:

```ruby
gem 'redpen'
```

## License

This software is licensed under the same terms as [Redpen].

[RedPen]: https://github.com/recruit-tech/redpen

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
redpen-0.2.0 README.md