<commit_before># Disqus API for Ruby
[![Gem Version](https://badge.fury.io/rb/disqus_api.png)](http://badge.fury.io/rb/disqus_api)
[![Build Status](https://travis-ci.org/toptal/disqus_api.png?branch=master)](https://travis-ci.org/toptal/disqus_api)
[![Code Climate](https://codeclimate.com/repos/52ab1c4c7e00a455db041687/badges/69e7a7201240be64f8de/gpa.png)](https://codeclimate.com/repos/52ab1c4c7e00a455db041687/feed)

Provides clean Disqus REST API for your Ruby app. Currently supported API version: 3.0.

Rails >3.0 is also supported.

## Install

```bash
gem install disqus_api
```

## Configure

If you are not using Rails:

```ruby
require 'disqus_api'

DisqusApi.config = {api_secret: 'secret key',
                    api_key: 'public key',
                    access_token: 'token from app settings'}
```

For **Rails** users:

Put in your `config/disqus_api.yml`:

```ruby
development:
  api_secret: development_secret_key
  api_key: 'public key',
  access_token: 'token from app settings'}

production:
  api_secret: production_secret_key
  api_key: 'public key',
  access_token: 'token from app settings'}

# ... any other env<commit_msg>Fixes readme<commit_after># Disqus API for Ruby
[![Gem Version](https://badge.fury.io/rb/disqus_api.png)](http://badge.fury.io/rb/disqus_api)
[![Build Status](https://travis-ci.org/toptal/disqus_api.png?branch=master)](https://travis-ci.org/toptal/disqus_api)
[![Code Climate](https://codeclimate.com/repos/52ab1c4c7e00a455db041687/badges/69e7a7201240be64f8de/gpa.png)](https://codeclimate.com/repos/52ab1c4c7e00a455db041687/feed)

Provides clean Disqus REST API for your Ruby app. Currently supported API version: 3.0.

Rails >3.0 is also supported.

## Install

```bash
gem install disqus_api
```

## Configure

If you are not using Rails:

```ruby
require 'disqus_api'

DisqusApi.config = {api_secret: 'secret key',
                    api_key: 'public key',
                    access_token: 'token from app settings'}
```

For **Rails** users:

Put in your `config/disqus_api.yml`:

```yaml
development:
  api_secret: development_secret_key
  api_key: 'public key',
  access_token: 'token from app settings'}

production:
  api_secret: production_secret_key
  api_key: 'public key',
  access_token: 'token from app settings'}

# ... any other env
{'fraction_non_alphanumeric': 0.13721233174120712, 'fraction_numerical': 0.0425531914893617, 'mean_word_length': 4.383177570093458, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5842806', 'n_tokens_mistral': 933, 'n_tokens_neox': 853, 'n_words': 180}