mihari 7.1.0 → 7.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/mihari.rb CHANGED
@@ -125,6 +125,8 @@ module Mihari
125
125
  end
126
126
 
127
127
  def logger
128
+ SemanticLogger.sync! unless puma?
129
+
128
130
  SemanticLogger.default_level = :info
129
131
  SemanticLogger.add_appender(io: $stderr, formatter: :color)
130
132
  SemanticLogger["Mihari"]
@@ -152,6 +154,15 @@ module Mihari
152
154
  !Mihari.config.sidekiq_redis_url.nil?
153
155
  end
154
156
 
157
+ #
158
+ # @return [Boolean]
159
+ #
160
+ def puma?
161
+ !Puma.stats.nil?
162
+ rescue StandardError
163
+ false
164
+ end
165
+
155
166
  def initialize_sentry
156
167
  return if Mihari.config.sentry_dsn.nil?
157
168
  return if Sentry.initialized?
data/mkdocs.yml CHANGED
@@ -27,7 +27,7 @@ nav:
27
27
  - Analyzers: analyzers/index.md
28
28
  - Enrichers: enrichers/index.md
29
29
  - Emitters: emitters/index.md
30
- - Database: database.md
30
+ - Diagrams: diagrams.md
31
31
  - Tags: tags.md
32
32
  - Development: dev.md
33
33
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mihari
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.0
4
+ version: 7.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manabu Niseki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-06 00:00:00.000000000 Z
11
+ date: 2024-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: better_errors