mihari 7.6.1 → 7.6.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2fd0c07fe2661f57d6db5b409c527789c5e17d23e7691d5ac241ff5b36a20698
4
- data.tar.gz: d7f2a832b3cb364aca8bdfad71cf762f72dc707892d2697ef8bb272bcb794b1d
3
+ metadata.gz: c5fff977863ca54dae5b645e3587d8f09f0583df44fca258ac4f1c8f3455a74e
4
+ data.tar.gz: 3c45cf5405737aaddbd79b42590509f155b3be13c3a0645057cc446666728655
5
5
  SHA512:
6
- metadata.gz: 39c5c92cf79721ed6d98b09a63a3d609eab8e8da9ba5badb1cd1a9f01fcb04d8f11edaa3b50fd7e0aed6dcb44f7befb77166e9bbf8399bac4d6592eafd943763
7
- data.tar.gz: 7c06bd2ca9616605aa9601d198a413529f92205861dcafbfd86e84fa5bca6e2344d42ef558f27ee4c358f09778679fdaa2018954a6d34bfa534f2a3fa155042d
6
+ metadata.gz: d189d79161738b06e2ee970b835b953bd968c4c4500b7cf589fcf3c2ac31a49f46a9d2fcf3581818484f9daf0b72a87a1d3cd39084d39e4a9bcfdf4ab0edc1a4
7
+ data.tar.gz: 463d12e871297b9d5be403139720fc51d09bd51e0c41855d47cbe889de086f2a5a2d2fe25fa592f81ddec1b6e56195b9878372c1fc8955f23357b72d09bbdce0
data/.rubocop.yml CHANGED
@@ -1,5 +1,6 @@
1
- Style/StringLiterals:
2
- EnforcedStyle: double_quotes
1
+ AllCops:
2
+ TargetRubyVersion: 3.2
3
+ NewCops: enable
3
4
  Metrics/BlockLength:
4
5
  Max: 150
5
6
  Exclude:
@@ -12,13 +13,32 @@ Metrics/MethodLength:
12
13
  Metrics/AbcSize:
13
14
  Max: 50
14
15
  RSpec/MultipleMemoizedHelpers:
15
- Max: 10
16
+ Max: 15
16
17
  RSpec/ExampleLength:
17
18
  Max: 20
18
- RSpec/FilePath:
19
- SpecSuffixOnly: true
19
+ RSpec/NestedGroups:
20
+ Max: 5
21
+ RSpec/RepeatedExampleGroupDescription:
22
+ Enabled: false
23
+ RSpec/ReceiveMessages:
24
+ Enabled: false
25
+ RSpec/MultipleExpectations:
26
+ Enabled: false
27
+ RSpec/SpecFilePathFormat:
28
+ Enabled: false
29
+ FactoryBot/SyntaxMethods:
30
+ Enabled: false
20
31
  require:
32
+ - rubocop-capybara
21
33
  - rubocop-factory_bot
34
+ - rubocop-performance
22
35
  - rubocop-rake
23
36
  - rubocop-rspec
24
37
  - rubocop-yard
38
+ - standard
39
+ - standard-custom
40
+ - standard-performance
41
+ inherit_gem:
42
+ standard: config/base.yml
43
+ standard-custom: config/base.yml
44
+ standard-performance: config/base.yml
data/README.md CHANGED
@@ -27,6 +27,7 @@ Mihari supports the following services by default.
27
27
  - [SecurityTrails](https://securitytrails.com/)
28
28
  - [Shodan](https://shodan.io)
29
29
  - [urlscan.io](https://urlscan.io)
30
+ - [Validin](https://validin.com)
30
31
  - [VirusTotal](http://virustotal.com) & [VirusTotal Intelligence](https://www.virustotal.com/gui/intelligence-overview)
31
32
  - [ZoomEye](https://zoomeye.org)
32
33
 
data/Rakefile CHANGED
@@ -3,8 +3,9 @@
3
3
  require "time"
4
4
 
5
5
  require "rspec/core/rake_task"
6
- require "standard/rake"
6
+ require "rubocop/rake_task"
7
7
 
8
+ RuboCop::RakeTask.new
8
9
  RSpec::Core::RakeTask.new(:spec)
9
10
 
10
11
  task default: :spec
@@ -67,6 +68,7 @@ namespace :build do
67
68
  end
68
69
  end
69
70
 
71
+ desc "Build including Swagger doc and frontend assets"
70
72
  task :build do
71
73
  Rake::Task["build:swagger"].invoke
72
74
  Rake::Task["build:frontend"].invoke
data/lefthook.yml CHANGED
@@ -1,8 +1,8 @@
1
1
  pre-commit:
2
2
  commands:
3
- standard:
3
+ rubocop:
4
4
  glob: "*.rb"
5
- run: bundle exec standardrb --fix {staged_files}
5
+ run: bundle exec rubocop --fix {staged_files}
6
6
  stage_fixed: true
7
7
  eslint:
8
8
  root: "frontend/"
@@ -19,5 +19,5 @@ pre-commit:
19
19
  glob: "*.{js,ts,vue}"
20
20
  run: npm run type-check
21
21
  actionlint:
22
- glob: ".github/workflows/*.yaml"
23
- run: actionlint
22
+ glob: ".github/workflows/*.{yaml,yml}"
23
+ run: actionlint {staged_files}
@@ -12,7 +12,7 @@ module Mihari
12
12
  # @param [Integer, nil] timeout
13
13
  #
14
14
  def initialize(base_url = "https://crt.sh", headers: {}, timeout: nil)
15
- super(base_url, headers:, timeout:)
15
+ super
16
16
  end
17
17
 
18
18
  #
@@ -12,7 +12,7 @@ module Mihari
12
12
  # @param [Integer, nil] timeout
13
13
  #
14
14
  def initialize(base_url = "https://dnstwister.report", headers: {}, timeout: nil)
15
- super(base_url, headers:, timeout:)
15
+ super
16
16
  end
17
17
 
18
18
  #
@@ -12,7 +12,7 @@ module Mihari
12
12
  # @param [Integer, nil] timeout
13
13
  #
14
14
  def initialize(base_url = "https://dns.google", headers: {}, timeout: nil)
15
- super(base_url, headers:, timeout:)
15
+ super
16
16
  end
17
17
 
18
18
  #
@@ -12,7 +12,7 @@ module Mihari
12
12
  # @param [Integer, nil] timeout
13
13
  #
14
14
  def initialize(base_url = "https://ip.circl.lu", headers: {}, timeout: nil)
15
- super(base_url, headers:, timeout:)
15
+ super
16
16
  end
17
17
 
18
18
  #
@@ -12,7 +12,7 @@ module Mihari
12
12
  # @param [Integer, nil] timeout
13
13
  #
14
14
  def initialize(base_url = "https://internetdb.shodan.io", headers: {}, timeout: nil)
15
- super(base_url, headers:, timeout:)
15
+ super
16
16
  end
17
17
 
18
18
  #
@@ -10,7 +10,7 @@ module Mihari
10
10
  # @param [Hash, nil] options
11
11
  #
12
12
  def initialize(options: nil)
13
- super(options:)
13
+ super
14
14
  end
15
15
 
16
16
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mihari
4
- VERSION = "7.6.1"
4
+ VERSION = "7.6.2"
5
5
  end