Sha256: a043d74ad49e604458a5b3d5f319824adec9fb74f7bc980686c7518d7f8079e6

Contents?: true

Size: 1.83 KB

Versions: 3

Compression:

Stored size: 1.83 KB

Contents

![logo](https://raw.github.com/apiaryio/api-blueprint/master/assets/logo_apiblueprint.png)

# RedSnow [![Build Status](https://travis-ci.org/apiaryio/redsnow.png?branch=master)](https://travis-ci.org/apiaryio/redsnow)
### API Blueprint Parser for Ruby
Ruby binding for the [Snow Crash](https://github.com/apiaryio/snowcrash) library, also a thermonuclear weapon.

API Blueprint is Web API documentation language. You can find API Blueprint documentation on the [API Blueprint site](http://apiblueprint.org).

## Install
The best way to install RedSnow is by using its [GEM package](https://rubygems.org/gems/redsnow).

    gem install redsnow

Installation instructions for Ubuntu 14.04 are described in detail [here](Installation.md).

## Documentation

- [Documentation at rubydoc](http://rubydoc.info/gems/redsnow/)

## Getting started

```ruby
require 'redsnow'

result = RedSnow.parse('# My API', exportSourcemap: true)
puts result.ast.name
puts result.sourcemap.name
```

## Parsing options

Options can be number or hash. We support `:requireBlueprintName` and `:exportSourcemap` option.

```ruby
require 'redsnow'

result = RedSnow::parse('# My API', { :exportSourcemap => true })
puts result.ast.name
puts result.sourcemap.name
```

## Hacking Redsnow
You are welcome to contribute. Use following steps to build & test Redsnow.

### Build


1. If needed, install bundler:

    ```sh
    $ gem install bundler
    ```

2. Clone the repo + fetch the submodules:

    ```sh
    $ git clone git://github.com/apiaryio/redsnow.git
    $ cd redsnow
    $ git submodule update --init --recursive
    ```

3. Build:

    ```sh
    $ rake
    ```

### Test
Inside the redsnow repository run:

```sh
$ bundle install
$ rake test
```

### Contribute
Fork & Pull Request.

## License
MIT License. See the [LICENSE](https://github.com/apiaryio/protagonist/blob/master/LICENSE) file.

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
redsnow-0.4.1 README.md
redsnow-0.4.0 README.md
redsnow-0.3.7 README.md