bearychat-notifier 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a40fb85cf8abb818ac9d6bc273dde3b981e2ebe3
4
- data.tar.gz: 903ac7cf9245f7242d3bf32ed86617ea7170a508
3
+ metadata.gz: 9961e750867ca45a0f9bfb0fe08042220b31116e
4
+ data.tar.gz: e93af808d4684997b800ba4793ce5248e18df640
5
5
  SHA512:
6
- metadata.gz: ea935efbb1e83868e4638b483797b4034dfd2759a60d23f48c7d36668938ce5381a408b27c9d1d9208c8054c4f0e88c0fddca922b98d207c71f50e37b6ebcdfd
7
- data.tar.gz: 9772ba5a55047ca383f029906dcb7929307cc7f4142232da069b5479b914789e8194860d3b63b2c353ddc517de5ad91b0dfa9529a97a5f0aa6e43889627bc2d6
6
+ metadata.gz: e77f0aff03dd2ff3e3f467deebf147ef090a8118892e1aa18db287905662c5ffe693908fab851e598880f9dc0f8696143f07263213e9cced32c335f60e7f8d08
7
+ data.tar.gz: e72f2166a9823b5644586edbfab4060c7dd750f8ab1a281658099239b57e673ca013611e55c228cc7a02391f5ab5210cd779e5af1f3a57b409bcaf71d14a476e
data/README.md CHANGED
@@ -47,6 +47,7 @@ Rails.application.config.middleware.use ExceptionNotification::Rack,
47
47
  :exception_recipients => %w{exceptions@example.com}
48
48
  },
49
49
  :bearychat => {
50
+ webhook_url: "Your webhook url"
50
51
  text: "hello world",
51
52
  markdown: true,
52
53
  channel: "all",
@@ -1,6 +1,6 @@
1
1
  # coding: utf-8
2
2
  module Bearychat
3
3
  class Notifier
4
- VERSION = "0.0.3"
4
+ VERSION = "0.0.4"
5
5
  end
6
6
  end
@@ -27,9 +27,8 @@ module ExceptionNotifier
27
27
  attachment_options = {}
28
28
  attachment_options[:text] = enrich_message_with_backtrace(text, exception)
29
29
  @payload_options[:attachments].push(attachment_options)
30
- @attachments[:text] = attachments_text
31
30
 
32
- @notifier.ping(message, @attachments) if valid?
31
+ @notifier.ping(text, @payload_options) if valid?
33
32
  end
34
33
 
35
34
  protected
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bearychat-notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - villins