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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec438dd90374fb5cde37ef7dbacda2b3e74c1ae1d825cfae4a4a2480f1f85c97
4
- data.tar.gz: dfb668bc76e5e950b57ff7877d18d6febd2f7c5657d8a858da10f4c711ef9c3a
3
+ metadata.gz: c05196b7f48dcba8969e4b13af084cb6907c08b316bd9e9a27b3fd17248a8ca7
4
+ data.tar.gz: 4d1e77216c8970ef906fd49a2f5b02f7f83178ddf60d002abc2c952249d9ef73
5
5
  SHA512:
6
- metadata.gz: 9405a4ff72bd63c76a1998d95d1a1e57a8597385e1b1904252ec3b9b325a7320886b0511b265f28e1ff0dd8000afb7534eef8003da448a2482d85a25f1d9ed84
7
- data.tar.gz: 2bdc780c112972adbf939221a53a0ec9aaccd3dc3f97502f66b59d6b97df3d358555449d25ba70bde1f26d8320974e921ea2f78b4a4cc1514ccfeb5aefef5805
6
+ metadata.gz: 25cbb587ee6a79143a9ba8710fc7a39ab7ee96d1541b4866c5feabf47e521a7fdb2273c0f6eef85e840f455e4aa6045cc2f34a57cd9e000ec31be31c30371a46
7
+ data.tar.gz: f3f96a118fd6bbc142c3b614c5fe13927f4ddc92976142d385c63590f96f1d7365d203902b2acd29618917c6e8782f5a319ad773adb90810d319b9b27b1af40d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- traxor (0.1.1)
4
+ traxor (0.1.2)
5
5
  activesupport
6
6
 
7
7
  GEM
@@ -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
@@ -16,6 +16,9 @@ module Traxor
16
16
  ActiveSupport.on_load :active_record do
17
17
  require 'traxor/rails/active_record'
18
18
  end
19
+ ActiveSupport.on_load :action_mailer do
20
+ require 'traxor/rails/action_mailer'
21
+ end
19
22
  end
20
23
 
21
24
  config.before_configuration do
@@ -1,3 +1,3 @@
1
1
  module Traxor
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.1.2'.freeze
3
3
  end
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.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