traxor 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/traxor/rails/action_mailer.rb +9 -0
- data/lib/traxor/rails.rb +3 -0
- data/lib/traxor/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c05196b7f48dcba8969e4b13af084cb6907c08b316bd9e9a27b3fd17248a8ca7
|
4
|
+
data.tar.gz: 4d1e77216c8970ef906fd49a2f5b02f7f83178ddf60d002abc2c952249d9ef73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25cbb587ee6a79143a9ba8710fc7a39ab7ee96d1541b4866c5feabf47e521a7fdb2273c0f6eef85e840f455e4aa6045cc2f34a57cd9e000ec31be31c30371a46
|
7
|
+
data.tar.gz: f3f96a118fd6bbc142c3b614c5fe13927f4ddc92976142d385c63590f96f1d7365d203902b2acd29618917c6e8782f5a319ad773adb90810d319b9b27b1af40d
|
data/Gemfile.lock
CHANGED
@@ -0,0 +1,9 @@
|
|
1
|
+
module Traxor
|
2
|
+
ActiveSupport::Notifications.subscribe 'deliver.action_mailer' do |*args|
|
3
|
+
event = ActiveSupport::Notifications::Event.new(*args)
|
4
|
+
tags = { mailer: normalize_name(event.payload[:mailer]) }
|
5
|
+
|
6
|
+
Metric.count 'rails.action_mailer.sent.count', 1, tags
|
7
|
+
Metric.count "rails.action_mailer.sent.count.#{tags[:mailer]}", 1, tags
|
8
|
+
end
|
9
|
+
end
|
data/lib/traxor/rails.rb
CHANGED
data/lib/traxor/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: traxor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Hansen
|
@@ -221,6 +221,7 @@ files:
|
|
221
221
|
- lib/traxor/rack/middleware/pre.rb
|
222
222
|
- lib/traxor/rails.rb
|
223
223
|
- lib/traxor/rails/action_controller.rb
|
224
|
+
- lib/traxor/rails/action_mailer.rb
|
224
225
|
- lib/traxor/rails/active_record.rb
|
225
226
|
- lib/traxor/sidekiq.rb
|
226
227
|
- lib/traxor/version.rb
|