Yabbie

Yabbie is a gem to wrap SlimerJS.

Source Download

Installation

Add this line to your application's Gemfile:

gem 'yabbie', github: 'net-engine/yabbie'

And then execute:

$ bundle

Or install it yourself as:

$ gem install yabbie

Dependency

It relies on SlimerJS, and a script that contains what you want to achieve. For the script, you can check our default.js. It does nothing but takes a png snapshot. It is just so that Yabbie does not fail if you don't provide one. Please don't rely on it.

Usage

Yabbie::Slimer.new(html_file, options).to_file(file)

For more usage, please investigate in the code while we don't build a nice README

Roadmap

  1. Add more tests! :)

And the oscar goes to...

This gem is inspired on Shrimp gem.

A huge thanks to all Shrimp contributors.

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 a new Pull Request