Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/artemeff/ruby-wisp

Ruby Wisp is a bridge to the JS Wisp compiler
https://github.com/artemeff/ruby-wisp

Last synced: 12 days ago
JSON representation

Ruby Wisp is a bridge to the JS Wisp compiler

Awesome Lists containing this project

README

        

# Ruby Wisp

[![Gem version](https://badge.fury.io/rb/ruby-wisp.png)](https://rubygems.org/gems/ruby-wisp)
[![Build Status](https://secure.travis-ci.org/artemeff/ruby-wisp.png)](https://travis-ci.org/artemeff/ruby-wisp)
[![Code Climate](https://codeclimate.com/github/artemeff/ruby-wisp.png)](https://codeclimate.com/github/artemeff/ruby-wisp)
[![Dependency Status](https://gemnasium.com/artemeff/ruby-wisp.png)](https://gemnasium.com/artemeff/ruby-wisp)

Ruby bridge for [wisp](https://github.com/Gozala/wisp) compiler. Integrates with Rails 4.0 and better.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'ruby-wisp', '~> 1.0.0.beta1', require: 'wisp'
```

And then execute:

```bash
$ bundle
```

Or install it yourself as:

```bash
$ gem install ruby-wisp
```

## Usage

```ruby
require 'wisp'

Wisp.compile "(:foo bar)"
# => "(bar || 0)[\"foo\"]"

Wisp.compile File.open "app.wisp"
```

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request