rorvswild 1.4.7 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/rorvswild/plugin/faktory.rb +19 -0
- data/lib/rorvswild/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 875777242efff56c2c1e19d2cf7248e7cb08f8f69c8c35e305e2fc2131b7563f
|
|
4
|
+
data.tar.gz: c04de4df6091f8b364fffd020deaf1fc50983dde67f57e45c23d4db8af867d71
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4ab22a6282828a0b9f682cdffe2484e63074a68fc4c1bb53b7c8a0a02b0817ef2cf74001491d7345b8a1de29328ddf4e9178bd303a594e835de0423fd625e551
|
|
7
|
+
data.tar.gz: d3e3846d7a7e6d39b51795e14e238826fee503a0a0cfcfd6b56875b30b5dd0f3774453e8de408e6947b16172d0a852850e1f99615987416d098317975281df02
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module RorVsWild
|
|
2
|
+
module Plugin
|
|
3
|
+
class Faktory
|
|
4
|
+
def self.setup
|
|
5
|
+
if defined?(::Faktory)
|
|
6
|
+
::Faktory.configure_worker do |config|
|
|
7
|
+
config.worker_middleware { |chain| chain.add(Faktory) }
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def call(worker_instance, job, &block)
|
|
13
|
+
custom = job["custom".freeze]
|
|
14
|
+
name = (custom && custom["wrapped".freeze]) || job["jobtype".freeze]
|
|
15
|
+
RorVsWild.agent.measure_job(name, parameters: job["args".freeze], &block)
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
data/lib/rorvswild/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rorvswild
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexis Bernard
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-02-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Performances and quality insights for rails developers.
|
|
14
14
|
email:
|
|
@@ -45,6 +45,7 @@ files:
|
|
|
45
45
|
- lib/rorvswild/plugin/active_record.rb
|
|
46
46
|
- lib/rorvswild/plugin/delayed_job.rb
|
|
47
47
|
- lib/rorvswild/plugin/elasticsearch.rb
|
|
48
|
+
- lib/rorvswild/plugin/faktory.rb
|
|
48
49
|
- lib/rorvswild/plugin/mongo.rb
|
|
49
50
|
- lib/rorvswild/plugin/net_http.rb
|
|
50
51
|
- lib/rorvswild/plugin/redis.rb
|