ronin-db-activerecord 0.2.0.rc1 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +1 -0
  3. data/.ruby-version +1 -1
  4. data/ChangeLog.md +6 -2
  5. data/README.md +3 -2
  6. data/gemspec.yml +4 -3
  7. data/lib/ronin/db/address.rb +4 -4
  8. data/lib/ronin/db/advisory.rb +10 -10
  9. data/lib/ronin/db/arch.rb +3 -3
  10. data/lib/ronin/db/asn.rb +4 -4
  11. data/lib/ronin/db/cert.rb +8 -8
  12. data/lib/ronin/db/cert_issuer.rb +3 -3
  13. data/lib/ronin/db/cert_name.rb +6 -6
  14. data/lib/ronin/db/cert_organization.rb +2 -2
  15. data/lib/ronin/db/cert_subject.rb +4 -4
  16. data/lib/ronin/db/cert_subject_alt_name.rb +4 -4
  17. data/lib/ronin/db/credential.rb +9 -9
  18. data/lib/ronin/db/dns_query.rb +3 -3
  19. data/lib/ronin/db/dns_record.rb +3 -3
  20. data/lib/ronin/db/email_address.rb +10 -10
  21. data/lib/ronin/db/host_name.rb +10 -10
  22. data/lib/ronin/db/host_name_ip_address.rb +2 -2
  23. data/lib/ronin/db/http_header_name.rb +3 -3
  24. data/lib/ronin/db/http_query_param.rb +4 -4
  25. data/lib/ronin/db/http_query_param_name.rb +3 -3
  26. data/lib/ronin/db/http_request.rb +2 -2
  27. data/lib/ronin/db/http_request_header.rb +4 -4
  28. data/lib/ronin/db/http_response.rb +3 -3
  29. data/lib/ronin/db/http_response_header.rb +4 -4
  30. data/lib/ronin/db/ip_address.rb +15 -15
  31. data/lib/ronin/db/ip_address_mac_address.rb +2 -2
  32. data/lib/ronin/db/mac_address.rb +7 -7
  33. data/lib/ronin/db/migrations.rb +1 -1
  34. data/lib/ronin/db/model/has_name.rb +2 -2
  35. data/lib/ronin/db/model/has_unique_name.rb +2 -2
  36. data/lib/ronin/db/model/importable.rb +1 -1
  37. data/lib/ronin/db/model/last_scanned_at.rb +1 -1
  38. data/lib/ronin/db/model.rb +1 -1
  39. data/lib/ronin/db/models.rb +57 -57
  40. data/lib/ronin/db/note.rb +19 -19
  41. data/lib/ronin/db/open_port.rb +10 -10
  42. data/lib/ronin/db/organization.rb +13 -13
  43. data/lib/ronin/db/organization_customer.rb +4 -4
  44. data/lib/ronin/db/organization_department.rb +7 -7
  45. data/lib/ronin/db/organization_email_address.rb +4 -4
  46. data/lib/ronin/db/organization_host_name.rb +4 -4
  47. data/lib/ronin/db/organization_ip_address.rb +4 -4
  48. data/lib/ronin/db/organization_member.rb +6 -6
  49. data/lib/ronin/db/organization_phone_number.rb +4 -4
  50. data/lib/ronin/db/organization_street_address.rb +4 -4
  51. data/lib/ronin/db/os.rb +5 -5
  52. data/lib/ronin/db/os_guess.rb +4 -4
  53. data/lib/ronin/db/password.rb +5 -5
  54. data/lib/ronin/db/person.rb +9 -9
  55. data/lib/ronin/db/personal_connection.rb +4 -4
  56. data/lib/ronin/db/personal_email_address.rb +4 -4
  57. data/lib/ronin/db/personal_phone_number.rb +5 -5
  58. data/lib/ronin/db/personal_street_address.rb +4 -4
  59. data/lib/ronin/db/phone_number.rb +9 -9
  60. data/lib/ronin/db/port.rb +4 -4
  61. data/lib/ronin/db/service.rb +5 -5
  62. data/lib/ronin/db/service_credential.rb +4 -4
  63. data/lib/ronin/db/software.rb +5 -5
  64. data/lib/ronin/db/software_vendor.rb +3 -3
  65. data/lib/ronin/db/street_address.rb +7 -7
  66. data/lib/ronin/db/url.rb +14 -14
  67. data/lib/ronin/db/url_query_param.rb +4 -4
  68. data/lib/ronin/db/url_query_param_name.rb +3 -3
  69. data/lib/ronin/db/url_scheme.rb +3 -3
  70. data/lib/ronin/db/user_name.rb +8 -8
  71. data/lib/ronin/db/vulnerability.rb +6 -6
  72. data/lib/ronin/db/web_credential.rb +4 -4
  73. data/lib/ronin/db/web_vuln.rb +3 -3
  74. metadata +6 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c4da08e5db9949dabcf7222863fc3494b8b490cd010c2e9b0ce1d9f45ee66ce4
4
- data.tar.gz: 8317d25f8ea47d0280d07b4a7055901e0ca053af8cb7e9362f919fa45b8f403c
3
+ metadata.gz: bd4124ca7123adf2f4cda81e7acbc6fc7c40d354d9cc1251b70f031197e30265
4
+ data.tar.gz: 3c917f299f83348476e0141585758053f1fb17c89eaaf81414e11f72ded2adb6
5
5
  SHA512:
6
- metadata.gz: 8906004e4df84301446e8be83822e95558b4e9ecced80597cc2a52d4b1bc5b683de8d527aeed637f458fbf705704ecb4d489e0fdc06052ae2e3708cbe30a969b
7
- data.tar.gz: a4ba894a3b86962397abf504f05b63ea60102ce9c2f5d15c3ad1983e75e13f2345790a59325f4b6208b625e07261eae0dd747e51c04fa0b184e37cb07dc78f0e
6
+ metadata.gz: baca2882027f0cf4aadf6dbf8fe6522da44911bbcb46331a7e0329be94e46310b354f7787d67e103f18c1c53e6cee48d61b902a2460a3416994639f76f165262
7
+ data.tar.gz: c1c95f99bf0548aede3ba13207132dccda9dc6a47e9bbd60734bf0ac26018b1112b0ab59824be77d44b5c705d995565075d90715aca3d0b4ecc454cc4956c30c
@@ -13,6 +13,7 @@ jobs:
13
13
  - '3.1'
14
14
  - '3.2'
15
15
  - '3.3'
16
+ - '3.4'
16
17
  - jruby
17
18
  - truffleruby
18
19
  name: Ruby ${{ matrix.ruby }}
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-3.1
1
+ ruby-3.3
data/ChangeLog.md CHANGED
@@ -1,4 +1,8 @@
1
- ### 0.2.0 / 2024-XX-XX
1
+ ### 0.2.1 / 2025-02-14
2
+
3
+ * Use `require_relative` to improve load times.
4
+
5
+ ### 0.2.0 / 2024-07-22
2
6
 
3
7
  * Added {Ronin::DB::Advisory#host_names}.
4
8
  * Added {Ronin::DB::Advisory#ip_addresses}.
@@ -83,7 +87,7 @@
83
87
  * Include {Ronin::DB::Model::Importable} into {Ronin::DB::Service}.
84
88
  * Include {Ronin::DB::Model::Importable} into {Ronin::DB::Organization}.
85
89
  * Include {Ronin::DB::Model::HasName} into {Ronin::DB::Software} for the
86
- the {Ronin::DB::Model::HasName::ClassMethods#named .named} method.
90
+ {Ronin::DB::Model::HasName::ClassMethods#named .named} method.
87
91
  * Added missing `created_at` column and attribute to {Ronin::DB::Port}.
88
92
  * Added missing `created_at` column and attribute to {Ronin::DB::Service}.
89
93
  * Changed {Ronin::DB::OpenPort#to_s} to include
data/README.md CHANGED
@@ -14,7 +14,8 @@
14
14
  ## Description
15
15
 
16
16
  ronin-db-activerecord contains [ActiveRecord] models and migrations for the
17
- [Ronin Database][ronin-db].
17
+ [Ronin Database][ronin-db]. Provides database models storing and querying
18
+ network data, advisory data, credentials, and OSINT data.
18
19
 
19
20
  ## Features
20
21
 
@@ -204,7 +205,7 @@ local database console.
204
205
 
205
206
  ## License
206
207
 
207
- Copyright (c) 2022-2024 Hal Brodigan (postmodern.mod3@gmail.com)
208
+ Copyright (c) 2022-2025 Hal Brodigan (postmodern.mod3@gmail.com)
208
209
 
209
210
  ronin-db-activerecord is free software: you can redistribute it and/or modify
210
211
  it under the terms of the GNU Lesser General Public License as published
data/gemspec.yml CHANGED
@@ -1,11 +1,12 @@
1
1
  name: ronin-db-activerecord
2
- version: 0.2.0.rc1
2
+ version: 0.2.1
3
3
  summary: ActiveRecord backend for the Ronin Database
4
4
  description:
5
5
  ronin-db-activerecord contains ActiveRecord models and migrations for the
6
- Ronin Database.
6
+ Ronin Database. Provides database models storing and querying network data,
7
+ advisory data, credentials, and OSINT data.
7
8
 
8
- license: LGPL-3.0
9
+ license: LGPL-3.0-or-later
9
10
  authors: Postmodern
10
11
  email: postmodern.mod3@gmail.com
11
12
  homepage: https://ronin-rb.dev/
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
4
4
  #
5
- # Copyright (c) 2022-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2022-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db-activerecord is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,9 +18,9 @@
18
18
  # along with ronin-db-activerecord. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/model'
22
- require 'ronin/db/model/importable'
23
- require 'ronin/db/model/last_scanned_at'
21
+ require_relative 'model'
22
+ require_relative 'model/importable'
23
+ require_relative 'model/last_scanned_at'
24
24
 
25
25
  require 'active_record'
26
26
 
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
4
4
  #
5
- # Copyright (c) 2022-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2022-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db-activerecord is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,8 +18,8 @@
18
18
  # along with ronin-db-activerecord. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/model'
22
- require 'ronin/db/model/importable'
21
+ require_relative 'model'
22
+ require_relative 'model/importable'
23
23
 
24
24
  require 'active_record'
25
25
 
@@ -225,10 +225,10 @@ module Ronin
225
225
  end
226
226
  end
227
227
 
228
- require 'ronin/db/vulnerability'
229
- require 'ronin/db/mac_address'
230
- require 'ronin/db/ip_address'
231
- require 'ronin/db/open_port'
232
- require 'ronin/db/host_name'
233
- require 'ronin/db/url'
234
- require 'ronin/db/note'
228
+ require_relative 'vulnerability'
229
+ require_relative 'mac_address'
230
+ require_relative 'ip_address'
231
+ require_relative 'open_port'
232
+ require_relative 'host_name'
233
+ require_relative 'url'
234
+ require_relative 'note'
data/lib/ronin/db/arch.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
4
4
  #
5
- # Copyright (c) 2022-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2022-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db-activerecord is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,8 +18,8 @@
18
18
  # along with ronin-db-activerecord. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/model'
22
- require 'ronin/db/model/has_unique_name'
21
+ require_relative 'model'
22
+ require_relative 'model/has_unique_name'
23
23
 
24
24
  require 'active_record'
25
25
 
data/lib/ronin/db/asn.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
4
4
  #
5
- # Copyright (c) 2022-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2022-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db-activerecord is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,8 +18,8 @@
18
18
  # along with ronin-db-activerecord. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/model'
22
- require 'ronin/db/model/has_name'
21
+ require_relative 'model'
22
+ require_relative 'model/has_name'
23
23
 
24
24
  module Ronin
25
25
  module DB
@@ -223,4 +223,4 @@ module Ronin
223
223
  end
224
224
  end
225
225
 
226
- require 'ronin/db/ip_address'
226
+ require_relative 'ip_address'
data/lib/ronin/db/cert.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
4
4
  #
5
- # Copyright (c) 2022-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2022-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db-activerecord is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,8 +18,8 @@
18
18
  # along with ronin-db-activerecord. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/model'
22
- require 'ronin/db/model/importable'
21
+ require_relative 'model'
22
+ require_relative 'model/importable'
23
23
 
24
24
  module Ronin
25
25
  module DB
@@ -494,8 +494,8 @@ module Ronin
494
494
  end
495
495
  end
496
496
 
497
- require 'ronin/db/cert_issuer'
498
- require 'ronin/db/cert_subject'
499
- require 'ronin/db/cert_subject_alt_name'
500
- require 'ronin/db/open_port'
501
- require 'ronin/db/note'
497
+ require_relative 'cert_issuer'
498
+ require_relative 'cert_subject'
499
+ require_relative 'cert_subject_alt_name'
500
+ require_relative 'open_port'
501
+ require_relative 'note'
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
4
4
  #
5
- # Copyright (c) 2022-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2022-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db-activerecord is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,7 +18,7 @@
18
18
  # along with ronin-db-activerecord. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/cert_organization'
21
+ require_relative 'cert_organization'
22
22
 
23
23
  module Ronin
24
24
  module DB
@@ -75,4 +75,4 @@ module Ronin
75
75
  end
76
76
  end
77
77
 
78
- require 'ronin/db/cert'
78
+ require_relative 'cert'
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
4
4
  #
5
- # Copyright (c) 2022-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2022-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db-activerecord is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,9 +18,9 @@
18
18
  # along with ronin-db-activerecord. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/model'
22
- require 'ronin/db/model/has_unique_name'
23
- require 'ronin/db/model/importable'
21
+ require_relative 'model'
22
+ require_relative 'model/has_unique_name'
23
+ require_relative 'model/importable'
24
24
 
25
25
  module Ronin
26
26
  module DB
@@ -103,5 +103,5 @@ module Ronin
103
103
  end
104
104
  end
105
105
 
106
- require 'ronin/db/cert_subject_alt_name'
107
- require 'ronin/db/cert'
106
+ require_relative 'cert_subject_alt_name'
107
+ require_relative 'cert'
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
4
4
  #
5
- # Copyright (c) 2022-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2022-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db-activerecord is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,7 +18,7 @@
18
18
  # along with ronin-db-activerecord. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/model'
21
+ require_relative 'model'
22
22
 
23
23
  module Ronin
24
24
  module DB
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
4
4
  #
5
- # Copyright (c) 2022-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2022-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db-activerecord is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,7 +18,7 @@
18
18
  # along with ronin-db-activerecord. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/cert_organization'
21
+ require_relative 'cert_organization'
22
22
 
23
23
  module Ronin
24
24
  module DB
@@ -77,5 +77,5 @@ module Ronin
77
77
  end
78
78
  end
79
79
 
80
- require 'ronin/db/cert_name'
81
- require 'ronin/db/cert'
80
+ require_relative 'cert_name'
81
+ require_relative 'cert'
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
4
4
  #
5
- # Copyright (c) 2022-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2022-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db-activerecord is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,7 +18,7 @@
18
18
  # along with ronin-db-activerecord. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/model'
21
+ require_relative 'model'
22
22
 
23
23
  require 'ipaddr'
24
24
 
@@ -84,5 +84,5 @@ module Ronin
84
84
  end
85
85
  end
86
86
 
87
- require 'ronin/db/cert_name'
88
- require 'ronin/db/cert'
87
+ require_relative 'cert_name'
88
+ require_relative 'cert'
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
4
4
  #
5
- # Copyright (c) 2022-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2022-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db-activerecord is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,8 +18,8 @@
18
18
  # along with ronin-db-activerecord. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/model'
22
- require 'ronin/db/model/importable'
21
+ require_relative 'model'
22
+ require_relative 'model/importable'
23
23
 
24
24
  require 'active_record'
25
25
 
@@ -249,9 +249,9 @@ module Ronin
249
249
  end
250
250
  end
251
251
 
252
- require 'ronin/db/user_name'
253
- require 'ronin/db/email_address'
254
- require 'ronin/db/password'
255
- require 'ronin/db/service_credential'
256
- require 'ronin/db/web_credential'
257
- require 'ronin/db/note'
252
+ require_relative 'user_name'
253
+ require_relative 'email_address'
254
+ require_relative 'password'
255
+ require_relative 'service_credential'
256
+ require_relative 'web_credential'
257
+ require_relative 'note'
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
4
4
  #
5
- # Copyright (c) 2022-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2022-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db-activerecord is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,7 +18,7 @@
18
18
  # along with ronin-db-activerecord. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/model'
21
+ require_relative 'model'
22
22
 
23
23
  require 'active_record'
24
24
  require 'resolv'
@@ -95,4 +95,4 @@ module Ronin
95
95
  end
96
96
  end
97
97
 
98
- require 'ronin/db/dns_record'
98
+ require_relative 'dns_record'
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
4
4
  #
5
- # Copyright (c) 2022-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2022-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db-activerecord is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,7 +18,7 @@
18
18
  # along with ronin-db-activerecord. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/model'
21
+ require_relative 'model'
22
22
 
23
23
  require 'active_record'
24
24
 
@@ -73,4 +73,4 @@ module Ronin
73
73
  end
74
74
  end
75
75
 
76
- require 'ronin/db/dns_query'
76
+ require_relative 'dns_query'
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
4
4
  #
5
- # Copyright (c) 2022-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2022-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db-activerecord is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,8 +18,8 @@
18
18
  # along with ronin-db-activerecord. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/model'
22
- require 'ronin/db/model/importable'
21
+ require_relative 'model'
22
+ require_relative 'model/importable'
23
23
 
24
24
  require 'active_record'
25
25
  require 'uri/mailto'
@@ -354,10 +354,10 @@ module Ronin
354
354
  end
355
355
  end
356
356
 
357
- require 'ronin/db/user_name'
358
- require 'ronin/db/host_name'
359
- require 'ronin/db/personal_email_address'
360
- require 'ronin/db/organization_department'
361
- require 'ronin/db/organization_email_address'
362
- require 'ronin/db/organization_member'
363
- require 'ronin/db/note'
357
+ require_relative 'user_name'
358
+ require_relative 'host_name'
359
+ require_relative 'personal_email_address'
360
+ require_relative 'organization_department'
361
+ require_relative 'organization_email_address'
362
+ require_relative 'organization_member'
363
+ require_relative 'note'
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
4
4
  #
5
- # Copyright (c) 2022-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2022-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db-activerecord is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,9 +18,9 @@
18
18
  # along with ronin-db-activerecord. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/model'
22
- require 'ronin/db/model/importable'
23
- require 'ronin/db/model/last_scanned_at'
21
+ require_relative 'model'
22
+ require_relative 'model/importable'
23
+ require_relative 'model/last_scanned_at'
24
24
 
25
25
  require 'active_record'
26
26
  require 'uri/rfc2396_parser'
@@ -261,9 +261,9 @@ module Ronin
261
261
  end
262
262
  end
263
263
 
264
- require 'ronin/db/host_name_ip_address'
265
- require 'ronin/db/ip_address'
266
- require 'ronin/db/vulnerability'
267
- require 'ronin/db/advisory'
268
- require 'ronin/db/organization_host_name'
269
- require 'ronin/db/note'
264
+ require_relative 'host_name_ip_address'
265
+ require_relative 'ip_address'
266
+ require_relative 'vulnerability'
267
+ require_relative 'advisory'
268
+ require_relative 'organization_host_name'
269
+ require_relative 'note'
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
4
4
  #
5
- # Copyright (c) 2022-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2022-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db-activerecord is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,7 +18,7 @@
18
18
  # along with ronin-db-activerecord. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/model'
21
+ require_relative 'model'
22
22
 
23
23
  require 'active_record'
24
24
 
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
4
4
  #
5
- # Copyright (c) 2022-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2022-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db-activerecord is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,8 +18,8 @@
18
18
  # along with ronin-db-activerecord. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/model'
22
- require 'ronin/db/model/has_unique_name'
21
+ require_relative 'model'
22
+ require_relative 'model/has_unique_name'
23
23
 
24
24
  require 'active_record'
25
25
 
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
4
4
  #
5
- # Copyright (c) 2022-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2022-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db-activerecord is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,7 +18,7 @@
18
18
  # along with ronin-db-activerecord. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/model'
21
+ require_relative 'model'
22
22
 
23
23
  require 'active_record'
24
24
  require 'uri/query_params'
@@ -75,5 +75,5 @@ module Ronin
75
75
  end
76
76
  end
77
77
 
78
- require 'ronin/db/http_query_param_name'
79
- require 'ronin/db/http_request'
78
+ require_relative 'http_query_param_name'
79
+ require_relative 'http_request'
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
4
4
  #
5
- # Copyright (c) 2022-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2022-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db-activerecord is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,8 +18,8 @@
18
18
  # along with ronin-db-activerecord. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/model'
22
- require 'ronin/db/model/has_unique_name'
21
+ require_relative 'model'
22
+ require_relative 'model/has_unique_name'
23
23
 
24
24
  require 'active_record'
25
25
 
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
4
4
  #
5
- # Copyright (c) 2022-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2022-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db-activerecord is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,7 +18,7 @@
18
18
  # along with ronin-db-activerecord. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/model'
21
+ require_relative 'model'
22
22
 
23
23
  require 'active_record'
24
24
  require 'resolv'
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
4
4
  #
5
- # Copyright (c) 2022-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2022-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db-activerecord is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,7 +18,7 @@
18
18
  # along with ronin-db-activerecord. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/model'
21
+ require_relative 'model'
22
22
 
23
23
  require 'active_record'
24
24
 
@@ -74,5 +74,5 @@ module Ronin
74
74
  end
75
75
  end
76
76
 
77
- require 'ronin/db/http_header_name'
78
- require 'ronin/db/http_request'
77
+ require_relative 'http_header_name'
78
+ require_relative 'http_request'