nexus_semantic_logger 1.12.11 → 1.12.12

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
  SHA256:
3
- metadata.gz: a159e8a863f9c0b2e1d650c8616b1de85eeedc314acb27326409bf2fefdd8492
4
- data.tar.gz: 8cd3b01ad9051d3124833b240c525e9b357372c30301e14b0c8ce97ece199848
3
+ metadata.gz: 8ffe47db66b655b68cdb1aec2623c866b76275c470a4893269e9693a4352e9c2
4
+ data.tar.gz: c2de8bb467f2c738be827dc6005539a37411f8dff91d251ac1ca98e25260886c
5
5
  SHA512:
6
- metadata.gz: eb863e5805b8010dd8f0fc6169f85657b7e4a735e26bd2080ff78d3029a1f633d6a9d69484743f7b7225e9fdf0006aaffe12bcebc70617be85956155033193f8
7
- data.tar.gz: a7ff2cdb97f46b86206d54e029eaebc10ee4ae775a5ca6e25c73fd8cc7f8b919cda21c4b257da5b245eed9625c98474075372b01993c812e35bf342809cd83a9
6
+ metadata.gz: af0e05963b659da545f9b8ad0420ee72aa6bc04b16cad3727a6d0f7ca80ee2d7dc1da04221815c24995afeddb828e9b3624d655b68e77a6dc8b287a5c6c6e39d
7
+ data.tar.gz: 562af249df1f57f678d752a4c9eeddba91dfb4e1676a90776a58f31c329227da6d6db570698e54a902043d92531b34b7cebf5d0519ed1ed24245e44298af9ba1
@@ -3,9 +3,9 @@
3
3
  # noinspection RubyClassVariableUsageInspection
4
4
  module NexusSemanticLogger
5
5
  class ResponseCodeStatsMiddleware
6
+ @@code_metrics = Hash.new(0)
6
7
  def initialize(app)
7
8
  @app = app
8
- @@code_metrics = {}
9
9
  end
10
10
 
11
11
  def call(env)
@@ -19,7 +19,7 @@ module NexusSemanticLogger
19
19
 
20
20
  def self.read_and_reset_metrics
21
21
  metrics = @@code_metrics.dup
22
- @@code_metrics.clear
22
+ @@code_metrics = Hash.new(0)
23
23
  metrics
24
24
  end
25
25
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module NexusSemanticLogger
3
- # Leave this as 1.12.11 in order for CI process to replace with the tagged version.
4
- VERSION = '1.12.11'
3
+ # Leave this as 1.12.12 in order for CI process to replace with the tagged version.
4
+ VERSION = '1.12.12'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexus_semantic_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.11
4
+ version: 1.12.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johnathon Harris