Sha256: 9d4450c552bff85fdafbe43087b935f9f36126d399807e920e017a8c30582cc3

Contents?: true

Size: 501 Bytes

Versions: 2

Compression:

Stored size: 501 Bytes

Contents

# phantomjs.rb

A ruby wrapper for phantomjs. The binaries are in `vendor` and it will
automatically detect what OS you are using and will try to use the
appropriate binaries.

## Install

```sh
gem install phantomjs.rb
```

## Usage

```rb
script = File.expand_path('./my_runner.js')
output = Phantomjs.run(script, 'myarg1', 'myarg2')
p output # Whatever it outputs from stdout
```

The equivalent code above will generate:

```sh
/absolute/path/to/phantomjs /absolute/my_runner.js myarg1 myarg2
```

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
phantomjs.rb-0.0.3 README.md
phantomjs.rb-0.0.2 README.md