ronin-core 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 (61) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +1 -0
  3. data/ChangeLog.md +6 -0
  4. data/README.md +4 -4
  5. data/gemspec.yml +2 -1
  6. data/lib/ronin/core/class_registry.rb +1 -1
  7. data/lib/ronin/core/cli/banner.rb +1 -1
  8. data/lib/ronin/core/cli/command.rb +1 -1
  9. data/lib/ronin/core/cli/command_shell/command.rb +2 -2
  10. data/lib/ronin/core/cli/command_shell.rb +3 -3
  11. data/lib/ronin/core/cli/completion_command.rb +2 -2
  12. data/lib/ronin/core/cli/generator/options/author.rb +2 -2
  13. data/lib/ronin/core/cli/generator/options/description.rb +1 -1
  14. data/lib/ronin/core/cli/generator/options/reference.rb +1 -1
  15. data/lib/ronin/core/cli/generator/options/summary.rb +1 -1
  16. data/lib/ronin/core/cli/generator.rb +2 -2
  17. data/lib/ronin/core/cli/help/banner.rb +2 -2
  18. data/lib/ronin/core/cli/logging.rb +1 -1
  19. data/lib/ronin/core/cli/options/param.rb +1 -1
  20. data/lib/ronin/core/cli/options/values/arches.rb +1 -1
  21. data/lib/ronin/core/cli/options/values/oses.rb +1 -1
  22. data/lib/ronin/core/cli/printing/arch.rb +1 -1
  23. data/lib/ronin/core/cli/printing/metadata.rb +1 -1
  24. data/lib/ronin/core/cli/printing/os.rb +1 -1
  25. data/lib/ronin/core/cli/printing/params.rb +2 -2
  26. data/lib/ronin/core/cli/ruby_shell.rb +2 -2
  27. data/lib/ronin/core/cli/shell.rb +2 -2
  28. data/lib/ronin/core/git.rb +1 -1
  29. data/lib/ronin/core/home.rb +1 -1
  30. data/lib/ronin/core/metadata/authors/author.rb +1 -1
  31. data/lib/ronin/core/metadata/authors.rb +2 -2
  32. data/lib/ronin/core/metadata/description.rb +1 -1
  33. data/lib/ronin/core/metadata/id.rb +1 -1
  34. data/lib/ronin/core/metadata/references.rb +1 -1
  35. data/lib/ronin/core/metadata/summary.rb +1 -1
  36. data/lib/ronin/core/metadata/version.rb +1 -1
  37. data/lib/ronin/core/output_formats/csv.rb +2 -2
  38. data/lib/ronin/core/output_formats/json.rb +2 -2
  39. data/lib/ronin/core/output_formats/ndjson.rb +2 -2
  40. data/lib/ronin/core/output_formats/output_dir.rb +2 -2
  41. data/lib/ronin/core/output_formats/output_file.rb +2 -2
  42. data/lib/ronin/core/output_formats/output_format.rb +1 -1
  43. data/lib/ronin/core/output_formats/txt.rb +2 -2
  44. data/lib/ronin/core/output_formats.rb +14 -5
  45. data/lib/ronin/core/params/exceptions.rb +1 -1
  46. data/lib/ronin/core/params/mixin.rb +4 -4
  47. data/lib/ronin/core/params/param.rb +1 -1
  48. data/lib/ronin/core/params/types/boolean.rb +2 -2
  49. data/lib/ronin/core/params/types/enum.rb +2 -2
  50. data/lib/ronin/core/params/types/float.rb +2 -2
  51. data/lib/ronin/core/params/types/integer.rb +2 -2
  52. data/lib/ronin/core/params/types/numeric.rb +2 -2
  53. data/lib/ronin/core/params/types/regexp.rb +2 -2
  54. data/lib/ronin/core/params/types/string.rb +2 -2
  55. data/lib/ronin/core/params/types/type.rb +2 -2
  56. data/lib/ronin/core/params/types/uri.rb +2 -2
  57. data/lib/ronin/core/params/types.rb +9 -9
  58. data/lib/ronin/core/params.rb +2 -2
  59. data/lib/ronin/core/system.rb +1 -1
  60. data/lib/ronin/core/version.rb +2 -2
  61. metadata +18 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 67ba5381b0fd191d3ac30fc219dbffb85174430729131e1b3709061df914521f
4
- data.tar.gz: 27087099a17aa0bbca2f2b712c5609c5abb65ff7a6f987f3baf37333bf7d0a6a
3
+ metadata.gz: '0789a95f30eb53d1f40e3518d70f83834a547484505aac92e5d9fc0fedf15ed8'
4
+ data.tar.gz: 6c2ba05560b4fc1a77b573349fc08e57860c5e0f7712709130dd29566ecc1d97
5
5
  SHA512:
6
- metadata.gz: 86f9b85a7c524d61b59c6a21a3592008fdaba09568c451b2abdfc8294134ec0019640448b1e3fffc01477466479dc851b45ecfbbcb66e8aa16a92f7077575b12
7
- data.tar.gz: 47197df3c99d10271bd55930bc65469655fc2d68c05c1a4ee93e8dd92b4cc7c889bff6fbedb2a824ea9d8a99529a9cb665d5f9f94268780e8bee64b548b6ff35
6
+ metadata.gz: afb7c9f0805c40bc762fd5a128ea97194b3021ee9b86ab4d9b1ad2c0b8ffcce4789a1e36326bb196215de77286ea78672dfbf051dc56c8f18681f3c6384084b2
7
+ data.tar.gz: 4ac1b43c1a7a06ddfeb2c6575a6e08d5f502c03c73e6cc7d26d8716ffb201a14a615d4d98bb576a7137f907d81bf09ab60f2a200e2e344e6daeab95aeee4234f
@@ -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,9 @@
1
+ ### 0.2.1 / 2025-02-14
2
+
3
+ * Added the `csv` gem as a dependency for Bundler and Ruby 3.4.0.
4
+ * Use `require_relative` to improve load times.
5
+ * Documentation improvements.
6
+
1
7
  ### 0.2.0 / 2024-07-22
2
8
 
3
9
  * Require [command_kit] ~> 0.5.
data/README.md CHANGED
@@ -43,20 +43,20 @@ and development.
43
43
  ### Gemfile
44
44
 
45
45
  ```ruby
46
- gem 'ronin-core', '~> 0.1'
46
+ gem 'ronin-core', '~> 0.2'
47
47
  ```
48
48
 
49
49
  ### gemspec
50
50
 
51
51
  ```ruby
52
- gem.add_depedency 'ronin-core', '~> 0.1'
52
+ gem.add_depedency 'ronin-core', '~> 0.2'
53
53
  ```
54
54
 
55
55
  ### [gemspec.yml]
56
56
 
57
57
  ```yaml
58
58
  dependencies:
59
- ronin-core: ~> 0.1
59
+ ronin-core: ~> 0.2
60
60
  ```
61
61
 
62
62
  ## Examples
@@ -274,7 +274,7 @@ http> post /foo var=bar
274
274
 
275
275
  ## License
276
276
 
277
- Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3@gmail.com)
277
+ Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3@gmail.com)
278
278
 
279
279
  ronin-core is free software: you can redistribute it and/or modify
280
280
  it under the terms of the GNU Lesser General Public License as published
data/gemspec.yml CHANGED
@@ -4,7 +4,7 @@ description: |
4
4
  ronin-core is a core library providing common functionality for all ronin
5
5
  libraries.
6
6
 
7
- license: LGPL-3.0
7
+ license: LGPL-3.0-or-later
8
8
  authors: Postmodern
9
9
  email: postmodern.mod3@gmail.com
10
10
  homepage: https://ronin-rb.dev/
@@ -20,6 +20,7 @@ metadata:
20
20
  required_ruby_version: ">= 3.0.0"
21
21
 
22
22
  dependencies:
23
+ csv: ~> 3.0
23
24
  reline: ~> 0.1
24
25
  command_kit: ~> 0.5
25
26
  irb: ~> 1.0
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -16,7 +16,7 @@
16
16
  # along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
17
17
  #
18
18
 
19
- require 'ronin/core/cli/shell'
19
+ require_relative '../../cli/shell'
20
20
 
21
21
  module Ronin
22
22
  module Core
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -16,8 +16,8 @@
16
16
  # along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
17
17
  #
18
18
 
19
- require 'ronin/core/cli/shell'
20
- require 'ronin/core/cli/command_shell/command'
19
+ require_relative 'shell'
20
+ require_relative 'command_shell/command'
21
21
 
22
22
  require 'shellwords'
23
23
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -16,7 +16,7 @@
16
16
  # along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
17
17
  #
18
18
 
19
- require 'ronin/core/cli/command'
19
+ require_relative 'command'
20
20
 
21
21
  require 'command_kit/completion/install'
22
22
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -16,7 +16,7 @@
16
16
  # along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
17
17
  #
18
18
 
19
- require 'ronin/core/git'
19
+ require_relative '../../../git'
20
20
 
21
21
  module Ronin
22
22
  module Core
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -16,7 +16,7 @@
16
16
  # along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
17
17
  #
18
18
 
19
- require 'ronin/core/cli/command'
19
+ require_relative 'command'
20
20
 
21
21
  require 'command_kit/colors'
22
22
  require 'fileutils'
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -16,7 +16,7 @@
16
16
  # along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
17
17
  #
18
18
 
19
- require 'ronin/core/cli/banner'
19
+ require_relative '../banner'
20
20
 
21
21
  module Ronin
22
22
  module Core
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # This file is part of ronin-core.
6
6
  #
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -16,7 +16,7 @@
16
16
  # along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
17
17
  #
18
18
 
19
- require 'ronin/core/params/types'
19
+ require_relative '../../params/types'
20
20
 
21
21
  require 'command_kit/printing/tables'
22
22
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -16,7 +16,7 @@
16
16
  # along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
17
17
  #
18
18
 
19
- require 'ronin/core/cli/banner'
19
+ require_relative 'banner'
20
20
 
21
21
  require 'command_kit/colors'
22
22
  require 'irb'
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -16,7 +16,7 @@
16
16
  # along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
17
17
  #
18
18
 
19
- require 'ronin/core/cli/banner'
19
+ require_relative 'banner'
20
20
 
21
21
  require 'command_kit/printing'
22
22
  require 'command_kit/colors'
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -16,7 +16,7 @@
16
16
  # along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
17
17
  #
18
18
 
19
- require 'ronin/core/metadata/authors/author'
19
+ require_relative 'authors/author'
20
20
 
21
21
  module Ronin
22
22
  module Core
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -16,7 +16,7 @@
16
16
  # along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
17
17
  #
18
18
 
19
- require 'ronin/core/output_formats/output_file'
19
+ require_relative 'output_file'
20
20
 
21
21
  require 'csv'
22
22
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -16,7 +16,7 @@
16
16
  # along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
17
17
  #
18
18
 
19
- require 'ronin/core/output_formats/output_file'
19
+ require_relative 'output_file'
20
20
 
21
21
  require 'json'
22
22
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -16,7 +16,7 @@
16
16
  # along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
17
17
  #
18
18
 
19
- require 'ronin/core/output_formats/output_file'
19
+ require_relative 'output_file'
20
20
 
21
21
  require 'json'
22
22
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -16,7 +16,7 @@
16
16
  # along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
17
17
  #
18
18
 
19
- require 'ronin/core/output_formats/output_format'
19
+ require_relative 'output_format'
20
20
 
21
21
  require 'fileutils'
22
22
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -16,7 +16,7 @@
16
16
  # along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
17
17
  #
18
18
 
19
- require 'ronin/core/output_formats/output_format'
19
+ require_relative 'output_format'
20
20
 
21
21
  module Ronin
22
22
  module Core
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -16,7 +16,7 @@
16
16
  # along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
17
17
  #
18
18
 
19
- require 'ronin/core/output_formats/output_file'
19
+ require_relative 'output_file'
20
20
 
21
21
  module Ronin
22
22
  module Core
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -16,10 +16,10 @@
16
16
  # along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
17
17
  #
18
18
 
19
- require 'ronin/core/output_formats/txt'
20
- require 'ronin/core/output_formats/csv'
21
- require 'ronin/core/output_formats/json'
22
- require 'ronin/core/output_formats/ndjson'
19
+ require_relative 'output_formats/txt'
20
+ require_relative 'output_formats/csv'
21
+ require_relative 'output_formats/json'
22
+ require_relative 'output_formats/ndjson'
23
23
 
24
24
  module Ronin
25
25
  module Core
@@ -65,6 +65,15 @@ module Ronin
65
65
  #
66
66
  # Registers a new output format.
67
67
  #
68
+ # @param [Symbol] name
69
+ # The output format name.
70
+ #
71
+ # @param [String] ext
72
+ # The file extension associated with the output format.
73
+ #
74
+ # @param [Class] output_format
75
+ # The output format class.
76
+ #
68
77
  def register(name,ext,output_format)
69
78
  formats[name] = output_format
70
79
  file_exts[ext] = output_format
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -16,9 +16,9 @@
16
16
  # along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
17
17
  #
18
18
 
19
- require 'ronin/core/params/exceptions'
20
- require 'ronin/core/params/param'
21
- require 'ronin/core/params/types'
19
+ require_relative 'exceptions'
20
+ require_relative 'param'
21
+ require_relative 'types'
22
22
 
