mettric 0.1.7 → 0.1.8

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: 3877f9991bb5a46bc0c08dfad54d3d594fb9e71c
4
- data.tar.gz: c1ab8114b49b654a92cf7f50d26ee7725fb87def
3
+ metadata.gz: ed218869bb0e8597d68dba5f9cd801d2a9d85e36
4
+ data.tar.gz: eb5836650566d49b49c5539a13c50a6eaf3a9b67
5
5
  SHA512:
6
- metadata.gz: b2c5326d53df56739322356765f247dd94ca383275801625229776f376c3d8bc1357d6961d23a093badd68b0a23a42de6887f4a7cf9d6bdbce1b4838b1f0d9dc
7
- data.tar.gz: cfada3ac03e3e1afbc3c9f3db212b2358ce53c26556c9d12c14ffd921f4191286c4334b7a7d56b5bbdba2e69936d7f7fea862db46570b33a6c4ee7ce07bba37e
6
+ metadata.gz: edc9987a607439cffc42ae1d0c3eb0f5f3fc5e1ab96a516686977346b05c2129e776a1c90648ff303c1252a4f5f7d9542023fafb2ef840764c7366c17325e198
7
+ data.tar.gz: 4b3cb8b85087c4399999fb57279f77e887d106e666264f044670c173d1a819a629eb48139d6b18fd020a560b933d03c244ce715d3475aaf9d46ef1516e112119
@@ -8,7 +8,7 @@ class Mettric::SidekiqMiddleware
8
8
  opts = worker.class.sidekiq_options['mettric']
9
9
 
10
10
  # Don't do anything if we're told to skip this class
11
- if opts != true
11
+ if opts != true and opts != nil
12
12
  return yield
13
13
  end
14
14
 
@@ -19,3 +19,12 @@ class Mettric::SidekiqMiddleware
19
19
  end
20
20
  end
21
21
  end
22
+
23
+ if Kernel.const_defined?(:Sidekiq)
24
+ Sidekiq.configure_server do |config|
25
+ config.server_middleware do |chain|
26
+ chain.add Mettric::SidekiqMiddleware
27
+ end
28
+ end
29
+ end
30
+
@@ -1,3 +1,3 @@
1
1
  class Mettric
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mettric
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jannis Hermanns