<commit_before># Airbrake API [![Build Status](https://secure.travis-ci.org/spagalloco/airbrake-api.png?branch=master)][travis] [![Dependency Status](https://gemnasium.com/spagalloco/airbrake-api.png?travis)][gemnasium]

[travis]: http://travis-ci.org/spagalloco/airbrake-api
[gemnasium]: https://gemnasium.com/spagalloco/airbrake-api

A ruby client for the [Airbrake API](http://help.airbrake.io/kb/api-2/api-overview)

## Changes in 4.0

AirbrakeAPI has been completely rewritten in 4.0.  Why the high version number?
This was the first gem I ever wrote and it's wandered a path that started with
ActiveResource, followed by HTTParty, and now Faraday.  Along the way, AirbrakeAPI
has lost it's ActiveRecord-like syntax for a more concise and simple API.  Instead
of using classes such as `AirbrakeAPI::Error`, the entire API is contained within
`AirbrakeAPI::Client`.

The following classes and their methods are now deprecated:

* `AirbrakeAPI::Error`
* `AirbrakeAPI::Notice`
* `AirbrakeAPI::Project`

While your code will continue to work using the old API, they will ultimately be removed in favor of `AirbrakeAPI::Client`.

## Configuration

AirbrakeAPI can be configured by passing a hash to the configure method:

    AirbrakeAPI.configure(:account => 'anapp', :auth_token => '<PASSWORD>', :secure => true)

or via a block:
<commit_msg>fix links in readme<commit_after># Airbrake API [![Build Status](https://secure.travis-ci.org/stve/airbrake-api.png?branch=master)][travis] [![Dependency Status](https://gemnasium.com/stve/airbrake-api.png?travis)][gemnasium]

[travis]: http://travis-ci.org/stve/airbrake-api
[gemnasium]: https://gemnasium.com/stve/airbrake-api

A ruby client for the [Airbrake API](http://help.airbrake.io/kb/api-2/api-overview)

## Changes in 4.0

AirbrakeAPI has been completely rewritten in 4.0.  Why the high version number?
This was the first gem I ever wrote and it's wandered a path that started with
ActiveResource, followed by HTTParty, and now Faraday.  Along the way, AirbrakeAPI
has lost it's ActiveRecord-like syntax for a more concise and simple API.  Instead
of using classes such as `AirbrakeAPI::Error`, the entire API is contained within
`AirbrakeAPI::Client`.

The following classes and their methods are now deprecated:

* `AirbrakeAPI::Error`
* `AirbrakeAPI::Notice`
* `AirbrakeAPI::Project`

While your code will continue to work using the old API, they will ultimately be removed in favor of `AirbrakeAPI::Client`.

## Configuration

AirbrakeAPI can be configured by passing a hash to the configure method:

    AirbrakeAPI.configure(:account => 'anapp', :auth_token => '<PASSWORD>', :secure => true)

or via a block:

{'fraction_non_alphanumeric': 0.11086142322097378, 'fraction_numerical': 0.003745318352059925, 'mean_word_length': 5.18287037037037, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 6, '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': '694744', 'n_tokens_mistral': 861, 'n_tokens_neox': 854, 'n_words': 285}