ronin-db-activerecord 0.1.0.beta1 → 0.1.0

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 (127) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +1 -0
  3. data/.yardopts +1 -1
  4. data/README.md +69 -34
  5. data/db/migrate/0001_create_ronin_ip_address_mac_addresses_table.rb +1 -1
  6. data/db/migrate/0002_create_ronin_vulnerabilities_table.rb +1 -1
  7. data/db/migrate/0003_create_ronin_url_schemes_table.rb +1 -1
  8. data/db/migrate/0004_create_ronin_url_query_param_names_table.rb +1 -1
  9. data/db/migrate/0005_create_ronin_user_names_table.rb +1 -1
  10. data/db/migrate/0006_create_ronin_software_vendors_table.rb +1 -1
  11. data/db/migrate/0007_create_ronin_advisories_table.rb +1 -1
  12. data/db/migrate/0008_create_ronin_host_name_ip_addresses_table.rb +1 -1
  13. data/db/migrate/0009_create_ronin_host_names_table.rb +1 -1
  14. data/db/migrate/0010_create_ronin_arches_table.rb +1 -1
  15. data/db/migrate/0011_create_ronin_email_addresses_table.rb +1 -1
  16. data/db/migrate/0012_create_ronin_oses_table.rb +1 -1
  17. data/db/migrate/0013_create_ronin_organizations_table.rb +1 -1
  18. data/db/migrate/0014_create_ronin_ip_addresses_table.rb +1 -1
  19. data/db/migrate/0015_create_ronin_os_guesses_table.rb +1 -1
  20. data/db/migrate/0016_create_ronin_url_query_params_table.rb +1 -1
  21. data/db/migrate/0017_create_ronin_passwords_table.rb +1 -1
  22. data/db/migrate/0018_create_ronin_open_ports_table.rb +1 -1
  23. data/db/migrate/0019_create_ronin_urls_table.rb +1 -1
  24. data/db/migrate/0020_create_ronin_softwares_table.rb +1 -1
  25. data/db/migrate/0021_create_ronin_mac_addresses_table.rb +1 -1
  26. data/db/migrate/0022_create_ronin_countries_table.rb +1 -1
  27. data/db/migrate/0023_create_ronin_services_table.rb +1 -1
  28. data/db/migrate/0024_create_ronin_credentials_table.rb +1 -1
  29. data/db/migrate/0025_create_ronin_ports_table.rb +1 -1
  30. data/db/migrate/0026_create_ronin_asns_table.rb +1 -1
  31. data/db/migrate/0027_create_ronin_http_query_param_names_table.rb +1 -1
  32. data/db/migrate/0028_create_ronin_http_query_params_table.rb +1 -1
  33. data/db/migrate/0029_create_ronin_http_header_names_table.rb +1 -1
  34. data/db/migrate/0030_create_ronin_http_request_headers_table.rb +1 -1
  35. data/db/migrate/0031_create_ronin_http_response_headers_table.rb +1 -1
  36. data/db/migrate/0032_create_ronin_http_requests_table.rb +1 -1
  37. data/db/migrate/0033_create_ronin_http_responses_table.rb +1 -1
  38. data/db/migrate/0034_create_ronin_service_credentials_table.rb +1 -1
  39. data/db/migrate/0035_create_ronin_web_credentials_table.rb +1 -1
  40. data/gemspec.yml +3 -3
  41. data/lib/ronin/db/address.rb +1 -1
  42. data/lib/ronin/db/advisory.rb +2 -2
  43. data/lib/ronin/db/arch.rb +1 -1
  44. data/lib/ronin/db/asn.rb +1 -1
  45. data/lib/ronin/db/credential.rb +1 -1
  46. data/lib/ronin/db/email_address.rb +1 -1
  47. data/lib/ronin/db/host_name.rb +2 -2
  48. data/lib/ronin/db/host_name_ip_address.rb +1 -1
  49. data/lib/ronin/db/http_header_name.rb +1 -1
  50. data/lib/ronin/db/http_query_param.rb +1 -1
  51. data/lib/ronin/db/http_query_param_name.rb +1 -1
  52. data/lib/ronin/db/http_request.rb +1 -1
  53. data/lib/ronin/db/http_request_header.rb +1 -1
  54. data/lib/ronin/db/http_response.rb +2 -2
  55. data/lib/ronin/db/http_response_header.rb +1 -1
  56. data/lib/ronin/db/ip_address.rb +1 -1
  57. data/lib/ronin/db/ip_address_mac_address.rb +1 -1
  58. data/lib/ronin/db/mac_address.rb +1 -1
  59. data/lib/ronin/db/migrations.rb +1 -1
  60. data/lib/ronin/db/model/has_name.rb +1 -1
  61. data/lib/ronin/db/model/has_unique_name.rb +2 -2
  62. data/lib/ronin/db/model/importable.rb +1 -1
  63. data/lib/ronin/db/model/last_scanned_at.rb +1 -1
  64. data/lib/ronin/db/model.rb +1 -1
  65. data/lib/ronin/db/models.rb +1 -1
  66. data/lib/ronin/db/open_port.rb +1 -1
  67. data/lib/ronin/db/organization.rb +1 -1
  68. data/lib/ronin/db/os.rb +1 -1
  69. data/lib/ronin/db/os_guess.rb +1 -1
  70. data/lib/ronin/db/password.rb +1 -1
  71. data/lib/ronin/db/port.rb +1 -1
  72. data/lib/ronin/db/schema_migration.rb +1 -1
  73. data/lib/ronin/db/service.rb +1 -1
  74. data/lib/ronin/db/service_credential.rb +1 -1
  75. data/lib/ronin/db/software.rb +1 -1
  76. data/lib/ronin/db/software_vendor.rb +1 -1
  77. data/lib/ronin/db/url.rb +1 -1
  78. data/lib/ronin/db/url_query_param.rb +1 -1
  79. data/lib/ronin/db/url_query_param_name.rb +1 -1
  80. data/lib/ronin/db/url_scheme.rb +1 -1
  81. data/lib/ronin/db/user_name.rb +1 -1
  82. data/lib/ronin/db/vulnerability.rb +1 -1
  83. data/lib/ronin/db/web_credential.rb +1 -1
  84. data/ronin-db-activerecord.gemspec +2 -1
  85. metadata +5 -87
  86. data/lib/ronin/db/root.rb +0 -28
  87. data/spec/advisory_spec.rb +0 -277
  88. data/spec/arch_spec.rb +0 -228
  89. data/spec/asn_spec.rb +0 -504
  90. data/spec/credential_spec.rb +0 -362
  91. data/spec/email_address_spec.rb +0 -372
  92. data/spec/host_name_ip_address_spec.rb +0 -8
  93. data/spec/host_name_spec.rb +0 -207
  94. data/spec/http_header_name_spec.rb +0 -25
  95. data/spec/http_query_param_name_spec.rb +0 -25
  96. data/spec/http_query_param_spec.rb +0 -104
  97. data/spec/http_request_header_spec.rb +0 -72
  98. data/spec/http_request_spec.rb +0 -168
  99. data/spec/http_response_header_spec.rb +0 -74
  100. data/spec/http_response_spec.rb +0 -103
  101. data/spec/ip_address_mac_addresses_spec.rb +0 -8
  102. data/spec/ip_address_spec.rb +0 -386
  103. data/spec/mac_address_spec.rb +0 -67
  104. data/spec/migrations_spec.rb +0 -122
  105. data/spec/model/has_name_spec.rb +0 -65
  106. data/spec/model/has_unique_name_spec.rb +0 -61
  107. data/spec/model/importable_spec.rb +0 -105
  108. data/spec/models_spec.rb +0 -60
  109. data/spec/open_port_spec.rb +0 -87
  110. data/spec/organization_spec.rb +0 -10
  111. data/spec/os_guess_spec.rb +0 -43
  112. data/spec/os_spec.rb +0 -114
  113. data/spec/password_spec.rb +0 -81
  114. data/spec/port_spec.rb +0 -102
  115. data/spec/schema_migration_spec.rb +0 -8
  116. data/spec/service_credential_spec.rb +0 -43
  117. data/spec/service_spec.rb +0 -39
  118. data/spec/software_spec.rb +0 -76
  119. data/spec/software_vendor_spec.rb +0 -33
  120. data/spec/spec_helper.rb +0 -13
  121. data/spec/url_query_param_name_spec.rb +0 -25
  122. data/spec/url_query_param_spec.rb +0 -110
  123. data/spec/url_scheme_spec.rb +0 -39
  124. data/spec/url_spec.rb +0 -951
  125. data/spec/user_name_spec.rb +0 -54
  126. data/spec/vulnerability_spec.rb +0 -8
  127. data/spec/web_credential_spec.rb +0 -72
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd392f2b9e53d8ff6b173b9cd94446c697f9599dbc2b0856be0573348b165f24
4
- data.tar.gz: a9bf2c3f9514573d96051989add083a7b9cf21ffa6566291ed137ef18cc0f2e1
3
+ metadata.gz: 961854d0ed83159a94b3ad04616b608a43c340fb9f45113cbc5002e1b3df710e
4
+ data.tar.gz: dab49d6cf9c686814f16f64558ded87a0ee9e44f2b4c27cb7253965e6f2e0073
5
5
  SHA512:
