ronin-db-activerecord 0.2.0 → 0.2.1

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.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +1 -0
  3. data/ChangeLog.md +5 -1
  4. data/README.md +1 -1
  5. data/gemspec.yml +2 -2
  6. data/lib/ronin/db/address.rb +4 -4
  7. data/lib/ronin/db/advisory.rb +10 -10
  8. data/lib/ronin/db/arch.rb +3 -3
  9. data/lib/ronin/db/asn.rb +4 -4
  10. data/lib/ronin/db/cert.rb +8 -8
  11. data/lib/ronin/db/cert_issuer.rb +3 -3
  12. data/lib/ronin/db/cert_name.rb +6 -6
  13. data/lib/ronin/db/cert_organization.rb +2 -2
  14. data/lib/ronin/db/cert_subject.rb +4 -4
  15. data/lib/ronin/db/cert_subject_alt_name.rb +4 -4
  16. data/lib/ronin/db/credential.rb +9 -9
  17. data/lib/ronin/db/dns_query.rb +3 -3
  18. data/lib/ronin/db/dns_record.rb +3 -3
  19. data/lib/ronin/db/email_address.rb +10 -10
  20. data/lib/ronin/db/host_name.rb +10 -10
  21. data/lib/ronin/db/host_name_ip_address.rb +2 -2
  22. data/lib/ronin/db/http_header_name.rb +3 -3
  23. data/lib/ronin/db/http_query_param.rb +4 -4
  24. data/lib/ronin/db/http_query_param_name.rb +3 -3
  25. data/lib/ronin/db/http_request.rb +2 -2
  26. data/lib/ronin/db/http_request_header.rb +4 -4
  27. data/lib/ronin/db/http_response.rb +3 -3
  28. data/lib/ronin/db/http_response_header.rb +4 -4
  29. data/lib/ronin/db/ip_address.rb +15 -15
  30. data/lib/ronin/db/ip_address_mac_address.rb +2 -2
  31. data/lib/ronin/db/mac_address.rb +7 -7
  32. data/lib/ronin/db/migrations.rb +1 -1
  33. data/lib/ronin/db/model/has_name.rb +2 -2
  34. data/lib/ronin/db/model/has_unique_name.rb +2 -2
  35. data/lib/ronin/db/model/importable.rb +1 -1
  36. data/lib/ronin/db/model/last_scanned_at.rb +1 -1
  37. data/lib/ronin/db/model.rb +1 -1
  38. data/lib/ronin/db/models.rb +57 -57
  39. data/lib/ronin/db/note.rb +19 -19
  40. data/lib/ronin/db/open_port.rb +10 -10
  41. data/lib/ronin/db/organization.rb +13 -13
  42. data/lib/ronin/db/organization_customer.rb +4 -4
  43. data/lib/ronin/db/organization_department.rb +7 -7
  44. data/lib/ronin/db/organization_email_address.rb +4 -4
  45. data/lib/ronin/db/organization_host_name.rb +4 -4
  46. data/lib/ronin/db/organization_ip_address.rb +4 -4
  47. data/lib/ronin/db/organization_member.rb +6 -6
  48. data/lib/ronin/db/organization_phone_number.rb +4 -4
  49. data/lib/ronin/db/organization_street_address.rb +4 -4
  50. data/lib/ronin/db/os.rb +5 -5
  51. data/lib/ronin/db/os_guess.rb +4 -4
  52. data/lib/ronin/db/password.rb +5 -5
  53. data/lib/ronin/db/person.rb +9 -9
  54. data/lib/ronin/db/personal_connection.rb +4 -4
  55. data/lib/ronin/db/personal_email_address.rb +4 -4
  56. data/lib/ronin/db/personal_phone_number.rb +5 -5
  57. data/lib/ronin/db/personal_street_address.rb +4 -4
  58. data/lib/ronin/db/phone_number.rb +9 -9
  59. data/lib/ronin/db/port.rb +4 -4
  60. data/lib/ronin/db/service.rb +5 -5
  61. data/lib/ronin/db/service_credential.rb +4 -4
  62. data/lib/ronin/db/software.rb +5 -5
  63. data/lib/ronin/db/software_vendor.rb +3 -3
  64. data/lib/ronin/db/street_address.rb +7 -7
  65. data/lib/ronin/db/url.rb +14 -14
  66. data/lib/ronin/db/url_query_param.rb +4 -4
  67. data/lib/ronin/db/url_query_param_name.rb +3 -3
  68. data/lib/ronin/db/url_scheme.rb +3 -3
  69. data/lib/ronin/db/user_name.rb +8 -8
  70. data/lib/ronin/db/vulnerability.rb +6 -6
  71. data/lib/ronin/db/web_credential.rb +4 -4
  72. data/lib/ronin/db/web_vuln.rb +3 -3
  73. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 046d7b55f13cea0416cc4644fa5fa530b7b986faa50bc14a3bce1497371f249a
4
- data.tar.gz: 0b2658ea88b1d38ba4d8dfbaf3bb1cdf033fc182848a241134bd3df58e0e68dd
3
+ metadata.gz: bd4124ca7123adf2f4cda81e7acbc6fc7c40d354d9cc1251b70f031197e30265
4
+ data.tar.gz: 3c917f299f83348476e0141585758053f1fb17c89eaaf81414e11f72ded2adb6
5
5
  SHA512:
6
- metadata.gz: 00fb2566cb4864e10f9e4c542aef827e7a65250e6b2244431582dedce82e2bf1e3de29ac551f20c78d6a51c3f80ae05da1a69352edbb78992ba0cfaa316c954b
7
- data.tar.gz: 2d68d500f1931d77c5e05af63af9ec984a925a43d2d199c508a595f785477dca8bb97dd1d72555e68269f08f5064e9ed5f89db79e1abb119f0dadd4d23710035
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/ChangeLog.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 0.2.1 / 2025-02-14
2
+
3
+ * Use `require_relative` to improve load times.
4
+
1
5
  ### 0.2.0 / 2024-07-22
2
6
 
3
7
  * Added {Ronin::DB::Advisory#host_names}.
@@ -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
@@ -205,7 +205,7 @@ local database console.
205
205
 
206
206
  ## License
207
207
 
208
- Copyright (c) 2022-2024 Hal Brodigan (postmodern.mod3@gmail.com)
208
+ Copyright (c) 2022-2025 Hal Brodigan (postmodern.mod3@gmail.com)
209
209
 
210
210
  ronin-db-activerecord is free software: you can redistribute it and/or modify
211
211
  it under the terms of the GNU Lesser General Public License as published
data/gemspec.yml CHANGED
@@ -1,12 +1,12 @@
1
1
  name: ronin-db-activerecord
2
- version: 0.2.0
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
6
  Ronin Database. Provides database models storing and querying network data,
7
7
  advisory data, credentials, and OSINT data.
8
8
 
9
- license: LGPL-3.0
9
+ license: LGPL-3.0-or-later
10
10
  authors: Postmodern
11
11
  email: postmodern.mod3@gmail.com
12
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'
@@ -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
 
@@ -88,4 +88,4 @@ module Ronin
88
88
  end
89
89
  end
90
90
 
91
- require 'ronin/db/http_request'
91
+ require_relative 'http_request'