Yabbie is a gem to wrap SlimerJS.
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
- Add more tests! :)
And the oscar goes to...
This gem is inspired on Shrimp gem.
A huge thanks to all Shrimp contributors.
Contributing
- Fork it (https://github.com/net-engine/yabbie/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
License
MIT