Sha256: 9d67e331466d1d3019ac02dbdb4aec4dd8d28630da185f1e0811905dfbcffead

Contents?: true

Size: 255 Bytes

Versions: 21

Compression:

Stored size: 255 Bytes

Contents

events = %w(receive deliver)

events.each do |name|
  ActiveSupport::Notifications.subscribe "#{name}.action_mailer" do |*args|
    event = ActiveSupport::Notifications::Event.new(*args)
    gauge = Harness::Gauge.from_event event
    gauge.log
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
harness-0.9.1 lib/harness/integration/action_mailer.rb
harness-0.9.0 lib/harness/integration/action_mailer.rb
harness-0.8.1 lib/harness/integration/action_mailer.rb
harness-0.8.0 lib/harness/integration/action_mailer.rb
harness-0.7.0 lib/harness/integration/action_mailer.rb
harness-0.6.0 lib/harness/integration/action_mailer.rb
harness-0.5.0 lib/harness/integration/action_mailer.rb
harness-0.4.0 lib/harness/integration/action_mailer.rb
harness-0.3.0 lib/harness/integration/action_mailer.rb
harness-0.2.16 lib/harness/integration/action_mailer.rb
harness-0.2.15 lib/harness/integration/action_mailer.rb
harness-0.2.14 lib/harness/integration/action_mailer.rb
harness-0.2.13 lib/harness/integration/action_mailer.rb
harness-0.2.12 lib/harness/integration/action_mailer.rb
harness-0.2.11 lib/harness/integration/action_mailer.rb
harness-0.2.10 lib/harness/integration/action_mailer.rb
harness-0.2.9 lib/harness/integration/action_mailer.rb
harness-0.2.8 lib/harness/integration/action_mailer.rb
harness-0.2.7 lib/harness/integration/action_mailer.rb
harness-0.2.6 lib/harness/integration/action_mailer.rb