A complete Ruby interface to the fantastic Crocodoc document embedding/conversion service.
There is another Ruby interface to Crocodoc, crocodoc-ruby, and it’s only partially functional. Its implementation does not offer a proper object-oriented interface, and only supports basic Net::HTTP requests.
With this gem, I aim to provide the following functionality:
- A document-oriented interface. You perform operations on Document objects, which are serializable for easier database integration.
- A helper for generation of viewing sessions.
- Use of Faraday, allowing you to use whichever HTTP backend best suits your purposes.
- Webhook helpers
- System monitoring checks
Add this line to your application’s Gemfile:
gem 'crocodoc'
And then execute:
$ bundle
Or install it yourself as:
$ gem install crocodoc
See the examples
directory for examples.
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am ‘Added some feature’`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request