mihari 3.0.1 → 3.1.0

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: e890d0871e67d6f67aaf432ca236152286e0b9035f26cc1320f150416580e59e
4
- data.tar.gz: 071d117cd29cd73f29f00c78dd42637248efc1073e43ce994393a8a7efeb75a6
3
+ metadata.gz: f34c26d8db3034c1442de414f7781bfa1587a9600a8b67c77e4e3b2ececfa22a
4
+ data.tar.gz: 3116144adcce4f2aae5bdcfee2031d130cbb985dfbf5afebc422021b35659b0a
5
5
  SHA512:
6
- metadata.gz: 1acbd69f2f744b9025da82b41e4c6dbeb42f29eb7563fc6a0b2c09a5c332bfcd7913cee0639540e92437672503e3770ff1051b252f79deae653bbaeafedda590
7
- data.tar.gz: 64492cabe3e7102e9614c915cf857db96cd2f1d9931174604131c2069f08d2cb1afc6136dcb4dc29c659f0e2c0d7f2b54836b8d81a0cae7389b00e37fee91b24
6
+ metadata.gz: f89efb0944d2848e113854c272107f1274e2d35240e0c9e23b43bc4b8636272daa10d2b3d6e73617aae02092642e554a9b50a53fe8660dabbe9b2efbf7c6238b
7
+ data.tar.gz: 4f83a5c0d8823f918825b59d04f096ceb0c572e7db84c0226d0cda4c347733f98774afc071d7bffcaadd899ceabd5972b35a262cb49cd961fce081c375a1a551
data/docker/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM ruby:3.0.1-alpine3.13
1
+ FROM ruby:3.0.2-alpine3.13
2
2
 
3
3
  RUN apk --no-cache add git build-base ruby-dev sqlite-dev postgresql-dev mysql-client mysql-dev \
4
4
  && gem install pg mysql2 \
@@ -2,8 +2,6 @@
2
2
 
3
3
  require "uuidtools"
4
4
 
5
- NIL = nil
6
-
7
5
  module Mihari
8
6
  module Analyzers
9
7
  class Rule < Base
@@ -39,7 +39,7 @@ module Mihari
39
39
 
40
40
  return false unless ignore_old_artifacts
41
41
 
42
- days_before = (-ignore_threshold).days.from_now
42
+ days_before = (-ignore_threshold).days.from_now.utc
43
43
  # if an artifact is created before {ignore_threshold} days, ignore it
44
44
  # within {ignore_threshold} days, do not ignore it
45
45
  artifact.created_at < days_before
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mihari
4
- VERSION = "3.0.1"
4
+ VERSION = "3.1.0"
5
5
  end
data/mihari.gemspec CHANGED
@@ -42,7 +42,7 @@ Gem::Specification.new do |spec|
42
42
  spec.add_dependency "active_model_serializers", "~> 0.10"
43
43
  spec.add_dependency "activerecord", "~> 6.1"
44
44
  spec.add_dependency "activerecord-filter", "~> 6.1"
45
- spec.add_dependency "addressable", "~> 2.7"
45
+ spec.add_dependency "addressable", "~> 2.8"
46
46
  spec.add_dependency "awrence", "~> 1.2"
47
47
  spec.add_dependency "binaryedge", "~> 0.1"
48
48
  spec.add_dependency "censysx", "~> 0.1"
@@ -55,7 +55,7 @@ Gem::Specification.new do |spec|
55
55
  spec.add_dependency "dry-files", "~> 0.1"
56
56
  spec.add_dependency "dry-initializer", "~> 3.0"
57
57
  spec.add_dependency "dry-validation", "~> 1.6"
58
- spec.add_dependency "email_address", "~> 0.1"
58
+ spec.add_dependency "email_address", "~> 0.2"
59
59
  spec.add_dependency "hachi", "~> 1.0"
60
60
  spec.add_dependency "launchy", "~> 2.5"
61
61
  spec.add_dependency "mem", "~> 0.1"
@@ -78,7 +78,7 @@ Gem::Specification.new do |spec|
78
78
  spec.add_dependency "sinatra-contrib", "~> 2.1"
79
79
  spec.add_dependency "sinatra-param", "~> 1.6"
80
80
  spec.add_dependency "slack-notifier", "~> 2.4"
81
- spec.add_dependency "spysex", "~> 0.1"
81
+ spec.add_dependency "spysex", "~> 0.2"
82
82
  spec.add_dependency "sqlite3", "~> 1.4"
83
83
  spec.add_dependency "thor", "~> 1.1"
84
84
  spec.add_dependency "thread_safe", "~> 0.3"
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: 3.0.1
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manabu Niseki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-06-20 00:00:00.000000000 Z
11
+ date: 2021-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -240,14 +240,14 @@ dependencies:
240
240
  requirements:
241
241
  - - "~>"
242
242
  - !ruby/object:Gem::Version
243
- version: '2.7'
243
+ version: '2.8'
244
244
  type: :runtime
245
245
  prerelease: false
246
246
  version_requirements: !ruby/object:Gem::Requirement
247
247
  requirements:
248
248
  - - "~>"
249
249
  - !ruby/object:Gem::Version
250
- version: '2.7'
250
+ version: '2.8'
251
251
  - !ruby/object:Gem::Dependency
252
252
  name: awrence
253
253
  requirement: !ruby/object:Gem::Requirement
@@ -422,14 +422,14 @@ dependencies:
422
422
  requirements:
423
423
  - - "~>"
424
424
  - !ruby/object:Gem::Version
425
- version: '0.1'
425
+ version: '0.2'
426
426
  type: :runtime
427
427
  prerelease: false
428
428
  version_requirements: !ruby/object:Gem::Requirement
429
429
  requirements:
430
430
  - - "~>"
431
431
  - !ruby/object:Gem::Version
432
- version: '0.1'
432
+ version: '0.2'
433
433
  - !ruby/object:Gem::Dependency
434
434
  name: hachi
435
435
  requirement: !ruby/object:Gem::Requirement
@@ -744,14 +744,14 @@ dependencies:
744
744
  requirements:
745
745
  - - "~>"
746
746
  - !ruby/object:Gem::Version
747
- version: '0.1'
747
+ version: '0.2'
748
748
  type: :runtime
749
749
  prerelease: false
750
750
  version_requirements: !ruby/object:Gem::Requirement
751
751
  requirements:
752
752
  - - "~>"
753
753
  - !ruby/object:Gem::Version
754
- version: '0.1'
754
+ version: '0.2'
755
755
  - !ruby/object:Gem::Dependency
756
756
  name: sqlite3
757
757
  requirement: !ruby/object:Gem::Requirement