asana_exception_notifier 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f9eada43045687a0353c559d3592ce7ed9bf23d4
4
- data.tar.gz: 5b0d6a1fcc947b6c204e0200bc170bda8892f62a
3
+ metadata.gz: a170f37a6fd2fb5b9b425575e3a57b66c5b59d03
4
+ data.tar.gz: 9442fd0a1ec8c08d44bb1cdc37779a5710bacfe6
5
5
  SHA512:
6
- metadata.gz: 3e0271ba23488a1ce95d9423a92cbaeac082d031ac1e18045b133a922ef0edb5e0d9324f0c0bb175c9761ee0d1d621ad0b11052e65508209fa5f64f668f26584
7
- data.tar.gz: d4204a5c771cc3dbe32861804ca143c63945ba8650fd18876500d3f8698daef60e9b2bdccc61aa72ad4e400cc42efad40a228b988a3b3e7370d7dcbe912a620f
6
+ metadata.gz: 3b25485c8d9c9ca896b708ed9784ba214028670550584391aa12fdd083b441ba72357ce5bf9a8faf68f7618b74dc827ec89ce1a7daf6ea05366cd05ec6fb56c0
7
+ data.tar.gz: 3591d5bb1dc40e135437045ae8e38dc78a1e9349a47cc3b493578e3ed777d26182639544c9d51f671f6e6b4d3313770ecc5573dccdd7bd05b0db5cdb861bd9dc
@@ -45,7 +45,6 @@ module AsanaExceptionNotifier
45
45
  env: @request.respond_to?(:filtered_env) ? @request.filtered_env : @env,
46
46
  data: (@env.blank? ? {} : @env.fetch(:'exception_notifier.exception_data', {})).merge(@options[:data] || {}),
47
47
  exception_data: exception_data,
48
- exception_service_data: exception_service,
49
48
  request_data: setup_env_params,
50
49
  parameters: @request.respond_to?(:filtered_parameters) ? filter_params(@request.filtered_parameters) : filter_params(request_params),
51
50
  session: filter_params(session.respond_to?(:to_hash) ? session.to_hash : session.to_h),
@@ -69,19 +68,21 @@ module AsanaExceptionNotifier
69
68
  end
70
69
 
71
70
  def exception_data
72
- {
71
+ exception_service.merge(
73
72
  error_class: @exception.class.to_s,
74
73
  message: @exception.respond_to?(:message) ? @exception.message : exception.inspect,
75
74
  backtrace: @exception.respond_to?(:backtrace) ? (@exception.backtrace || []).join("\n") : nil,
76
75
  cause: @exception.respond_to?(:cause) ? @exception.cause : nil
77
- }
76
+ )
78
77
  end
79
78
 
80
79
  def exception_service
80
+ hash = Hash.new
81
81
  @exception.instance_variables.select do |ivar|
82
82
  attr_value = @exception.instance_variable_get(ivar)
83
- attr_value.present? ? { "#{ivar}" => attr_value } : nil
83
+ hash["#{ivar}"] = attr_value if attr_value.present?
84
84
  end
85
+ hash
85
86
  end
86
87
 
87
88
  def setup_env_params
@@ -17,7 +17,7 @@ module AsanaExceptionNotifier
17
17
  # minor release version
18
18
  MINOR = 2
19
19
  # tiny release version
20
- TINY = 1
20
+ TINY = 2
21
21
  # prelease version ( set this only if it is a prelease)
22
22
  PRE = nil
23
23
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asana_exception_notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada