sapience 2.5.0 → 2.5.2

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: 9c4aff2ff662827ad5cab7dce5d905985bcf2e05
4
- data.tar.gz: 16955d4a9f3b194b9ec59a10f854657a6433f014
3
+ metadata.gz: 0195f4d1d99b9f8ba9ba68ab0392d4dc6c4f93c5
4
+ data.tar.gz: 027ab907b08063bb5ae83028c0d80f4bff529fe4
5
5
  SHA512:
6
- metadata.gz: 4d1218d578d34186e838e7ae36e482a215d27086e9e069399805c718ce9bc76314d79ed2d1da16bcc462fccb9aeb4647a090443de30263570bc1f04f08adca5f
7
- data.tar.gz: 2b874e89fe7cc09ed5e7b632d695b34b4cd590aa46714cb4561bb973d8e66a5ae70e21ac861faf6ad8651845438a8e4bad5a490f6d9799e3e95bf8303643118e
6
+ metadata.gz: 841435a105d54e40a617a8add8339281a843572604274847c45ad72534c4b2fb339573d099c716345211c65dafac290fe06e448926fc98ab1fc8973b8b264be8
7
+ data.tar.gz: 8d475b0ee78ca5fcf21cff7195e989bd4ec93f1dfc9712f06719e032216c2ec1f532cd9c3152e13d9a16c3999f99a5404f52620b4a9478946bf5d110a53ec90f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## v2.5.2
2
+
3
+ - Fix RuboCop auto-correct changes
4
+
1
5
  ## v2.5.0
2
6
 
3
7
  - Bump Ruby to version 2.3.4
@@ -111,7 +111,7 @@ module Sapience
111
111
  if level_index <= index
112
112
  measure_internal(level, index, message, params, &block)
113
113
  else
114
- block&.call(params)
114
+ yield params if block
115
115
  end
116
116
  end
117
117
 
@@ -396,7 +396,9 @@ module Sapience
396
396
  # Remove specified number of tags from the current tag list
397
397
  def self.pop_tags(quantity = 1)
398
398
  t = Thread.current[:sapience_tags]
399
- t&.pop(quantity)
399
+ return if t.nil?
400
+
401
+ t.pop(quantity)
400
402
  end
401
403
 
402
404
  # Silence noisy log levels by changing the default_level within the block
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Sapience
3
- VERSION = "2.5.0"
3
+ VERSION = "2.5.2"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sapience
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikael Henriksson