testa_logger 0.1.4 → 0.1.5

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: 80fa24df1415f3b2f87fb943bfe01ab6d027e4636e54532468b7b732b027a9d5
4
- data.tar.gz: d13869b75f2b44dcbdf9bc8a7bb530a895e0e1b1883d626ccb3844ce31d1913b
3
+ metadata.gz: 8e263591017a40fa1025680d2892df0cd9742257688b16b87019b3469ac2004e
4
+ data.tar.gz: 167d0cb8e46cf17821ee3876de61b29dd57561d7e47d01e5708d82396971f5ca
5
5
  SHA512:
6
- metadata.gz: '058bfb47171b98163822fd85b9ecdb1f64a1bac525c8fe579d2d3bd9979d2935bda018054d8d5991964c28824f7acc1fe48b92141446d952be4f745d17dd97ff'
7
- data.tar.gz: 92795725d8008739aee95d2c887d499443c871af7bc6742951e830e397b5a051bae25c0c29cc7a59265ff24e72289bf0665328b9ea7611bebc5926104bfb546a
6
+ metadata.gz: 4b250e6493e75951cb8d17ce82fb14980f95bd9828cc015a7e68b947cf7fcaee431d524efe1c63204a46121605671a3742334d2b4705ccce3c3f0a194e0477c3
7
+ data.tar.gz: 181c809692e98f2d8e3fa07f888aedb59b387399b5dc4c117b923553b0d46cc20b443f7273b04130cabf6ed54affff5198afdff00724ed73f7aee5fbdca1b7ec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- testa_logger (0.1.4)
4
+ testa_logger (0.1.5)
5
5
  activesupport
6
6
  awesome_print
7
7
  aws-sdk-s3
@@ -181,6 +181,14 @@ module TestaLogger
181
181
  options.level
182
182
  end
183
183
 
184
+ def silence(severity = ERROR, &block)
185
+ old_level = options.level
186
+ options.level = severity
187
+ result = block&.call
188
+ options.level = old_level
189
+ result
190
+ end
191
+
184
192
  class << self
185
193
  def default_options
186
194
  OpenStruct.new(
@@ -1,3 +1,3 @@
1
1
  module TestaLogger
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testa_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - karlo.razumovic