sqreen 1.15.5-java → 1.15.6-java

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: bb1cc783655676697b23d94b34643b1990d7ef8011d4304d1f8602ee39830e0e
4
- data.tar.gz: d569d191c90467462c4b9431750e31df1eac0f2a7fd5f8b9f85707937b460da6
3
+ metadata.gz: c81e2fb9fa2a91524cec1684291e624661ed43020f796cdf86e0b2a53acabef0
4
+ data.tar.gz: 8d519754e5e390da7faf9ba61db10f55c36cf2106377be0f442f8f416c4a613b
5
5
  SHA512:
6
- metadata.gz: 0e415a37c0cccbb9776f1c46d39e7d6a2da002950cf1a97d680c777c636ebfd225aeaebc552d50b1bf92e934946ceaf5a04214efa74ccb2b51e9d4f8787851be
7
- data.tar.gz: 624b68dbc3150ec7f9637c9926c2ee9f02134310ee69327d161ea45d1959846b97c0458fdadf69842e6042a2e59dbbbc6e27733e5e12eb85d8bca6982bc44e2f
6
+ metadata.gz: 2b52f068765fc16d900ffc51edc89c0aeed87ba97607cf3c47c6cf014a06861ef762570412702e10af399a5a65e2fd85e10c3fc4ded374a340c41251bdcdd681
7
+ data.tar.gz: 77fe0a178f47b6e89d3e4da68df41c7021ced4317ff2574ffffc2946ded66bf495751518426bebcf5d61e6456d0ad93642c60fb93fdf2782e2b394d7d7a9a0be
@@ -22,6 +22,10 @@ module Sqreen
22
22
  @config.get(name)
23
23
  end
24
24
 
25
+ def self.configured?
26
+ !@config.nil?
27
+ end
28
+
25
29
  CONFIG_FILE_BY_ENV = 'SQREEN_CONFIG_FILE'.freeze
26
30
 
27
31
  CONFIG_DESCRIPTION = [
data/lib/sqreen/log.rb CHANGED
@@ -11,6 +11,7 @@ module Sqreen
11
11
  def self::log
12
12
  @logger ||= nil
13
13
  return @logger unless @logger.nil?
14
+ return NoopLogger.instance unless Sqreen.configured?
14
15
  @logger = Logger.new(
15
16
  Sqreen.config_get(:log_level).to_s.upcase,
16
17
  Sqreen.config_get(:log_location)
@@ -119,4 +120,16 @@ module Sqreen
119
120
  logger.formatter = FormatterWithTid.new
120
121
  end
121
122
  end
123
+
124
+ class NoopLogger
125
+ include Singleton
126
+
127
+ def debug(_msg = nil); end
128
+
129
+ def info(_msg = nil); end
130
+
131
+ def warn(_msg = nil); end
132
+
133
+ def error(_msg = nil); end
134
+ end
122
135
  end
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2015 Sqreen. All Rights Reserved.
2
2
  # Please refer to our terms for more information: https://www.sqreen.io/terms.html
3
3
  module Sqreen
4
- VERSION = '1.15.5'.freeze
4
+ VERSION = '1.15.6'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqreen
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.5
4
+ version: 1.15.6
5
5
  platform: java
6
6
  authors:
7
7
  - Sqreen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-15 00:00:00.000000000 Z
11
+ date: 2018-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement