exception_notification_sns 0.1.0 → 0.1.1

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: cab2c46a81a544c5f04974a5b6dd9ef965058f9e
4
- data.tar.gz: a9c7beea1c3aa16ea4794d129dba552c76b55039
3
+ metadata.gz: dcf4bd7f058a027e7f7a9c95a877d46f5842ea58
4
+ data.tar.gz: b16312a6e41b5865ff997648f298a5dd7eaf2741
5
5
  SHA512:
6
- metadata.gz: 9e976e3ee6a743ef3fc702d09659c4ccdd9a236713c86cc5d8834955e01c6de239e726439d624f9953d45b8ee65481ebf027b3bf28b1f4b878d2e8b6893c0cff
7
- data.tar.gz: eb61eaff462f908c3d3549cd741fec506801d55b1bed22328e81711b9bcc3363e5bbb1f0a2d7cbf132b6e72384959f82ffa32bd1d722ec0d93f93e0f97a480b2
6
+ metadata.gz: 79fa5d56c931106e881f59ee8d5d511fe591369705507ff1c3a4d5dfaa0df551a588ff9a68e476cd864ddbb8e19b83dc4677915c4d07247260c589521e63c73c
7
+ data.tar.gz: 0b31fae1b40d630428e7f7425008ba2934698c003fa0c1f917c43dca3168c652fdf49b3ec85ea0d2e617ca19592a7594cdab1c6643468db4ffbe28d863d7b410
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- exception_notification_sns (0.1.0)
4
+ exception_notification_sns (0.1.1)
5
5
  aws-sdk-v1 (>= 1, < 3)
6
6
  exception_notification (= 4.2.1)
7
7
 
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |s|
3
3
  s.platform = Gem::Platform::RUBY
4
4
  s.name = 'exception_notification_sns'
5
- s.version = '0.1.0'
5
+ s.version = '0.1.1'
6
6
  s.summary = 'exception_notification extension for aws sns v1'
7
7
  s.description = 'exception_notification_sns gem is used for sending application extensions to aws sns. It extends exception_notification gem, uses aws-sdk-v1 gem to push exception notificatons to amazon sns'
8
8
  s.required_ruby_version = '>= 2.2.0'
@@ -17,10 +17,7 @@ module ExceptionNotifier
17
17
  def call(exception, options={})
18
18
  return if !active?
19
19
 
20
-
21
-
22
20
  env = options[:env] || {}
23
- puts env.inspect
24
21
  @options = options
25
22
  @exception = exception
26
23
  @backtrace = exception.backtrace ? clean_backtrace(exception) : []
@@ -28,10 +25,10 @@ module ExceptionNotifier
28
25
  @request = ::ActionDispatch::Request.new(env) if @kontroller
29
26
 
30
27
  @sns_client.publish({
31
- subject: compose_subject,
32
- topic_arn: @topic_arn,
33
- message: compose_message.to_json
34
- })
28
+ subject: compose_subject,
29
+ topic_arn: @topic_arn,
30
+ message: compose_message.to_json
31
+ })
35
32
  end
36
33
 
37
34
  def active?
@@ -51,8 +48,8 @@ module ExceptionNotifier
51
48
  }
52
49
 
53
50
  message[:request] = {
54
- url: @request.url,
55
- method: @request.request_method,
51
+ url: @request.url,
52
+ method: @request.request_method,
56
53
  remote_ip: @request.remote_ip,
57
54
  parameters: @request.filtered_parameters.inspect
58
55
  } if @request
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exception_notification_sns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matej Minažek