mihari 4.5.1 → 4.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mihari/structs/rule.rb +3 -0
  3. data/lib/mihari/version.rb +1 -1
  4. data/lib/mihari/web/endpoints/rules.rb +2 -1
  5. data/lib/mihari/web/public/index.html +1 -1
  6. data/lib/mihari/web/public/redoc-static.html +317 -314
  7. data/lib/mihari/web/public/static/css/{chunk-vendors.da2a7bfc.css → chunk-vendors.06251949.css} +2 -2
  8. data/lib/mihari/web/public/static/fonts/{fa-brands-400.f7223235.ttf → fa-brands-400.7fa789ab.ttf} +0 -0
  9. data/lib/mihari/web/public/static/fonts/fa-brands-400.859fc388.woff2 +0 -0
  10. data/lib/mihari/web/public/static/fonts/fa-regular-400.2ffd018f.woff2 +0 -0
  11. data/lib/mihari/web/public/static/fonts/{fa-regular-400.a7fde52b.ttf → fa-regular-400.da02cb7e.ttf} +0 -0
  12. data/lib/mihari/web/public/static/fonts/{fa-solid-900.5b03221c.ttf → fa-solid-900.3a463ec3.ttf} +0 -0
  13. data/lib/mihari/web/public/static/fonts/fa-solid-900.40ddefd7.woff2 +0 -0
  14. data/lib/mihari/web/public/static/fonts/{fa-v4compatibility.42932bea.ttf → fa-v4compatibility.924588dc.ttf} +0 -0
  15. data/lib/mihari/web/public/static/js/app-legacy.9d5c9c3d.js +2 -0
  16. data/lib/mihari/web/public/static/js/app-legacy.9d5c9c3d.js.map +1 -0
  17. data/lib/mihari/web/public/static/js/app.823b5af7.js +2 -0
  18. data/lib/mihari/web/public/static/js/app.823b5af7.js.map +1 -0
  19. data/lib/mihari/web/public/static/js/chunk-vendors-legacy.b110c129.js +25 -0
  20. data/lib/mihari/web/public/static/js/chunk-vendors-legacy.b110c129.js.map +1 -0
  21. data/lib/mihari/web/public/static/js/chunk-vendors.dde2116c.js +31 -0
  22. data/lib/mihari/web/public/static/js/chunk-vendors.dde2116c.js.map +1 -0
  23. data/mihari.gemspec +4 -5
  24. metadata +26 -40
  25. data/lib/mihari/web/public/static/fonts/fa-brands-400.edf40f86.woff2 +0 -0
  26. data/lib/mihari/web/public/static/fonts/fa-regular-400.3665ebc7.woff2 +0 -0
  27. data/lib/mihari/web/public/static/fonts/fa-solid-900.0d2abd43.woff2 +0 -0
  28. data/lib/mihari/web/public/static/js/app-legacy.c3595dce.js +0 -2
  29. data/lib/mihari/web/public/static/js/app-legacy.c3595dce.js.map +0 -1
  30. data/lib/mihari/web/public/static/js/app.afd5025f.js +0 -2
  31. data/lib/mihari/web/public/static/js/app.afd5025f.js.map +0 -1
  32. data/lib/mihari/web/public/static/js/chunk-vendors-legacy.d6b76c57.js +0 -25
  33. data/lib/mihari/web/public/static/js/chunk-vendors-legacy.d6b76c57.js.map +0 -1
  34. data/lib/mihari/web/public/static/js/chunk-vendors.3bdbaffb.js +0 -31
  35. 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: dd4057ff69b6e8ee676c7ebf7e672b6830d26a02e22ebe372d2786f5220ae8d3
4
- data.tar.gz: 202c7bce234c823fb10fe40fc1f7af2c25d676f587871d0a49740fd8f3af4325
3
+ metadata.gz: 266aaff37fdb3453ed52ba4391f25e2fc9d26c37996a4d00c462d2c9cb9a2771
4
+ data.tar.gz: 5d3397886e6c63199f49233668772a38ac508b9e32f3cd64f8925c3bf8d391f7
5
5
  SHA512:
6
- metadata.gz: ed3c42b58a305f20e7d981a1ae5e19d6efe493d7252645cf54f78c16fe38607305497e983f80d1d04ab8964f0166f19ace1ba62bece5ecdeadb0b6041d4be49f
7
- data.tar.gz: 12966b0cc1143bcff8e9a44dd5904c7fa70c234f26613df35e5be162c5e18805e15adb1a8fd1ddd8c1ad84d221b528d411daa29b764e67eed4357a86f6bf0cc7
6
+ metadata.gz: 6df709c192e0a533d40604ee4fd076eb9d5f776d13165e60fe1687cf2fc2d008decbfd80c48cc809ab6667946e86b7a74490109e2bff9bf6c15d7c5767f490dc
7
+ data.tar.gz: 3350eeaa0d82da0322d463c30d69cfb2d09378449d37e681c34ec082d1d6505bb8bf1838c201779c3f3e618d716e029c25bbf6e0ac1329ad6c2291eef7c38a3a
@@ -36,6 +36,9 @@ module Mihari
36
36
  # @return [Array, nil]
37
37
  attr_reader :errors
38
38
 
39
+ # @return [String]
40
+ attr_writer :id
41
+
39
42
  def initialize(data, yaml)
40
43
  @data = data.deep_symbolize_keys
41
44
  @yaml = yaml
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mihari
4
- VERSION = "4.5.1"
4
+ VERSION = "4.5.2"
5
5
  end
@@ -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:#{rule.id} is already registered" }, 400)
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.3bdbaffb.js"></script><script defer="defer" type="module" src="/static/js/app.afd5025f.js"></script><link href="/static/css/chunk-vendors.da2a7bfc.css" rel="stylesheet"><link href="/static/css/app.2a5d3d21.css" rel="stylesheet"><script defer="defer" src="/static/js/chunk-vendors-legacy.d6b76c57.js" nomodule></script><script defer="defer" src="/static/js/app-legacy.c3595dce.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>
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>