Sha256: f3b29f0d565445e23315b09f537378ac8d7463025bf8fde880ff55b9fa1fd51d

Contents?: true

Size: 249 Bytes

Versions: 8

Compression:

Stored size: 249 Bytes

Contents

events = %w(receive deliver)

regex = %r{#{events.join("|")}.action_mailer}

ActiveSupport::Notifications.subscribe regex do |*args|
  event = ActiveSupport::Notifications::Event.new(*args)
  gauge = Harness::Gauge.from_event event
  gauge.log
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
harness-0.2.4 lib/harness/integration/action_mailer.rb
harness-0.2.3 lib/harness/integration/action_mailer.rb
harness-0.2.2 lib/harness/integration/action_mailer.rb
harness-0.2.1 lib/harness/integration/action_mailer.rb
harness-0.2.0 lib/harness/integration/action_mailer.rb
harness-0.1.2 lib/harness/integration/action_mailer.rb
harness-0.1.1 lib/harness/integration/action_mailer.rb
harness-0.1.0 lib/harness/integration/action_mailer.rb