0.0
No commit activity in last 3 years
No release in over 3 years
Ruby binding for mson parsing with apiaryio/drafter
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Lounge Lizard Circle CI Coverage Status Dependency Status Gem Version

A small drafter binding. As redsnow is outdated and deprecated, we implemented a binding for the parsing method of drafter.

The drafter version used by the current Lounge Lizard version is 3.2.2

Drafter

This is just ruby wrapper to use Drafter. Check drafter's repository for more info

Install

$  gem install lounge_lizard

Usage

LoungeLizard.parse(mson_string_content) will return a hash representing the AST of the mson file.

You can also call the c++ function directly. For an example, just check lib/lounge_lizard.rb:

LoungeLizard.drafter_parse_blueprint_to(mson_string_content, ffi_pointer, options_struct)

Build

  1. Clone the repo + fetch the submodules(this is, drafter and its dependencies):

    $ git clone git://github.com/moviepilot/lounge_lizard.git
    $ cd lounge_lizard
    $ git submodule update --init --recursive
  2. Lounge Lizard has drafter as a native extension. This meaning, drafter is a c++ library you need to compile it before using it. rake will take care of compiling it:

    $ rake

Credit

The way this gem is build is very similar to redsnow. So cheers to them!

License

MIT License. See the LICENSE file.