23
23
  module Ronin
24
24
  module Core
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -16,7 +16,7 @@
16
16
  # along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
17
17
  #
18
18
 
19
- require 'ronin/core/params/types/type'
19
+ require_relative 'type'
20
20
 
21
21
  module Ronin
22
22
  module Core
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -16,7 +16,7 @@
16
16
  # along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
17
17
  #
18
18
 
19
- require 'ronin/core/params/types/type'
19
+ require_relative 'type'
20
20
 
21
21
  module Ronin
22
22
  module Core
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -16,7 +16,7 @@
16
16
  # along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
17
17
  #
18
18
 
19
- require 'ronin/core/params/types/numeric'
19
+ require_relative 'numeric'
20
20
 
21
21
  module Ronin
22
22
  module Core
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -16,7 +16,7 @@
16
16
  # along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
17
17
  #
18
18
 
19
- require 'ronin/core/params/types/numeric'
19
+ require_relative 'numeric'
20
20
 
21
21
  module Ronin
22
22
  module Core
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -16,7 +16,7 @@
16
16
  # along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
17
17
  #
18
18
 
19
- require 'ronin/core/params/types/type'
19
+ require_relative 'type'
20
20
 
21
21
  module Ronin
22
22
  module Core
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -16,7 +16,7 @@
16
16
  # along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
17
17
  #
18
18
 
19
- require 'ronin/core/params/types/type'
19
+ require_relative 'type'
20
20
 
21
21
  module Ronin
22
22
  module Core
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -16,7 +16,7 @@
16
16
  # along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
17
17
  #
18
18
 
19
- require 'ronin/core/params/types/type'
19
+ require_relative 'type'
20
20
 
21
21
  module Ronin
22
22
  module Core
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -16,7 +16,7 @@
16
16
  # along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
17
17
  #
18
18
 
19
- require 'ronin/core/params/exceptions'
19
+ require_relative '../exceptions'
20
20
 
21
21
  module Ronin
22
22
  module Core
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -16,7 +16,7 @@
16
16
  # along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
17
17
  #
18
18
 
19
- require 'ronin/core/params/types/type'
19
+ require_relative 'type'
20
20
 
21
21
  require 'uri'
22
22
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -16,14 +16,14 @@
16
16
  # along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
17
17
  #
18
18
 
19
- require 'ronin/core/params/exceptions'
20
- require 'ronin/core/params/types/string'
21
- require 'ronin/core/params/types/boolean'
22
- require 'ronin/core/params/types/integer'
23
- require 'ronin/core/params/types/float'
24
- require 'ronin/core/params/types/regexp'
25
- require 'ronin/core/params/types/uri'
26
- require 'ronin/core/params/types/enum'
19
+ require_relative 'exceptions'
20
+ require_relative 'types/string'
21
+ require_relative 'types/boolean'
22
+ require_relative 'types/integer'
23
+ require_relative 'types/float'
24
+ require_relative 'types/regexp'
25
+ require_relative 'types/uri'
26
+ require_relative 'types/enum'
27
27
 
28
28
  module Ronin
29
29
  module Core
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -16,4 +16,4 @@
16
16
  # along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
17
17
  #
18
18
 
19
- require 'ronin/core/params/mixin'
19
+ require_relative 'params/mixin'
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- # Copyright (c) 2021-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
3
+ # Copyright (c) 2021-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
4
4
  #
5
5
  # ronin-core is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU Lesser General Public License as published
@@ -19,6 +19,6 @@
19
19
  module Ronin
20
20
  module Core
21
21
  # ronin-core version
22
- VERSION = '0.2.0'
22
+ VERSION = '0.2.1'
23
23
  end
24
24
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ronin-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Postmodern
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-22 00:00:00.000000000 Z
11
+ date: 2025-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: csv
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: reline
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -150,7 +164,7 @@ files:
150
164
  - ronin-core.gemspec
151
165
  homepage: https://ronin-rb.dev/
152
166
  licenses:
153
- - LGPL-3.0
167
+ - LGPL-3.0-or-later
154
168
  metadata:
155
169
  documentation_uri: https://ronin-rb.dev/docs/ronin-core
156
170
  source_code_uri: https://github.com/ronin-rb/ronin-core
@@ -172,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
186
  - !ruby/object:Gem::Version
173
187
  version: '0'
174
188
  requirements: []
175
- rubygems_version: 3.5.11
189
+ rubygems_version: 3.5.22
176
190
  signing_key:
177
191
  specification_version: 4
178
192
  summary: A core library for all ronin libraries.