effective_messaging 0.11.1 → 0.12.0

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
  SHA256:
3
- metadata.gz: 2fe14923df11de2dddfd94f0abd846be5626d621e85f5161f6459fae12d1ca77
4
- data.tar.gz: a22a0c35c235640bb941724b77d9b09080e58aeeb67866d628e9f76817ce4621
3
+ metadata.gz: 9a5bdd076bbea88479e2697e6741da19b5c6f63ead8a01092f0e37046d342bf5
4
+ data.tar.gz: 8a9d00bff3759144ec693f41e0fef657507bebe98308d98b03568b2a427ed7d8
5
5
  SHA512:
6
- metadata.gz: a86a0a712ea702cdacfd4477eac7417f493626a398ddfce5b95466fba85ec905221426d1ef39b2045a3ed1182c3c7115590700df901f4ae6c5192bb1780b4038
7
- data.tar.gz: b5a51b9d8c5510212d06973f91125c924ebe1c3fd54d16b5fbdaf4c63f1d744c1caddfe9c06b075513574d022e8dde26353af7b2b071b27146e60ad1962e3527
6
+ metadata.gz: ba8ea837f247ee1930dbe198f3bbb9faa355e501fed8eb7894b7c0541bb8f94df5192b4f169e54efbec3420ed4a1aa55569130424bcfd995eddcd7743acda947
7
+ data.tar.gz: 452c5fa5609f5b6539f458dc354ef7ac196984498b26de59efe4c41fcaf4d870f4aa72c6fadb6cb2804f398cedc89dd85c30f0084a928403230d6742c428ff35
@@ -291,7 +291,7 @@ module Effective
291
291
  notified += 1
292
292
  rescue => e
293
293
  EffectiveLogger.error(e.message, associated: self) if defined?(EffectiveLogger)
294
- ExceptionNotifier.notify_exception(e, data: { notification_id: id, resource_id: resource.id, resource_type: resource.class.name }) if defined?(ExceptionNotifier)
294
+ EffectiveResources.send_error(e, notification_id: id, resource_id: resource.id, resource_type: resource.class.name)
295
295
  raise(e) if Rails.env.test? || Rails.env.development?
296
296
  end
297
297
 
@@ -315,7 +315,7 @@ module Effective
315
315
  notified += 1
316
316
  rescue => e
317
317
  EffectiveLogger.error(e.message, associated: self) if defined?(EffectiveLogger)
318
- ExceptionNotifier.notify_exception(e, data: { notification_id: id }) if defined?(ExceptionNotifier)
318
+ EffectiveResources.send_error(e, notification_id: id)
319
319
  raise(e) if Rails.env.test? || Rails.env.development?
320
320
  end
321
321
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveMessaging
2
- VERSION = '0.11.1'.freeze
2
+ VERSION = '0.12.0'.freeze
3
3
  end
@@ -15,8 +15,7 @@ namespace :effective_messaging do
15
15
  notification.notify!
16
16
  Rails.logger.info "Sent notifications for #{notification} and #{notification.report}"
17
17
  rescue StandardError => e
18
- data = { notification_id: notification.id, report_id: notification.report_id, resource_id: notification.current_resource&.id }
19
- ExceptionNotifier.notify_exception(e, data: data) if defined?(ExceptionNotifier)
18
+ EffectiveResources.send_error(e, notification_id: notification.id, report_id: notification.report_id, resource_id: notification.current_resource&.id)
20
19
  puts "Error with effective_messaging #{notification.id} resource #{notification.current_resource&.id}: #{notification.errors.inspect}"
21
20
  end
22
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_messaging
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-05-01 00:00:00.000000000 Z
11
+ date: 2026-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails