effective_polls 0.10.0 → 0.10.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
  SHA256:
3
- metadata.gz: c493fe02d5c8715209e48ef88dca33d86d225b5a253452e9764dfcbad686ca04
4
- data.tar.gz: '090f3acac80276ec9adf47b0f15eba0df47a014fedd8a0f9017a50668bdf0cca'
3
+ metadata.gz: 69f3f216ae2b7d503e2a4483f744e9eff3b43c864bcfb8c1b65b747e406cf7cf
4
+ data.tar.gz: d3cad55b85b6485f917c376f00cafb8daa48bc1c12654bcdb677e528db59bb67
5
5
  SHA512:
6
- metadata.gz: f982c9c7e83d8589e8be74b6fac7b1551de0d687ca6f15f72e76af860a39603484989e529c1b57e9abc28c54854c3a884233f3190896260048e307c9807ca182
7
- data.tar.gz: ec7493147b9e745a8f47d3e6a34e184785028366346b7be9b639c7db66d04ca79b6eaf68522ed6d378a47254c7ded4ebc82b96f3ad57e2742eb91fac78e23d7b
6
+ metadata.gz: 8089ecd3185f76c6588b5e36d7aeddb74d175df69921d8cdffad9e59e73f23aa9aecf42e47571b19c02e4878251ed6ad7869088884a24fd7b41b958aaabb00f8
7
+ data.tar.gz: de7867c07a79cea7e9426fcb2fe672b4fa0a0d3a9b9ad6f73439f25a049f1a01187b74ed116da9a207566ae7cd804a27333f1aecb62586a32cda060830b723a3
@@ -151,7 +151,7 @@ module Effective
151
151
  Effective::PollsMailer.public_send(email_template, self, user).deliver_now
152
152
  rescue => e
153
153
  EffectiveLogger.error(e.message, associated: self) if defined?(EffectiveLogger)
154
- ExceptionNotifier.notify_exception(e, data: { user_id: user.id, poll_notification_id: id }) if defined?(ExceptionNotifier)
154
+ EffectiveResources.send_error(e, user_id: user.id, poll_notification_id: id)
155
155
  raise(e) if Rails.env.test? || Rails.env.development?
156
156
  end
157
157
 
@@ -1,3 +1,3 @@
1
1
  module EffectivePolls
2
- VERSION = '0.10.0'
2
+ VERSION = '0.10.1'
3
3
  end
@@ -16,8 +16,7 @@ namespace :effective_polls do
16
16
  notified = notification.notify!
17
17
  puts "Sent #{notification.category} for #{notification.poll}" if notified
18
18
  rescue StandardError => e
19
- data = { poll_notification_id: notification.id, poll_id: notification.poll_id }
20
- ExceptionNotifier.notify_exception(e, data: data) if defined?(ExceptionNotifier)
19
+ EffectiveResources.send_error(e, poll_notification_id: notification.id, poll_id: notification.poll_id)
21
20
  puts "Error with effective poll_notification #{notification.id}: #{e.errors.inspect}"
22
21
  end
23
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_polls
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect