ronin-core 0.1.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +7 -0
  2. data/.document +5 -0
  3. data/.github/workflows/ruby.yml +41 -0
  4. data/.gitignore +12 -0
  5. data/.rspec +1 -0
  6. data/.rubocop.yml +160 -0
  7. data/.ruby-version +1 -0
  8. data/.yardopts +1 -0
  9. data/COPYING.txt +165 -0
  10. data/ChangeLog.md +11 -0
  11. data/Gemfile +30 -0
  12. data/README.md +299 -0
  13. data/Rakefile +34 -0
  14. data/examples/ruby_shell.rb +11 -0
  15. data/gemspec.yml +28 -0
  16. data/lib/ronin/core/class_registry.rb +246 -0
  17. data/lib/ronin/core/cli/command.rb +87 -0
  18. data/lib/ronin/core/cli/command_shell/command.rb +110 -0
  19. data/lib/ronin/core/cli/command_shell.rb +345 -0
  20. data/lib/ronin/core/cli/generator/options/author.rb +106 -0
  21. data/lib/ronin/core/cli/generator/options/description.rb +54 -0
  22. data/lib/ronin/core/cli/generator/options/reference.rb +60 -0
  23. data/lib/ronin/core/cli/generator/options/summary.rb +54 -0
  24. data/lib/ronin/core/cli/generator.rb +238 -0
  25. data/lib/ronin/core/cli/logging.rb +59 -0
  26. data/lib/ronin/core/cli/options/param.rb +68 -0
  27. data/lib/ronin/core/cli/options/values/arches.rb +45 -0
  28. data/lib/ronin/core/cli/options/values/oses.rb +32 -0
  29. data/lib/ronin/core/cli/printing/arch.rb +71 -0
  30. data/lib/ronin/core/cli/printing/metadata.rb +113 -0
  31. data/lib/ronin/core/cli/printing/os.rb +54 -0
  32. data/lib/ronin/core/cli/printing/params.rb +69 -0
  33. data/lib/ronin/core/cli/ruby_shell.rb +131 -0
  34. data/lib/ronin/core/cli/shell.rb +186 -0
  35. data/lib/ronin/core/git.rb +73 -0
  36. data/lib/ronin/core/home.rb +86 -0
  37. data/lib/ronin/core/metadata/authors/author.rb +241 -0
  38. data/lib/ronin/core/metadata/authors.rb +120 -0
  39. data/lib/ronin/core/metadata/description.rb +100 -0
  40. data/lib/ronin/core/metadata/id.rb +88 -0
  41. data/lib/ronin/core/metadata/references.rb +87 -0
  42. data/lib/ronin/core/metadata/summary.rb +78 -0
  43. data/lib/ronin/core/metadata/version.rb +74 -0
  44. data/lib/ronin/core/params/exceptions.rb +38 -0
  45. data/lib/ronin/core/params/mixin.rb +317 -0
  46. data/lib/ronin/core/params/param.rb +137 -0
  47. data/lib/ronin/core/params/types/boolean.rb +64 -0
  48. data/lib/ronin/core/params/types/enum.rb +107 -0
  49. data/lib/ronin/core/params/types/float.rb +68 -0
  50. data/lib/ronin/core/params/types/integer.rb +100 -0
  51. data/lib/ronin/core/params/types/numeric.rb +106 -0
  52. data/lib/ronin/core/params/types/regexp.rb +67 -0
  53. data/lib/ronin/core/params/types/string.rb +118 -0
  54. data/lib/ronin/core/params/types/type.rb +54 -0
  55. data/lib/ronin/core/params/types/uri.rb +72 -0
  56. data/lib/ronin/core/params/types.rb +62 -0
  57. data/lib/ronin/core/params.rb +19 -0
  58. data/lib/ronin/core/version.rb +24 -0
  59. data/ronin-core.gemspec +59 -0
  60. data/spec/class_registry_spec.rb +224 -0
  61. data/spec/cli/command_shell/command_spec.rb +113 -0
  62. data/spec/cli/command_shell_spec.rb +1114 -0
  63. data/spec/cli/command_spec.rb +16 -0
  64. data/spec/cli/fixtures/irb_command +8 -0
  65. data/spec/cli/fixtures/template/dir/file1.txt +1 -0
  66. data/spec/cli/fixtures/template/dir/file2.txt +1 -0
  67. data/spec/cli/fixtures/template/file.erb +1 -0
  68. data/spec/cli/fixtures/template/file.txt +1 -0
  69. data/spec/cli/generator/options/author_spec.rb +121 -0
  70. data/spec/cli/generator/options/description_spec.rb +45 -0
  71. data/spec/cli/generator/options/reference_spec.rb +53 -0
  72. data/spec/cli/generator/options/summary_spec.rb +45 -0
  73. data/spec/cli/generator_spec.rb +244 -0
  74. data/spec/cli/logging_spec.rb +95 -0
  75. data/spec/cli/options/param_spec.rb +67 -0
  76. data/spec/cli/options/values/arches_spec.rb +62 -0
  77. data/spec/cli/printing/arch_spec.rb +130 -0
  78. data/spec/cli/printing/metadata_spec.rb +211 -0
  79. data/spec/cli/printing/os_spec.rb +64 -0
  80. data/spec/cli/printing/params_spec.rb +63 -0
  81. data/spec/cli/ruby_shell.rb +99 -0
  82. data/spec/cli/shell_spec.rb +211 -0
  83. data/spec/fixtures/example_class_registry/base_class.rb +9 -0
  84. data/spec/fixtures/example_class_registry/classes/loaded_class.rb +9 -0
  85. data/spec/fixtures/example_class_registry/classes/name_mismatch.rb +9 -0
  86. data/spec/fixtures/example_class_registry/classes/no_module.rb +4 -0
  87. data/spec/fixtures/example_class_registry.rb +8 -0
  88. data/spec/git_spec.rb +58 -0
  89. data/spec/home_spec.rb +64 -0
  90. data/spec/metadata/authors/author_spec.rb +335 -0
  91. data/spec/metadata/authors_spec.rb +126 -0
  92. data/spec/metadata/description_spec.rb +74 -0
  93. data/spec/metadata/id_spec.rb +92 -0
  94. data/spec/metadata/references_spec.rb +100 -0
  95. data/spec/metadata/summary_spec.rb +74 -0
  96. data/spec/metadata/version_spec.rb +72 -0
  97. data/spec/params/mixin_spec.rb +484 -0
  98. data/spec/params/param_spec.rb +164 -0
  99. data/spec/params/types/boolean_spec.rb +56 -0
  100. data/spec/params/types/enum_spec.rb +94 -0
  101. data/spec/params/types/float_spec.rb +107 -0
  102. data/spec/params/types/integer_spec.rb +155 -0
  103. data/spec/params/types/numeric_spec.rb +138 -0
  104. data/spec/params/types/regexp_spec.rb +64 -0
  105. data/spec/params/types/string_spec.rb +174 -0
  106. data/spec/params/types/type_spec.rb +14 -0
  107. data/spec/params/types/uri_spec.rb +62 -0
  108. data/spec/spec_helper.rb +11 -0
  109. metadata +252 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: '081789614dad5997f6ff3c7761a10b27d6d242def8f70d21969764b9d1c9236b'
