<commit_before>This is the official Omniauth strategy to authorize your client with SignNow as the Oauth 2 provider.

To obtain the `client_id` and `client_secret` please contact <<EMAIL>> 

## Build & Installation

If you want to build the gem yourself follow these steps. Otherwise you can skip to Usage.

````
  $ bundle

  $ rake build

  $ gem install pkg/omniauth-sign-now-1.0.0.gem
````

## Usage 

Add this line to your application's Gemfile:

    gem 'omniauth-sign-now'

And then execute:

    $ bundle
### Sinatra
````ruby
use OmniAuth::Builder do
  provider :sign_now, ENV['client_id'], ENV['client_secret']
end
````

### Rails
````ruby
Rails.application.config.middleware.use OmniAuth::Builder do
  provider :sign_now, ENV['client_id'], ENV['client_secret']
end
````

## Developers
There is a sample Sinatra app located at `examples/config.ru`. To run the example you will need a Rack webserver installed as well as the `client_id` and `client_secret`. When you are able to run the web server go to <http://localhost:9292> follow the link to go through the Oauth2 flow.
<commit_msg>Improve readme<commit_after>This is the official Omniauth strategy to authorize your client with SignNow as a provider.

To obtain the `client_id` and `client_secret` please contact <<EMAIL>> 

There is a sample Sinatra app located at `examples/config.ru`. To run the example you will need a Rack webserver installed as well as the `client_id` and `client_secret`. When you are able to start the server go to <http://localhost:9292> and continue through the Oauth2 flow.

## Build & Installation

If you want to build the gem follow these steps. Otherwise skip to Usage.

````
  $ bundle

  $ rake build

  $ gem install pkg/omniauth-sign-now-1.0.0.gem
````

## Usage 

Add this line to your application's Gemfile:

    gem 'omniauth-sign-now'

And then execute:

    $ bundle
    
By default the gem makes requests to the production server. While developing you can configure the gem to hit our Eval server as the sample app does in `examples/config.ru`.

### Sinatra
````ruby
use OmniAuth::Builder do
  provider :sign_now, ENV['client_id'], ENV['client_secret']
end
````

### Rails
````ruby
Rails.application.config.middleware.use OmniAuth::Builder do
  provider :sign_now, ENV['client_id'], ENV['client_secret']
end
````

{'fraction_non_alphanumeric': 0.10176800344976283, 'fraction_numerical': 0.007330746011211729, 'mean_word_length': 4.296803652968037, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5574254', 'n_tokens_mistral': 737, 'n_tokens_neox': 683, 'n_words': 288}