mihari 7.1.0 → 7.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -0
- data/README.md +2 -1
- data/Rakefile +39 -1
- data/lib/mihari/analyzers/base.rb +8 -10
- data/lib/mihari/cli/application.rb +16 -4
- data/lib/mihari/commands/alert.rb +5 -5
- data/lib/mihari/commands/artifact.rb +5 -5
- data/lib/mihari/commands/rule.rb +6 -6
- data/lib/mihari/commands/search.rb +1 -1
- data/lib/mihari/commands/tag.rb +3 -3
- data/lib/mihari/concerns/retriable.rb +1 -1
- data/lib/mihari/database.rb +1 -1
- data/lib/mihari/emitters/base.rb +5 -1
- data/lib/mihari/enrichers/base.rb +7 -1
- data/lib/mihari/rule.rb +2 -14
- data/lib/mihari/version.rb +1 -1
- data/lib/mihari/web/public/redoc-static.html +28 -28
- data/lib/mihari.rb +11 -0
- data/mkdocs.yml +1 -1
- metadata +2 -2
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
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.
|
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-
|
11
|
+
date: 2024-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: better_errors
|