huyegger 0.3.1 → 0.4.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: 7bde524d013159b9bfa72a41535feb11cc636b51
4
- data.tar.gz: cac1ccda9fd4bc216cf878547c9aaa30d9de6c02
3
+ metadata.gz: 940d2c432f72abaf483dd9be160b4c30b4c823fd
4
+ data.tar.gz: aa1c16599713ff967ac1c08a9606bb87696ff2c8
5
5
  SHA512:
6
- metadata.gz: 5d856806d0c858f019e5ecda9e10e9500c65e041eb211e83809ab256876acf3b060c5e1a990132c06f3937451233550ecd11e55c02aebae37864562829fca5cb
7
- data.tar.gz: e054effe733e8b595b5061bc8d03375db8c655194893789328ddf5d4dbbd1dcd86e16800c3c41c44e1920bd4477d9d7b98d1f3a701735bfcf59d63c11a3883a8
6
+ metadata.gz: 888df5650b47e373ffc8760697f4b0bde681849fac9000192b465bfe6188d5cdad6dd5d7b0ca28e144026a936b7b7bae050d6f72844cc3818e194bc89ada8646
7
+ data.tar.gz: 90b64146d62855e7449c60a51d907183653d6435f4c26136efdf5fa8c1fe5a55e042e426740e0334cc960db1914608a7d0f4996613c0923600a27df5e505df6a
@@ -18,7 +18,7 @@ module Huyegger
18
18
  @original_formatter = original_formatter
19
19
  end
20
20
 
21
- def purge_context!
21
+ def clear_context!
22
22
  __context__.clear
23
23
  end
24
24
 
@@ -6,7 +6,7 @@ module Huyegger
6
6
  formatter.context(*args)
7
7
  end
8
8
 
9
- def purge_context!
9
+ def clear_context!
10
10
  formatter.clear_context!
11
11
  end
12
12
 
@@ -8,7 +8,7 @@ module Huyegger
8
8
  def call(env)
9
9
  @app.call(env)
10
10
  ensure
11
- ::Rails.logger.purge_context! if defined?(Huyegger) && ::Rails.logger.is_a?(Huyegger::Logger)
11
+ ::Rails.logger.clear_context! if defined?(Huyegger) && ::Rails.logger.is_a?(Huyegger::Logger)
12
12
  end
13
13
  end
14
14
  end
@@ -2,7 +2,7 @@ module Huyegger
2
2
  module Middlewares
3
3
  class Sidekiq
4
4
  def call(worker, msg, queue)
5
- ::Rails.logger.purge_context! if defined?(Huyegger) && ::Rails.logger.is_a?(Huyegger::Logger)
5
+ ::Rails.logger.clear_context! if defined?(Huyegger) && ::Rails.logger.is_a?(Huyegger::Logger)
6
6
  yield
7
7
  end
8
8
  end
@@ -1,3 +1,3 @@
1
1
  module Huyegger
2
- VERSION = "0.3.1"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: huyegger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nikolay Markov