Sha256: a47ba3ea43b20b72803ee129aac2f0ce67f48641dd8e484d1584dbd916aeb56f

Contents?: true

Size: 1.48 KB

Versions: 10

Compression:

Stored size: 1.48 KB

Contents

# Exception Notification Server

**THIS README IS FOR THE MASTER BRANCH AND REFLECTS THE WORK CURRENTLY EXISTING ON THE MASTER BRANCH. IF YOU ARE WISHING TO USE A NON-MASTER BRANCH OF EXCEPTION NOTIFICATION, PLEASE CONSULT THAT BRANCH'S README AND NOT THIS ONE.**

-

The Exception Notification Server gem provides a engine for receiving notifications from Exception Notification gem (webhook-notifier).


## Requirements

* Ruby 1.9.2 or greater
* Rails 4.1 or greater.

For previous releases, please checkout [this](#versions).


## Getting Started

Add the following line to your application's Gemfile:

```ruby
gem 'exception_notification_server'
```

Run 
rails g exception_notification_server:install

This command generates an initialize file (`config/initializers/exception_notification_server.rb`) where you can customize your configurations, migration and add routes.

### Webhook notifier

This notifier ships notifications over the HTTP protocol.

#### Usage

Just add the [HTTParty](https://github.com/jnunemaker/httparty) gem to your `Gemfile`:

```ruby
gem 'httparty'
```

To configure it, you need to set the `url` option, like this:

```ruby
ExceptionNotification.configure do |config|
  config.add_notifier :webhook, {
      url: 'http://domain.com:5555/notifier/notifications.json',
      verify: false,
      basic_auth: {
        username: 'username',
        password: 'password'
      },
      body: {
        application: 'application_name',
        env: Rails.env
      }
    }
end
```

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
exception_notification_server-0.0.11 readme.md
exception_notification_server-0.0.10 readme.md
exception_notification_server-0.0.9 readme.md
exception_notification_server-0.0.8 readme.md
exception_notification_server-0.0.7 readme.md
exception_notification_server-0.0.6 readme.md
exception_notification_server-0.0.5 readme.md
exception_notification_server-0.0.4 readme.md
exception_notification_server-0.0.3 readme.md
exception_notification_server-0.0.2 readme.md