6
- metadata.gz: dd1e3a5d8de8cbf215ccdca2792e009a721d5c5e58ec7a51cb9544af6143db057db4ec0ebd2ea705d1a77163c2fc1e1f8cee19a62ca5acb22108074080283227
7
- data.tar.gz: 24c12a357299f9644036bf0bf60514b154f08f747192dcb4b2a158e8dfd0a5454795f67664b6540a118c0fb51fced982d55a57b46f041383aabab2a54afa48d5
6
+ metadata.gz: 790935eefed1bcd41ea104f30b6e2e44acc4f1f3e06e8be58e9ba6bb56a3d775a8a268c7970d8dd6399e1cac75a6d8c8c2b8613fe0ceed5d920362d0b6a86344
7
+ data.tar.gz: 8e32ea9e4cb27ce1d0f172c43170bf3d7ac3599f703bc5ecdaaeb095d73e502bf6bdc405a4ca42fcb263ac156d069aec401ff2eb356512a1bf2553a002198606
@@ -21,6 +21,7 @@ jobs:
21
21
  uses: ruby/setup-ruby@v1
22
22
  with:
23
23
  ruby-version: ${{ matrix.ruby }}
24
+ bundler-cache: true
24
25
  - name: Install libsqlite3
25
26
  run: |
26
27
  sudo apt update -y && \
