mihari 8.3.0 → 8.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b337f264e337771e4d543b77153a57cdd13d5ce8960f75f70fc6fd7c70215903
4
- data.tar.gz: 5013b97ab578766604d0ce2f1329b2209e1f234d5d018e9b642eda053b8ce4d7
3
+ metadata.gz: 10a99c5d7ecfe972ad4f9dfa523da196f41877caf9d2b06ba34c69f3c523ca92
4
+ data.tar.gz: 6e8362a329283d83e057775aa57c4adb1074b7296dc8340139092b01d2c92c03
5
5
  SHA512:
6
- metadata.gz: 942a3f9dab169e653d6c4a75a32e6bda6f54f35207c356c69d2c7b2412031ff7f2ca5f10c92dc8713cc6d567731a8ea420ad2d21f02ecfd1fc1a853996e881b2
7
- data.tar.gz: 01e710c03b08ec63f3365a370148e3b1861ea3a961a4a9b53cf5d4eef92b65c7a7afebb623c4f9fb0524c0076b4c0e8c600312fb937b6d2fe30be0c01152418d
6
+ metadata.gz: 59eb5f4b4112360593bc9a8c01b0f6928fda799a7f7f1fe4117079dd7197156dc34da1fd35d3d7774917b0edb9c029a30f7d72bb869e640af091c3e6fe50179b
7
+ data.tar.gz: 71d3691cf8ae32c976f1e4cc3a143d0e389adfbfc353961f86d57f6f550fb989070ef798c4fbc864ff37d1a8022a348021a01585cee2b504ebc6e1ea75b4a392
@@ -291,6 +291,7 @@ module Mihari
291
291
  class << self
292
292
  def from_dynamic!(d)
293
293
  res = d.dig("host_v1", "resource") || {}
294
+ return nil if res["ip"].nil?
294
295
  new(
295
296
  ip: res["ip"],
296
297
  autonomous_system: res["autonomous_system"],
@@ -313,7 +314,7 @@ module Mihari
313
314
  class << self
314
315
  def from_dynamic!(d)
315
316
  new(
316
- hits: (d["hits"] || []).map { |x| Hit.from_dynamic!(x) },
317
+ hits: (d["hits"] || []).filter_map { |x| Hit.from_dynamic!(x) },
317
318
  next_page_token: d["next_page_token"]
318
319
  )
319
320
  end
@@ -1,3 +1,8 @@
1
1
  module Mihari
2
- VERSION = "8.3.0"
2
+ begin
3
+ require "git-version-bump"
4
+ VERSION = GVB.version(false, true)
5
+ rescue
6
+ VERSION = "0.0.0"
7
+ end
3
8
  end