mihari 5.4.5 → 5.4.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,8 +17,8 @@
17
17
  "@fortawesome/fontawesome-svg-core": "^6.4.2",
18
18
  "@fortawesome/free-solid-svg-icons": "^6.4.2",
19
19
  "@fortawesome/vue-fontawesome": "^3.0.3",
20
- "@vueuse/core": "^10.4.1",
21
- "@vueuse/router": "^10.4.1",
20
+ "@vueuse/core": "^10.5.0",
21
+ "@vueuse/router": "^10.5.0",
22
22
  "ace-builds": "^1.28.0",
23
23
  "axios": "^1.5.1",
24
24
  "bulma": "^0.9.4",
@@ -38,19 +38,19 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@redocly/cli": "1.2.0",
41
- "@rushstack/eslint-patch": "^1.5.0",
41
+ "@rushstack/eslint-patch": "^1.5.1",
42
42
  "@tsconfig/node20": "^20.1.2",
43
43
  "@types/jsdom": "^21.1.3",
44
- "@types/node": "^20.7.2",
44
+ "@types/node": "^20.8.3",
45
45
  "@types/url-parse": "^1.4.9",
46
- "@typescript-eslint/eslint-plugin": "^6.7.3",
47
- "@typescript-eslint/parser": "^6.7.3",
48
- "@vitejs/plugin-vue": "^4.3.4",
46
+ "@typescript-eslint/eslint-plugin": "^6.7.4",
47
+ "@typescript-eslint/parser": "^6.7.4",
48
+ "@vitejs/plugin-vue": "^4.4.0",
49
49
  "@vue/eslint-config-prettier": "^8.0.0",
50
50
  "@vue/eslint-config-typescript": "^12.0.0",
51
51
  "@vue/test-utils": "2.4.1",
52
52
  "@vue/tsconfig": "^0.4.0",
53
- "eslint": "^8.50.0",
53
+ "eslint": "^8.51.0",
54
54
  "eslint-config-prettier": "^9.0.0",
55
55
  "eslint-plugin-prettier": "^5.0.0",
56
56
  "eslint-plugin-simple-import-sort": "^10.0.0",
@@ -60,8 +60,8 @@
60
60
  "npm-run-all": "^4.1.5",
61
61
  "prettier": "^3.0.3",
62
62
  "typescript": "~5.2.2",
63
- "vite": "^4.4.9",
63
+ "vite": "^4.4.11",
64
64
  "vitest": "^0.34.6",
65
- "vue-tsc": "^1.8.15"
65
+ "vue-tsc": "^1.8.16"
66
66
  }
67
67
  }
@@ -15,7 +15,7 @@ module Mihari
15
15
  # @return [Hash, nil]
16
16
  attr_reader :params
17
17
 
18
- # @return [Hash, nil]
18
+ # @return [Hash]
19
19
  attr_reader :headers
20
20
 
21
21
  # @return [String]
@@ -31,17 +31,17 @@ module Mihari
31
31
  # @param [String] query
32
32
  # @param [Hash, nil] options
33
33
  # @param [String] method
34
- # @param [Hash] headers
35
- # @param [Hash] params
36
- # @param [Hash] json
37
- # @param [Hash] data
34
+ # @param [Hash, nil] headers
35
+ # @param [Hash, nil] params
36
+ # @param [Hash, nil] json
37
+ # @param [Hash, nil] data
38
38
  # @param [String] selector
39
39
  #
40
- def initialize(query, options: nil, method: "GET", headers: {}, params: {}, json: {}, data: {}, selector: "")
40
+ def initialize(query, options: nil, method: "GET", headers: nil, params: nil, json: nil, data: nil, selector: "")
41
41
  super(query, options: options)
42
42
 
43
43
  @method = method
44
- @headers = headers
44
+ @headers = headers || {}
45
45
  @params = params
46
46
  @json = json
47
47
  @data = data
@@ -13,7 +13,7 @@ def development_env?
13
13
  env == "development"
14
14
  end
15
15
 
16
- class V5Schema < ActiveRecord::Migration[7.0]
16
+ class V5Schema < ActiveRecord::Migration[7.1]
17
17
  def change
18
18
  create_table :rules, id: :string, if_not_exists: true do |t|
19
19
  t.string :title, null: false
@@ -162,7 +162,7 @@ module Mihari
162
162
  def close
163
163
  return unless ActiveRecord::Base.connected?
164
164
 
165
- ActiveRecord::Base.clear_active_connections!
165
+ ActiveRecord::Base.connection_handler.clear_active_connections!
166
166
  end
167
167
 
168
168
  def with_db_connection
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mihari
4
- VERSION = "5.4.5"
4
+ VERSION = "5.4.7"
5
5
  end
