Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 40 lines (26 sloc) 1.292 kB
6f32848 @audreyt * First sketch at a ruby-livescript gem.
authored
1 Ruby LiveScript
a9c3cb0 @josh Initial commit
josh authored
2 =================
3
6f32848 @audreyt * First sketch at a ruby-livescript gem.
authored
4 Ruby LiveScript is a bridge to the official LiveScript compiler.
c704519 @josh Update description
josh authored
5
6f32848 @audreyt * First sketch at a ruby-livescript gem.
authored
6 LiveScript.compile File.read("script.ls")
c704519 @josh Update description
josh authored
7
8
9 Installation
10 ------------
11
6f32848 @audreyt * First sketch at a ruby-livescript gem.
authored
12 gem install livescript
a9c3cb0 @josh Initial commit
josh authored
13
14 Dependencies
15 ------------
16
6f32848 @audreyt * First sketch at a ruby-livescript gem.
authored
17 This library depends on the `livescript-source` gem which is
18 updated as a new version of LiveScript is released. (The
19 `livescript-source` gem's version number is synced with each
20 official LiveScript release.) This way you can build against
21 different versions of LiveScript by requiring the correct version of
22 the `livescript-source` gem.
c704519 @josh Update description
josh authored
23
5118d63 @sstephenson Update readme
sstephenson authored
24 In addition, you can use this library with unreleased versions of
6f32848 @audreyt * First sketch at a ruby-livescript gem.
authored
25 LiveScript by setting the `LIVESCRIPT_SOURCE_PATH` environment
5118d63 @sstephenson Update readme
sstephenson authored
26 variable:
c704519 @josh Update description
josh authored
27
6f32848 @audreyt * First sketch at a ruby-livescript gem.
authored
28 export LIVESCRIPT_SOURCE_PATH=/path/to/livescript/extras/livescript.js
c704519 @josh Update description
josh authored
29
074a642 @josh Header for JSON section
josh authored
30 ### JSON
31
5118d63 @sstephenson Update readme
sstephenson authored
32 The `json` library is also required but is not explicitly stated as a
33 gem dependency. If you're on Ruby 1.8 you'll need to install the
34 `json` or `json_pure` gem. On Ruby 1.9, `json` is included in the
35 standard library.
71a065f @josh Readme tweaks
josh authored
36
c1852f8 @josh Add a note about ExecJS
josh authored
37 ### ExecJS
c704519 @josh Update description
josh authored
38
d1a5aba @josh Fix markdown links
josh authored
39 The [ExecJS](https://github.com/sstephenson/execjs) library is used to automatically choose the best JavaScript engine for your platform. Check out its [README](https://github.com/sstephenson/execjs/blob/master/README.md) for a complete list of supported engines.
Something went wrong with that request. Please try again.