Skip to content

Commit

Permalink
Merge 0bfb1ae into cb24285
Browse files Browse the repository at this point in the history
  • Loading branch information
bolshakov committed Aug 18, 2019
2 parents cb24285 + 0bfb1ae commit b6bf549
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
34 changes: 17 additions & 17 deletions README.md
Expand Up @@ -37,10 +37,10 @@ Check out [stoplight-admin][] for controlling your stoplights.
- [HipChat](#hipchat)
- [Honeybadger](#honeybadger)
- [Logger](#logger)
- [Pagerduty](#pagerduty)
- [Rollbar](#rollbar)
- [Sentry](#sentry)
- [Slack](#slack)
- [Pagerduty](#pagerduty)
- [Rails](#rails-1)
- [Advanced usage](#advanced-usage)
- [Locking](#locking)
Expand Down Expand Up @@ -363,6 +363,22 @@ Stoplight::Light.default_notifiers += [notifier]
# => [#<Stoplight::Notifier::IO:...>, #<Stoplight::Notifier::Logger:...>]
```

#### Pagerduty

Make sure you have [the Pagerduty gem][] (`~> 2.1`) installed before configuring
Stoplight.

``` rb
require 'pagerduty'
# => true
pagerduty = Pagerduty.new('http://www.example.com/webhook-url')
# => #<Pagerduty:...>
notifier = Stoplight::Notifier::Pagerduty.new(pagerduty)
# => #<Stoplight::Notifier::Pagerduty:...>
Stoplight::Light.default_notifiers += [notifier]
# => [#<Stoplight::Notifier::IO:...>, #<Stoplight::Notifier::Pagerduty:...>]
```

#### Rollbar

Make sure you have [the Rollbar gem][] (`~> 2.0`) installed before configuring
Expand Down Expand Up @@ -409,22 +425,6 @@ Stoplight::Light.default_notifiers += [notifier]
# => [#<Stoplight::Notifier::IO:...>, #<Stoplight::Notifier::Slack:...>]
```

#### Pagerduty

Make sure you have [the Pagerduty gem][] (`~> 2.1`) installed before configuring
Stoplight.

``` rb
require 'pagerduty'
# => true
pagerduty = Pagerduty.new('http://www.example.com/webhook-url')
# => #<Pagerduty:...>
notifier = Stoplight::Notifier::Pagerduty.new(pagerduty)
# => #<Stoplight::Notifier::Pagerduty:...>
Stoplight::Light.default_notifiers += [notifier]
# => [#<Stoplight::Notifier::IO:...>, #<Stoplight::Notifier::Pagerduty:...>]
```

### Rails

Stoplight is designed to work seamlessly with Rails. If you want to use the
Expand Down
4 changes: 2 additions & 2 deletions lib/stoplight.rb
Expand Up @@ -24,10 +24,10 @@ module Stoplight # rubocop:disable Style/Documentation
require 'stoplight/notifier/honeybadger'
require 'stoplight/notifier/io'
require 'stoplight/notifier/logger'
require 'stoplight/notifier/rollbar'
require 'stoplight/notifier/pagerduty'
require 'stoplight/notifier/raven'
require 'stoplight/notifier/rollbar'
require 'stoplight/notifier/slack'
require 'stoplight/notifier/pagerduty'

require 'stoplight/default'

Expand Down
2 changes: 1 addition & 1 deletion lib/stoplight/notifier/pagerduty.rb
Expand Up @@ -6,7 +6,7 @@ module Notifier
class Pagerduty < Base
include Generic

# @return [::Slack::Notifier]
# @return [::Pagerduty]
def pagerduty
@object
end
Expand Down
4 changes: 2 additions & 2 deletions stoplight.gemspec
Expand Up @@ -37,13 +37,13 @@ Gem::Specification.new do |gem|
'coveralls' => '0.8',
'fakeredis' => '0.5',
'hipchat' => '1.5',
'pagerduty' => '2.1.1',
'honeybadger' => '2.5',
'sentry-raven' => '1.2',
'pagerduty' => '2.1.1',
'rake' => '11.1',
'redis' => '3.2',
'rspec' => '3.3',
'rubocop' => '0.40.0',
'sentry-raven' => '1.2',
'slack-notifier' => '1.3',
'timecop' => '0.8'
}.each do |name, version|
Expand Down

0 comments on commit b6bf549

Please sign in to comment.