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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b2f103543e6fdc467bcd03bdd385d27a887fb82a5e549152228b038a663dcefc
4
- data.tar.gz: c0a076bd2bdace0df17d8fa6e8399457d2bd7068b7e9fef579e0a9cb681f5c3f
3
+ metadata.gz: 875777242efff56c2c1e19d2cf7248e7cb08f8f69c8c35e305e2fc2131b7563f
4
+ data.tar.gz: c04de4df6091f8b364fffd020deaf1fc50983dde67f57e45c23d4db8af867d71
5
5
  SHA512:
6
- metadata.gz: 7045cdbb8401ccb4c0063c710ac2c5d4ace3d6bd1dd597fbeb87eaca6a6ddc53f90137a190171b943ccd43d1a1d10ccbbb19c5a8bfef3cbd12de08a0096b2202
7
- data.tar.gz: e863d11d808ad2410c23bbe35f754904248fae44d816e94828cbb21da5631b2315be038e87abd1b70d76913f8437b8dc23ce8199bc71e0a877fa45cdc6e50213
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
@@ -1,3 +1,3 @@
1
1
  module RorVsWild
2
- VERSION = "1.4.7".freeze
2
+ VERSION = "1.5.0".freeze
3
3
  end
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.7
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-01-11 00:00:00.000000000 Z
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