Skip to content

binti-family/hello_sign

 
 

Repository files navigation

HelloSign

A Ruby interface to the HelloSign API

Gem Version Build Status Dependency Status Code Climate Coverage Status

Installation

gem install hello_sign

Getting started

Here's all it takes to send a signature request:

HelloSign.configure do |hs|
  hs.email_address = '[email protected]'
  hs.password      = 'password'
end

HelloSign.signature_request.deliver do |request|
  request.title   = 'Our contract'
  request.subject = 'Here is the contract for you to sign!'
  request.message = 'You should definitely sign this.'
  request.signers = [
    {name: 'Jack', email_address: '[email protected]'},
    {name: 'Jill', email_address: '[email protected]'}
  ]
  request.files   = [{filename: 'path/to/contract.pdf'}]
end

For a comprehensive guide to supported functionality, check out the wiki.

Supported Ruby interpreters

This gem officially supports and is tested against the following Ruby interpreters:

  • MRI 1.9.2
  • MRI 1.9.3
  • MRI 2.0.0
  • MRI 2.1.0
  • JRuby in 1.9 mode
  • Rubinius in 1.9 mode
  • Rubinius in 2.0 mode

Contributing

Pull requests are welcome, but consider asking for a feature or bug fix first through the issue tracker. When contributing code, please squash sloppy commits aggressively and follow Tim Pope's guidelines for commit messages.

There are a number of ways to get started after cloning the repository.

To set up your environment:

script/bootstrap

To run the test suite:

script/test

To open a console with the gem loaded:

script/console

Copyright

Copyright (c) 2013-2014 Craig Little. See LICENSE for details.