data/mihari.gemspec CHANGED
@@ -39,6 +39,7 @@ Gem::Specification.new do |spec|
39
39
  spec.add_development_dependency "bundler", "~> 2.4"
40
40
  spec.add_development_dependency "coveralls_reborn", "~> 0.28"
41
41
  spec.add_development_dependency "fakefs", "~> 2.5"
42
+ spec.add_development_dependency "faker", "~> 3.2"
42
43
  spec.add_development_dependency "fuubar", "~> 2.5"
43
44
  spec.add_development_dependency "mysql2", "~> 0.5"
44
45
  spec.add_development_dependency "pg", "~> 1.5"
@@ -49,6 +50,7 @@ Gem::Specification.new do |spec|
49
50
  spec.add_development_dependency "rspec", "~> 3.12"
50
51
  spec.add_development_dependency "simplecov-lcov", "~> 0.8"
51
52
  spec.add_development_dependency "standard", "~> 1.31"
53
+ spec.add_development_dependency "test-prof", "~> 1.2"
52
54
  spec.add_development_dependency "timecop", "~> 0.9"
53
55
  spec.add_development_dependency "vcr", "~> 6.2"
54
56
  spec.add_development_dependency "webmock", "~> 3.19"
@@ -58,12 +60,12 @@ Gem::Specification.new do |spec|
58
60
  spec.add_development_dependency "solargraph", "~> 0.49"
59
61
  end
60
62
 
61
- spec.add_dependency "activerecord", "7.0.8"
63
+ spec.add_dependency "activerecord", "7.1.0"
62
64
  spec.add_dependency "addressable", "2.8.5"
63
65
  spec.add_dependency "awrence", "2.0.1"
64
66
  spec.add_dependency "dotenv", "2.8.1"
65
67
  spec.add_dependency "dry-container", "0.11.0"
66
- spec.add_dependency "dry-files", "1.0.1"
68
+ spec.add_dependency "dry-files", "1.0.2"
67
69
  spec.add_dependency "dry-monads", "1.6.0"
68
70
  spec.add_dependency "dry-schema", "1.13.3"
69
71
  spec.add_dependency "dry-struct", "1.6.0"
data/requirements.txt CHANGED
@@ -1,2 +1,2 @@
1
1
  mkdocs==1.5.3
2
- mkdocs-material==9.4.2
2
+ mkdocs-material==9.4.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: 5.4.5
4
+ version: 5.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manabu Niseki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-09-30 00:00:00.000000000 Z
11
+ date: 2023-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '2.5'
55
+ - !ruby/object:Gem::Dependency
56
+ name: faker
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.2'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.2'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: fuubar
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -192,6 +206,20 @@ dependencies:
192
206
  - - "~>"
193
207
  - !ruby/object:Gem::Version
194
208
  version: '1.31'
209
+ - !ruby/object:Gem::Dependency
210
+ name: test-prof
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - "~>"
214
+ - !ruby/object:Gem::Version
215
+ version: '1.2'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - "~>"
221
+ - !ruby/object:Gem::Version
222
+ version: '1.2'
195
223
  - !ruby/object:Gem::Dependency
196
224
  name: timecop
197
225
  requirement: !ruby/object:Gem::Requirement
@@ -268,14 +296,14 @@ dependencies:
268
296
  requirements:
269
297
  - - '='
270
298
  - !ruby/object:Gem::Version
271
- version: 7.0.8
299
+ version: 7.1.0
272
300
  type: :runtime
273
301
  prerelease: false
274
302
  version_requirements: !ruby/object:Gem::Requirement
275
303
  requirements:
276
304
  - - '='
277
305
  - !ruby/object:Gem::Version
278
- version: 7.0.8
306
+ version: 7.1.0
279
307
  - !ruby/object:Gem::Dependency
280
308
  name: addressable
281
309
  requirement: !ruby/object:Gem::Requirement
@@ -338,14 +366,14 @@ dependencies:
338
366
  requirements:
339
367
  - - '='
340
368
  - !ruby/object:Gem::Version
341
- version: 1.0.1
369
+ version: 1.0.2
342
370
  type: :runtime
343
371
  prerelease: false
344
372
  version_requirements: !ruby/object:Gem::Requirement
345
373
  requirements:
346
374
  - - '='
347
375
  - !ruby/object:Gem::Version
348
- version: 1.0.1
376
+ version: 1.0.2
349
377
  - !ruby/object:Gem::Dependency
350
378
  name: dry-monads
351
379
  requirement: !ruby/object:Gem::Requirement
@@ -1082,7 +1110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1082
1110
  - !ruby/object:Gem::Version
1083
1111
  version: '0'
1084
1112
  requirements: []
1085
- rubygems_version: 3.4.1
1113
+ rubygems_version: 3.4.20
1086
1114
  signing_key:
1087
1115
  specification_version: 4
1088
1116
  summary: A query aggregator for OSINT based threat hunting