4
+ data.tar.gz: eca88a2a8d2450444c87ae06c85e5cb1243549d55ad3b8c615763facc59c6e49
5
+ SHA512:
6
+ metadata.gz: 549cf9c4a77db4f8086dbf81504d29dfa06bf5aff11aa5730acf558daef6bab1c69710c7a870ff6afd18554fe68715e088383cb51c1350d3a093359a079b7964
7
+ data.tar.gz: b5432079445a5e9d9fdab4f4eada0f581c1ec1ad125d19b29839871b207a3c37887e2c666a9e530018cad08172ebc2a189b7d851c257e67bd7485abeabf29d8b
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ -
3
+ ChangeLog.md
4
+ COPYING.txt
5
+ man/*.md
@@ -0,0 +1,41 @@
1
+ name: CI
2
+
3
+ on: [ push, pull_request ]
4
+
5
+ jobs:
6
+ tests:
7
+ runs-on: ubuntu-latest
8
+ strategy:
9
+ fail-fast: false
10
+ matrix:
11
+ ruby:
12
+ - '3.0'
13
+ - '3.1'
14
+ - '3.2'
15
+ - jruby
16
+ - truffleruby
17
+ name: Ruby ${{ matrix.ruby }}
18
+ steps:
19
+ - uses: actions/checkout@v2
20
+ - name: Set up Ruby
21
+ uses: ruby/setup-ruby@v1
22
+ with:
23
+ ruby-version: ${{ matrix.ruby }}
24
+ - name: Install dependencies
25
+ run: bundle install --jobs 4 --retry 3
26
+ - name: Run tests
27
+ run: bundle exec rake test
28
+
29
+ # rubocop linting
30
+ rubocop:
31
+ runs-on: ubuntu-latest
32
+ steps:
33
+ - uses: actions/checkout@v2
34
+ - name: Set up Ruby
35
+ uses: ruby/setup-ruby@v1
36
+ with:
37
+ ruby-version: 3.0
38
+ - name: Install dependencies
39
+ run: bundle install --jobs 4 --retry 3
40
+ - name: Run rubocop
41
+ run: bundle exec rubocop --parallel
data/.gitignore ADDED
@@ -0,0 +1,12 @@
1
+ /coverage
2
+ /doc
3
+ /pkg
4
+ /vendor/bundle
5
+ /Gemfile.lock
6
+ /.bundle
7
+ /.yardoc
8
+ .DS_Store
9
+ *.db
10
+ *.log
11
+ *.swp
12
+ *~
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --colour --format documentation
data/.rubocop.yml ADDED
@@ -0,0 +1,160 @@
1
+ AllCops:
2
+ NewCops: enable
3
+ SuggestExtensions: false
4
+ TargetRubyVersion: 3.1
5
+
6
+ #
7
+ # our rules
8
+ #
9
+
10
+ Layout/FirstArrayElementIndentation: { Exclude: ['spec/**/*'] }
11
+ Layout/LineLength: { Enabled: false }
12
+ Layout/SpaceAroundEqualsInParameterDefault: { EnforcedStyle: no_space }
13
+ Lint/ConstantDefinitionInBlock: { Exclude: ['spec/**/*'] }
14
+ Metrics: { Enabled: false }
15
+ Style/SymbolArray: { EnforcedStyle: brackets }
16
+ Style/IfInsideElse: { Enabled: false } # Offense count: 1
17
+ Style/PercentLiteralDelimiters:
18
+ Enabled: true
19
+ PreferredDelimiters:
20
+ default: '{}'
21
+ '%i': '[]'
22
+ '%I': '[]'
23
+ '%w': '[]'
24
+ '%W': '[]'
25
+ Style/UnlessElse: { Enabled: false }
26
+ Bundler/OrderedGems: { Enabled: false }
27
+ Style/CaseEquality: { Exclude: ['lib/ronin/web/server/conditions.rb'] }
28
+ Style/Next: { Enabled: false }
29
+ Style/HashSyntax: { Enabled: false }
30
+ Naming/BlockForwarding: { Enabled: false }
31
+ Lint/ReturnInVoidContext: { Enabled: false }
32
+ Gemspec/DeprecatedAttributeAssignment: { Enabled: false }
33
+ Style/MixinUsage: { Enabled: false }
34
+ Naming/VariableNumber: { Enabled: false }
35
+ Naming/PredicateName: { Enabled: false }
36
+ Style/FetchEnvVar: { Enabled: false }
37
+ Layout/RescueEnsureAlignment: { Enabled: false }
38
+ Layout/BeginEndAlignment: { Enabled: false }
39
+ Layout/EmptyLineAfterMagicComment: { Enabled: false }
40
+
41
+ #
42
+ # rules that are in flux
43
+ #
44
+
45
+ # consider enabling these and autocorrecting?
46
+ # Layout/SpaceAfterComma
47
+ # Layout/SpaceAroundKeyword
48
+ # Layout/SpaceBeforeComma
49
+ # Layout/SpaceInsideHashLiteralBraces
50
+ # Layout/SpaceInsideParens
51
+ # Layout/TrailingWhitespace
52
+ # Lint/UnreachableLoop
53
+ # Lint/UnusedBlockArgument
54
+ # Style/ClassCheck
55
+ # Style/Documentation
56
+ # Style/ExpandPathArguments
57
+ # Style/GlobalStdStream
58
+ # Style/HashSyntax
59
+ # Style/KeywordParametersOrder
60
+ # Style/MethodCallWithoutArgsParentheses
61
+ # Style/MutableConstant
62
+ # Style/QuotedSymbols: { EnforcedStyle: double_quotes }
63
+ # Style/RedundantReturn
64
+ # Style/SafeNavigation
65
+ # Style/SpecialGlobalVars
66
+ # Style/StringLiterals: { EnforcedStyle: double_quotes }
67
+ # Style/WordArray
68
+
69
+ # these have been fixed
70
+ # Gemspec/DuplicatedAssignment: { Enabled: false } # Offense count: 1
71
+ # Layout/ElseAlignment: { Enabled: false } # Offense count: 1
72
+ # Layout/EndAlignment: { Enabled: false } # Offense count: 1
73
+ # Lint/DuplicateMethods: { Enabled: false } # Offense count: 1
74
+ # Lint/UselessAssignment: { Enabled: false } # Offense count: 1
75
+ # Style/Encoding: { Enabled: false } # Offense count: 2
76
+ # Style/RedundantBegin: { Enabled: false } # Offense count: 2
77
+ # Style/RedundantInterpolation: { Enabled: false } # Offense count: 1
78
+ # Style/TrailingCommaInArrayLiteral: { Enabled: false } # Offense count: 1
79
+
80
+ #
81
+ # This list was generated with:
82
+ # bundle exec rubocop --auto-gen-config --exclude-limit 1
83
+ #
84
+
85
+ # > 10 violations
86
+ Layout/AssignmentIndentation: { Enabled: false } # Offense count: 11
87
+ Layout/EmptyLinesAroundClassBody: { Enabled: false } # Offense count: 76
88
+ Layout/HashAlignment: { Enabled: false } # Offense count: 28
89
+ Layout/SpaceAfterComma: { Enabled: false } # Offense count: 141
90
+ Layout/SpaceInsideHashLiteralBraces: { Enabled: false } # Offense count: 57
91
+ Layout/TrailingWhitespace: { Enabled: false } # Offense count: 50
92
+ Naming/RescuedExceptionsVariableName: { Enabled: false } # Offense count: 11
93
+ Style/BlockDelimiters: { Enabled: false } # Offense count: 17
94
+ Style/ClassCheck: { Enabled: false } # Offense count: 10
95
+ Style/ClassEqualityComparison: { Enabled: false } # Offense count: 16
96
+ Style/FrozenStringLiteralComment: { Enabled: false } # Offense count: 77
97
+ Style/GlobalStdStream: { Enabled: false } # Offense count: 13
98
+ Style/GuardClause: { Enabled: false } # Offense count: 10
99
+ Style/IfUnlessModifier: { Enabled: false } # Offense count: 13
100
+ Style/MethodCallWithoutArgsParentheses: { Enabled: false } # Offense count: 10
101
+ Style/SpecialGlobalVars: { Enabled: false } # Offense count: 28
102
+ Style/StringLiterals: { Enabled: false } # Offense count: 774
103
+ Lint/ElseLayout: { Enabled: false } # Offense count: 22
104
+
105
+ # < 10 violations
106
+ Layout/EmptyLinesAroundModuleBody: { Enabled: false } # Offense count: 5
107
+ Layout/ExtraSpacing: { Enabled: false } # Offense count: 6
108
+ Layout/FirstHashElementIndentation: { Enabled: false } # Offense count: 4
109
+ Layout/ParameterAlignment: { Enabled: false } # Offense count: 9
110
+ Layout/SpaceAroundKeyword: { Enabled: false } # Offense count: 7
111
+ Layout/SpaceBeforeComma: { Enabled: false } # Offense count: 4
112
+ Layout/SpaceInsideParens: { Enabled: false } # Offense count: 4
113
+ Lint/EmptyClass: { Enabled: false } # Offense count: 3
114
+ Lint/SuppressedException: { Enabled: false } # Offense count: 4
115
+ Lint/UnusedMethodArgument: { Enabled: false } # Offense count: 5
116
+ Style/AccessorGrouping: { Enabled: false } # Offense count: 7
117
+ Style/Documentation: { Enabled: false } # Offense count: 3
118
+ Style/ExpandPathArguments: { Enabled: false } # Offense count: 8
119
+ Style/KeywordParametersOrder: { Enabled: false } # Offense count: 8
120
+ Style/Lambda: { Enabled: false } # Offense count: 3
121
+ Style/MutableConstant: { Enabled: false } # Offense count: 4
122
+ Style/RaiseArgs: { Enabled: false } # Offense count: 4
123
+ Style/RedundantReturn: { Enabled: false } # Offense count: 7
124
+ Style/SafeNavigation: { Enabled: false } # Offense count: 5
125
+ Style/StringConcatenation: { Enabled: false } # Offense count: 8
126
+ Style/WordArray: { Enabled: false } # Offense count: 4
127
+
128
+ # 1 or 2 violations
129
+ Layout/ArgumentAlignment: { Enabled: false } # Offense count: 1
130
+ Layout/BlockAlignment: { Enabled: false } # Offense count: 1
131
+ Layout/IndentationWidth: { Enabled: false } # Offense count: 2
132
+ Layout/SpaceAroundOperators: { Enabled: false } # Offense count: 1
133
+ Layout/SpaceBeforeBlockBraces: { Enabled: false } # Offense count: 1
134
+ Lint/MissingSuper: { Enabled: false } # Offense count: 2
135
+ Lint/RescueException: { Enabled: false } # Offense count: 1
136
+ Lint/UnreachableLoop: { Enabled: false } # Offense count: 1
137
+ Lint/UnusedBlockArgument: { Enabled: false } # Offense count: 1
138
+ Naming/MethodParameterName: { Enabled: false } # Offense count: 1
139
+ Style/EmptyMethod: { Enabled: false } # Offense count: 2
140
+ Style/HashConversion: { Enabled: false } # Offense count: 1
141
+ Style/MultilineMemoization: { Enabled: false } # Offense count: 1
142
+ Style/NumericPredicate: { Enabled: false } # Offense count: 1
143
+ Style/OptionalArguments: { Enabled: false } # Offense count: 1
144
+ Style/ParenthesesAroundCondition: { Enabled: false } # Offense count: 1
145
+ Style/PreferredHashMethods: { Enabled: false } # Offense count: 1
146
+ Style/QuotedSymbols: { Enabled: false } # Offense count: 1
147
+ Style/RedundantException: { Enabled: false } # Offense count: 1
148
+ Style/RedundantRegexpEscape: { Enabled: false } # Offense count: 1
149
+ Style/RegexpLiteral: { Enabled: false } # Offense count: 1
150
+ Style/RescueStandardError: { Enabled: false } # Offense count: 1
151
+ Style/SoleNestedConditional: { Enabled: false } # Offense count: 1
152
+ Style/TrailingCommaInHashLiteral: { Enabled: false } # Offense count: 2
153
+
154
+ # rubocop cannot tell that rubygems_mfa_required is enabled in gemspec.yml
155
+ Gemspec/RequireMFA: { Enabled: false }
156
+
157
+ # make an exception for our gemspec code
158
+ Gemspec/DuplicatedAssignment:
159
+ Exclude:
160
+ - 'ronin-core.gemspec'
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ruby-3.1
data/.yardopts ADDED
@@ -0,0 +1 @@
1
+ --markup markdown --title 'Ronin Core Documentation' --protected
data/COPYING.txt ADDED
@@ -0,0 +1,165 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.
data/ChangeLog.md ADDED
@@ -0,0 +1,11 @@
1
+ ### 0.1.0 / 2023-XX-XX
2
+
3
+ * Initial release:
4
+ * Provides access to the XDG directories (`~/.config/`, `~/.cache/`,
5
+ `~/.local/share`).
6
+ * Allows querying `~/.gitconfig` for common git settings.
7
+ * Provides a common `Command` base class for all ronin libraries.
8
+ * Provides a `Shell` and `CommandShell` base classes for writing interactive
9
+ shells.
10
+ * Provides a `Params` API for adding user configurable parameters to classes.
11
+
data/Gemfile ADDED
@@ -0,0 +1,30 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ platform :jruby do
6
+ gem 'jruby-openssl', '~> 0.7'
7
+ end
8
+
9
+ # gem 'command_kit', '~> 0.4', github: 'postmodern/command_kit.rb',
10
+ # branch: 'main'
11
+
12
+ group :development do
13
+ gem 'rake'
14
+ gem 'rubygems-tasks', '~> 0.2'
15
+
16
+ gem 'rspec', '~> 3.0'
17
+ gem 'simplecov', '~> 0.20'
18
+
19
+ gem 'kramdown', '~> 2.0'
20
+ gem 'kramdown-man', '~> 0.1'
21
+
22
+ gem 'redcarpet', platform: :mri
23
+ gem 'yard', '~> 0.9'
24
+ gem 'yard-spellcheck', require: false
25
+
26
+ gem 'dead_end', require: false
27
+ gem 'sord', require: false, platform: :mri
28
+ gem 'stackprof', require: false, platform: :mri
29
+ gem 'rubocop', require: false
30
+ end