alacrity-rails 0.7.2 → 0.8.0

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
  SHA1:
3
- metadata.gz: baf964e4b6f6b3e30dc61f891bb512f8d718c477
4
- data.tar.gz: 9774380b9e61440539d9b022111233ecc13f7381
3
+ metadata.gz: 1b063f660214c374b47a2cfbad8e91c85b6cca2d
4
+ data.tar.gz: 56b178a5f5e29f4d88f421465a927ece164a2e39
5
5
  SHA512:
6
- metadata.gz: 7c04fe74f8a34008adf1c9c3403f88c9e77b0d859bdaf1ea5775694a214c072343e08042311466ef3e9e314095469b19e8cca25758c7c2c83688c3f6bfe93796
7
- data.tar.gz: 354344939fc611bbd585a3489a05e60c070d48d0c87c44a5d0810715aa07d945c8e0bc45cb883ee43db53739f2fa7fd85c19a1b2eb85f5005da078291d837fd6
6
+ metadata.gz: a9fa5e1f9351d8f9e95f1dccb7563d7bfba39538e2f610f3454eb411e23b80b707c7fa58613fe09764437c9cf14a8399d8acc874fd86d7a22b36bef9b0ae950a
7
+ data.tar.gz: 8a47e73f3c8eb1ba0a529ea421f83fc127dcc3892e5a65e4bc4ffa58e76d6ad353c1a5410b07d46fb0abae5b1dd39a13d0d19bd10f97ace60e7dc8565c0ee613
@@ -13,8 +13,10 @@ module AlacrityRails
13
13
 
14
14
  module Probe
15
15
  autoload :ActionController, 'alacrity-rails/probe/action_controller'
16
+ autoload :ActionMailer, 'alacrity-rails/probe/action_mailer'
16
17
  autoload :ActionView, 'alacrity-rails/probe/action_view'
17
18
  autoload :ActiveModelSerializers, 'alacrity-rails/probe/active_model_serializers'
19
+ autoload :ActiveJob, 'alacrity-rails/probe/active_job'
18
20
  autoload :ActiveRecord, 'alacrity-rails/probe/active_record'
19
21
  autoload :MongoDriver, 'alacrity-rails/probe/mongo_driver'
20
22
  end
@@ -0,0 +1,18 @@
1
+ module AlacrityRails
2
+ module Probe
3
+ class ActionMailer
4
+ def self.activate
5
+ ActiveSupport::Notifications.subscribe 'process.action_mailer' do |name, started, finished, unique_id, data|
6
+ AlacrityRails::Client.store_timeline_event(
7
+ name: 'Mailer',
8
+ event_type: 'mailer',
9
+ engine: 'ActionMailer',
10
+ started_at: started,
11
+ finished_at: finished,
12
+ detail: "#{data[:mailer]}##{data[:action]}"
13
+ )
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,18 @@
1
+ module AlacrityRails
2
+ module Probe
3
+ class ActiveJob
4
+ def self.activate
5
+ ActiveSupport::Notifications.subscribe 'perform.active_job' do |name, started, finished, unique_id, data|
6
+ AlacrityRails::Client.store_timeline_event(
7
+ name: 'Job Queued',
8
+ event_type: 'job',
9
+ engine: 'ActiveJob',
10
+ started_at: started,
11
+ finished_at: finished,
12
+ detail: data[:job].class.to_s
13
+ )
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
@@ -8,7 +8,9 @@ module AlacrityRails
8
8
 
9
9
  [
10
10
  Probe::ActionController,
11
+ Probe::ActionMailer,
11
12
  Probe::ActionView,
13
+ Probe::ActiveJob,
12
14
  Probe::ActiveModelSerializers,
13
15
  Probe::ActiveRecord,
14
16
  Probe::MongoDriver
@@ -1,3 +1,3 @@
1
1
  module AlacrityRails
2
- VERSION = '0.7.2'
2
+ VERSION = '0.8.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alacrity-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alacrity, LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-02 00:00:00.000000000 Z
11
+ date: 2017-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -40,7 +40,9 @@ files:
40
40
  - lib/alacrity-rails/diagnostic.rb
41
41
  - lib/alacrity-rails/middleware.rb
42
42
  - lib/alacrity-rails/probe/action_controller.rb
43
+ - lib/alacrity-rails/probe/action_mailer.rb
43
44
  - lib/alacrity-rails/probe/action_view.rb
45
+ - lib/alacrity-rails/probe/active_job.rb
44
46
  - lib/alacrity-rails/probe/active_model_serializers.rb
45
47
  - lib/alacrity-rails/probe/active_record.rb
46
48
  - lib/alacrity-rails/probe/mongo_driver.rb