alacrity-rails 0.13.0 → 0.13.1

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: 7666d6b3cb82b1026dc43efb158d4033bb84475e
4
- data.tar.gz: ee882991c3880d6b931ebca2960d27d228582d12
3
+ metadata.gz: a1acab121cd8bc00a7bcb8a89c5926357e477790
4
+ data.tar.gz: 44cc21695599f2feb5469baf48587c4656b09d78
5
5
  SHA512:
6
- metadata.gz: 3518a958c64a7529d4c208a842827282caf65d8fcd1ce27274184f36b20235ee5e1601b5dd42a2da1ef7eb336ced76f82975ebc05d3dffa2c243842083d92642
7
- data.tar.gz: 8da3cf36ce329bcab43f9b6194e75065e6a1a317adfc87f1cfa53bb077a88d0f55325dc65fb16ccba09e40a474aa05ecb4a5971b5f431919ff0167f441bee2f6
6
+ metadata.gz: 00d9a3fa40d0294b50d8a87c5371f41e08e502a6cc3a2f377a4a18786bc58caaf092eb9cb782d8c4d7c938533b06b7ab0428aac62617a9418b5159f47be2f5e7
7
+ data.tar.gz: acb3b0d407b1579008ab4fb3f75d8a4e3e51cd42ae21d3eb9d7e420329642222b86a85464dccf7e44ba541177028187aa60c186562e0f12324d3b99b0c20ad8f
@@ -17,20 +17,22 @@ module AlacrityRails
17
17
  end
18
18
  end
19
19
 
20
- class ::ActiveJob::Base
21
- around_perform :alacrity_instrumentor
20
+ if defined?(ActiveJob)
21
+ class ::ActiveJob::Base
22
+ around_perform :alacrity_instrumentor
22
23
 
23
- private
24
+ private
24
25
 
25
- def alacrity_instrumentor
26
- AlacrityRails::Instrumentor.instrument(
27
- type: AlacrityRails::Transaction::Job,
28
- data: {
29
- worker_class: self.class.to_s,
30
- args: @arguments
31
- }
32
- ) do
33
- yield
26
+ def alacrity_instrumentor
27
+ AlacrityRails::Instrumentor.instrument(
28
+ type: AlacrityRails::Transaction::Job,
29
+ data: {
30
+ worker_class: self.class.to_s,
31
+ args: @arguments
32
+ }
33
+ ) do
34
+ yield
35
+ end
34
36
  end
35
37
  end
36
38
  end
@@ -1,3 +1,3 @@
1
1
  module AlacrityRails
2
- VERSION = '0.13.0'
2
+ VERSION = '0.13.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alacrity-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alacrity, LLC