data/.yardopts CHANGED
@@ -1 +1 @@
1
- --markup markdown --title 'ronin-db-activerecord Documentation' --protected
1
+ --markup markdown --title 'Ronin::DB Documentation' --protected
data/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  [![CI](https://github.com/ronin-rb/ronin-db-activerecord/actions/workflows/ruby.yml/badge.svg)](https://github.com/ronin-rb/ronin-db-activerecord/actions/workflows/ruby.yml)
4
4
  [![Code Climate](https://codeclimate.com/github/ronin-rb/ronin-db-activerecord.svg)](https://codeclimate.com/github/ronin-rb/ronin-db-activerecord)
5
+ [![Gem Version](https://badge.fury.io/rb/ronin-db-activerecord.svg)](https://badge.fury.io/rb/ronin-db-activerecord)
5
6
 
6
7
  * [Website](https://ronin-rb.dev/)
7
8
  * [Source](https://github.com/ronin-rb/ronin-db-activerecord)
@@ -20,42 +21,76 @@ ronin-db-activerecord contains [ActiveRecord] models and migrations for the
20
21
 
21
22
  * Can be used both as a standalone library or in a web app.
22
23
  * Provides common [ActiveRecord] models:
23
- * {Ronin::DB::Advisory}
24
- * {Ronin::DB::Arch}
25
- * {Ronin::DB::ASN}
26
- * {Ronin::DB::EmailAddress}
27
- * {Ronin::DB::HostName}
28
- * {Ronin::DB::HostNameIPAddress}
29
- * {Ronin::DB::HTTPHeaderName}
30
- * {Ronin::DB::HTTPQueryParam}
31
- * {Ronin::DB::HTTPQueryParamName}
32
- * {Ronin::DB::HTTPRequest}
33
- * {Ronin::DB::HTTPRequestHeader}
34
- * {Ronin::DB::HTTPResponse}
35
- * {Ronin::DB::HTTPResponseHeader}
36
- * {Ronin::DB::IPAddress}
37
- * {Ronin::DB::IPAddressMACAddress}
38
- * {Ronin::DB::MACAddress}
39
- * {Ronin::DB::OpenPort}
40
- * {Ronin::DB::Organization}
41
- * {Ronin::DB::OS}
42
- * {Ronin::DB::OSGuess}
43
- * {Ronin::DB::Password}
44
- * {Ronin::DB::Port}
45
- * {Ronin::DB::Service}
46
- * {Ronin::DB::ServiceCredential}
47
- * {Ronin::DB::Software}
48
- * {Ronin::DB::SoftwareVendor}
49
- * {Ronin::DB::URL}
50
- * {Ronin::DB::URLQueryParam}
51
- * {Ronin::DB::URLQueryParamName}
52
- * {Ronin::DB::URLScheme}
53
- * {Ronin::DB::UserName}
54
- * {Ronin::DB::Vulnerability}
55
- * {Ronin::DB::WebCredential}
24
+ * [Ronin::DB::Advisory]
25
+ * [Ronin::DB::Arch]
26
+ * [Ronin::DB::ASN]
27
+ * [Ronin::DB::EmailAddress]
28
+ * [Ronin::DB::HostName]
29
+ * [Ronin::DB::HostNameIPAddress]
30
+ * [Ronin::DB::HTTPHeaderName]
31
+ * [Ronin::DB::HTTPQueryParam]
32
+ * [Ronin::DB::HTTPQueryParamName]
33
+ * [Ronin::DB::HTTPRequest]
34
+ * [Ronin::DB::HTTPRequestHeader]
35
+ * [Ronin::DB::HTTPResponse]
36
+ * [Ronin::DB::HTTPResponseHeader]
37
+ * [Ronin::DB::IPAddress]
38
+ * [Ronin::DB::IPAddressMACAddress]
39
+ * [Ronin::DB::MACAddress]
40
+ * [Ronin::DB::OpenPort]
41
+ * [Ronin::DB::Organization]
42
+ * [Ronin::DB::OS]
43
+ * [Ronin::DB::OSGuess]
44
+ * [Ronin::DB::Password]
45
+ * [Ronin::DB::Port]
46
+ * [Ronin::DB::Service]
47
+ * [Ronin::DB::ServiceCredential]
48
+ * [Ronin::DB::Software]
49
+ * [Ronin::DB::SoftwareVendor]
50
+ * [Ronin::DB::URL]
51
+ * [Ronin::DB::URLQueryParam]
52
+ * [Ronin::DB::URLQueryParamName]
53
+ * [Ronin::DB::URLScheme]
54
+ * [Ronin::DB::UserName]
55
+ * [Ronin::DB::Vulnerability]
56
+ * [Ronin::DB::WebCredential]
56
57
  * Has 96% documentation coverage.
57
58
  * Has 99% test coverage.
58
59
 
60
+ [Ronin::DB::Advisory]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/Advisory.html
61
+ [Ronin::DB::Arch]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/Arch.html
62
+ [Ronin::DB::ASN]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/ASN.html
63
+ [Ronin::DB::EmailAddress]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/EmailAddress.html
64
+ [Ronin::DB::HostName]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/HostName.html
65
+ [Ronin::DB::HostNameIPAddress]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/HostNameIPAddress.html
66
+ [Ronin::DB::HTTPHeaderName]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/HTTPHeaderName.html
67
+ [Ronin::DB::HTTPQueryParam]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/HTTPQueryParam.html
68
+ [Ronin::DB::HTTPQueryParamName]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/HTTPQueryParamName.html
69
+ [Ronin::DB::HTTPRequest]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/HTTPRequest.html
70
+ [Ronin::DB::HTTPRequestHeader]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/HTTPRequestHeader.html
71
+ [Ronin::DB::HTTPResponse]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/HTTPResponse.html
72
+ [Ronin::DB::HTTPResponseHeader]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/HTTPResponseHeader.html
73
+ [Ronin::DB::IPAddress]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/IPAddress.html
74
+ [Ronin::DB::IPAddressMACAddress]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/IPAddressMACAddress.html
75
+ [Ronin::DB::MACAddress]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/MACAddress.html
76
+ [Ronin::DB::OpenPort]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/OpenPort.html
77
+ [Ronin::DB::Organization]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/Organization.html
78
+ [Ronin::DB::OS]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/OS.html
79
+ [Ronin::DB::OSGuess]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/OSGuess.html
80
+ [Ronin::DB::Password]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/Password.html
81
+ [Ronin::DB::Port]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/Port.html
82
+ [Ronin::DB::Service]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/Service.html
83
+ [Ronin::DB::ServiceCredential]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/ServiceCredential.html
84
+ [Ronin::DB::Software]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/Software.html
85
+ [Ronin::DB::SoftwareVendor]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/SoftwareVendor.html
86
+ [Ronin::DB::URL]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/URL.html
87
+ [Ronin::DB::URLQueryParam]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/URLQueryParam.html
88
+ [Ronin::DB::URLQueryParamName]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/URLQueryParamName.html
89
+ [Ronin::DB::URLScheme]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/URLScheme.html
90
+ [Ronin::DB::UserName]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/UserName.html
91
+ [Ronin::DB::Vulnerability]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/Vulnerability.html
92
+ [Ronin::DB::WebCredential]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/WebCredential.html
93
+
59
94
  ## Examples
60
95
 
61
96
  Create a database:
@@ -122,7 +157,7 @@ local database console.
122
157
 
123
158
  ## License
124
159
 
125
- Copyright (c) 2022 Hal Brodigan (postmodern.mod3@gmail.com)
160
+ Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3@gmail.com)
126
161
 
127
162
  ronin-db-activerecord is free software: you can redistribute it and/or modify
128
163
  it under the terms of the GNU Lesser General Public License as published
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
@@ -2,7 +2,7 @@
2
2
  # ronin-exploits - A Ruby library for ronin-rb that provides exploitation and
3
3
  # payload crafting functionality.
4
4
  #
5
- # Copyright (c) 2007-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2007-2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # This file is part of ronin-exploits.
8
8
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
@@ -2,7 +2,7 @@
2
2
  # ronin-exploits - A Ruby library for ronin-rb that provides exploitation and
3
3
  # payload crafting functionality.
4
4
  #
5
- # Copyright (c) 2007-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2007-2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # This file is part of ronin-exploits.
8
8
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
3
3
  #
4
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
4
+ # Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
5
  #
6
6
  # This file is part of ronin-db-activerecord.
7
7
  #
data/gemspec.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  name: ronin-db-activerecord
2
- version: 0.1.0.beta1
2
+ version: 0.1.0
3
3
  summary: ActiveRecord backend for the Ronin Database
4
4
  description:
5
5
  ronin-db-activerecord contains ActiveRecord models and migrations for the
@@ -12,10 +12,10 @@ homepage: https://ronin-rb.dev/
12
12
  has_yard: true
13
13
 
14
14
  metadata:
15
- documentation_uri: https://rubydoc.info/gems/ronin-db-activerecord
15
+ documentation_uri: https://ronin-rb.dev/docs/ronin-db-activerecord
16
16
  source_code_uri: https://github.com/ronin-rb/ronin-db-activerecord
17
17
  bug_tracker_uri: https://github.com/ronin-rb/ronin-db-activerecord/issues
18
- changelog_uri: https://github.com/ronin-rb/ronin-db-activerecord/blob/master/ChangeLog.md
18
+ changelog_uri: https://github.com/ronin-rb/ronin-db-activerecord/blob/main/ChangeLog.md
19
19
  rubygems_mfa_required: 'true'
20
20
 
21
21
  required_ruby_version: ">= 3.0.0"
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
4
4
  #
5
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2022-2023 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
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
4
4
  #
5
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2022-2023 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
@@ -72,7 +72,7 @@ module Ronin
72
72
  #
73
73
  module ID
74
74
  #
75
- # Parses a security avdisory ID.
75
+ # Parses a security advisory ID.
76
76
  #
77
77
  # @param [String] string
78
78
  # The security advisory ID String to split.
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 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2022-2023 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
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 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2022-2023 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
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
4
4
  #
5
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2022-2023 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
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
4
4
  #
5
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2022-2023 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
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
4
4
  #
5
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2022-2023 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
@@ -38,7 +38,7 @@ module Ronin
38
38
  include Model::LastScannedAt
39
39
 
40
40
  # @!attribute [rw] id
41
- # The primary ID of the host nmae.
41
+ # The primary ID of the host name.
42
42
  #
43
43
  # @return [Integer]
44
44
  attribute :id, :integer
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
4
4
  #
5
- # Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2022-2023 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