mihari 4.5.1 → 4.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mihari/structs/rule.rb +3 -0
- data/lib/mihari/version.rb +1 -1
- data/lib/mihari/web/endpoints/rules.rb +2 -1
- data/lib/mihari/web/public/index.html +1 -1
- data/lib/mihari/web/public/redoc-static.html +317 -314
- data/lib/mihari/web/public/static/css/{chunk-vendors.da2a7bfc.css → chunk-vendors.06251949.css} +2 -2
- data/lib/mihari/web/public/static/fonts/{fa-brands-400.f7223235.ttf → fa-brands-400.7fa789ab.ttf} +0 -0
- data/lib/mihari/web/public/static/fonts/fa-brands-400.859fc388.woff2 +0 -0
- data/lib/mihari/web/public/static/fonts/fa-regular-400.2ffd018f.woff2 +0 -0
- data/lib/mihari/web/public/static/fonts/{fa-regular-400.a7fde52b.ttf → fa-regular-400.da02cb7e.ttf} +0 -0
- data/lib/mihari/web/public/static/fonts/{fa-solid-900.5b03221c.ttf → fa-solid-900.3a463ec3.ttf} +0 -0
- data/lib/mihari/web/public/static/fonts/fa-solid-900.40ddefd7.woff2 +0 -0
- data/lib/mihari/web/public/static/fonts/{fa-v4compatibility.42932bea.ttf → fa-v4compatibility.924588dc.ttf} +0 -0
- data/lib/mihari/web/public/static/js/app-legacy.9d5c9c3d.js +2 -0
- data/lib/mihari/web/public/static/js/app-legacy.9d5c9c3d.js.map +1 -0
- data/lib/mihari/web/public/static/js/app.823b5af7.js +2 -0
- data/lib/mihari/web/public/static/js/app.823b5af7.js.map +1 -0
- data/lib/mihari/web/public/static/js/chunk-vendors-legacy.b110c129.js +25 -0
- data/lib/mihari/web/public/static/js/chunk-vendors-legacy.b110c129.js.map +1 -0
- data/lib/mihari/web/public/static/js/chunk-vendors.dde2116c.js +31 -0
- data/lib/mihari/web/public/static/js/chunk-vendors.dde2116c.js.map +1 -0
- data/mihari.gemspec +4 -5
- metadata +26 -40
- data/lib/mihari/web/public/static/fonts/fa-brands-400.edf40f86.woff2 +0 -0
- data/lib/mihari/web/public/static/fonts/fa-regular-400.3665ebc7.woff2 +0 -0
- data/lib/mihari/web/public/static/fonts/fa-solid-900.0d2abd43.woff2 +0 -0
- data/lib/mihari/web/public/static/js/app-legacy.c3595dce.js +0 -2
- data/lib/mihari/web/public/static/js/app-legacy.c3595dce.js.map +0 -1
- data/lib/mihari/web/public/static/js/app.afd5025f.js +0 -2
- data/lib/mihari/web/public/static/js/app.afd5025f.js.map +0 -1
- data/lib/mihari/web/public/static/js/chunk-vendors-legacy.d6b76c57.js +0 -25
- data/lib/mihari/web/public/static/js/chunk-vendors-legacy.d6b76c57.js.map +0 -1
- data/lib/mihari/web/public/static/js/chunk-vendors.3bdbaffb.js +0 -31
- data/lib/mihari/web/public/static/js/chunk-vendors.3bdbaffb.js.map +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 266aaff37fdb3453ed52ba4391f25e2fc9d26c37996a4d00c462d2c9cb9a2771
|
4
|
+
data.tar.gz: 5d3397886e6c63199f49233668772a38ac508b9e32f3cd64f8925c3bf8d391f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6df709c192e0a533d40604ee4fd076eb9d5f776d13165e60fe1687cf2fc2d008decbfd80c48cc809ab6667946e86b7a74490109e2bff9bf6c15d7c5767f490dc
|
7
|
+
data.tar.gz: 3350eeaa0d82da0322d463c30d69cfb2d09378449d37e681c34ec082d1d6505bb8bf1838c201779c3f3e618d716e029c25bbf6e0ac1329ad6c2291eef7c38a3a
|
data/lib/mihari/structs/rule.rb
CHANGED
data/lib/mihari/version.rb
CHANGED
@@ -145,6 +145,7 @@ module Mihari
|
|
145
145
|
end
|
146
146
|
|
147
147
|
rule = Structs::Rule::Rule.from_yaml(yaml)
|
148
|
+
rule.id = id
|
148
149
|
|
149
150
|
begin
|
150
151
|
rule.validate!
|
@@ -159,7 +160,7 @@ module Mihari
|
|
159
160
|
model = rule.to_model
|
160
161
|
model.save
|
161
162
|
rescue ActiveRecord::RecordNotUnique
|
162
|
-
error!({ message: "ID:#{
|
163
|
+
error!({ message: "ID:#{model.id} is already registered" }, 400)
|
163
164
|
end
|
164
165
|
|
165
166
|
status 201
|
@@ -1 +1 @@
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="icon" href="/static/favicon.ico"/><title>Mihari</title><script defer="defer" type="module" src="/static/js/chunk-vendors.
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="icon" href="/static/favicon.ico"/><title>Mihari</title><script defer="defer" type="module" src="/static/js/chunk-vendors.dde2116c.js"></script><script defer="defer" type="module" src="/static/js/app.823b5af7.js"></script><link href="/static/css/chunk-vendors.06251949.css" rel="stylesheet"><link href="/static/css/app.2a5d3d21.css" rel="stylesheet"><script defer="defer" src="/static/js/chunk-vendors-legacy.b110c129.js" nomodule></script><script defer="defer" src="/static/js/app-legacy.9d5c9c3d.js" nomodule></script></head><body><noscript><strong>We're sorry but Mihari doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
|