ronin-core 0.1.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.document +5 -0
- data/.github/workflows/ruby.yml +41 -0
- data/.gitignore +12 -0
- data/.rspec +1 -0
- data/.rubocop.yml +160 -0
- data/.ruby-version +1 -0
- data/.yardopts +1 -0
- data/COPYING.txt +165 -0
- data/ChangeLog.md +11 -0
- data/Gemfile +30 -0
- data/README.md +299 -0
- data/Rakefile +34 -0
- data/examples/ruby_shell.rb +11 -0
- data/gemspec.yml +28 -0
- data/lib/ronin/core/class_registry.rb +246 -0
- data/lib/ronin/core/cli/command.rb +87 -0
- data/lib/ronin/core/cli/command_shell/command.rb +110 -0
- data/lib/ronin/core/cli/command_shell.rb +345 -0
- data/lib/ronin/core/cli/generator/options/author.rb +106 -0
- data/lib/ronin/core/cli/generator/options/description.rb +54 -0
- data/lib/ronin/core/cli/generator/options/reference.rb +60 -0
- data/lib/ronin/core/cli/generator/options/summary.rb +54 -0
- data/lib/ronin/core/cli/generator.rb +238 -0
- data/lib/ronin/core/cli/logging.rb +59 -0
- data/lib/ronin/core/cli/options/param.rb +68 -0
- data/lib/ronin/core/cli/options/values/arches.rb +45 -0
- data/lib/ronin/core/cli/options/values/oses.rb +32 -0
- data/lib/ronin/core/cli/printing/arch.rb +71 -0
- data/lib/ronin/core/cli/printing/metadata.rb +113 -0
- data/lib/ronin/core/cli/printing/os.rb +54 -0
- data/lib/ronin/core/cli/printing/params.rb +69 -0
- data/lib/ronin/core/cli/ruby_shell.rb +131 -0
- data/lib/ronin/core/cli/shell.rb +186 -0
- data/lib/ronin/core/git.rb +73 -0
- data/lib/ronin/core/home.rb +86 -0
- data/lib/ronin/core/metadata/authors/author.rb +241 -0
- data/lib/ronin/core/metadata/authors.rb +120 -0
- data/lib/ronin/core/metadata/description.rb +100 -0
- data/lib/ronin/core/metadata/id.rb +88 -0
- data/lib/ronin/core/metadata/references.rb +87 -0
- data/lib/ronin/core/metadata/summary.rb +78 -0
- data/lib/ronin/core/metadata/version.rb +74 -0
- data/lib/ronin/core/params/exceptions.rb +38 -0
- data/lib/ronin/core/params/mixin.rb +317 -0
- data/lib/ronin/core/params/param.rb +137 -0
- data/lib/ronin/core/params/types/boolean.rb +64 -0
- data/lib/ronin/core/params/types/enum.rb +107 -0
- data/lib/ronin/core/params/types/float.rb +68 -0
- data/lib/ronin/core/params/types/integer.rb +100 -0
- data/lib/ronin/core/params/types/numeric.rb +106 -0
- data/lib/ronin/core/params/types/regexp.rb +67 -0
- data/lib/ronin/core/params/types/string.rb +118 -0
- data/lib/ronin/core/params/types/type.rb +54 -0
- data/lib/ronin/core/params/types/uri.rb +72 -0
- data/lib/ronin/core/params/types.rb +62 -0
- data/lib/ronin/core/params.rb +19 -0
- data/lib/ronin/core/version.rb +24 -0
- data/ronin-core.gemspec +59 -0
- data/spec/class_registry_spec.rb +224 -0
- data/spec/cli/command_shell/command_spec.rb +113 -0
- data/spec/cli/command_shell_spec.rb +1114 -0
- data/spec/cli/command_spec.rb +16 -0
- data/spec/cli/fixtures/irb_command +8 -0
- data/spec/cli/fixtures/template/dir/file1.txt +1 -0
- data/spec/cli/fixtures/template/dir/file2.txt +1 -0
- data/spec/cli/fixtures/template/file.erb +1 -0
- data/spec/cli/fixtures/template/file.txt +1 -0
- data/spec/cli/generator/options/author_spec.rb +121 -0
- data/spec/cli/generator/options/description_spec.rb +45 -0
- data/spec/cli/generator/options/reference_spec.rb +53 -0
- data/spec/cli/generator/options/summary_spec.rb +45 -0
- data/spec/cli/generator_spec.rb +244 -0
- data/spec/cli/logging_spec.rb +95 -0
- data/spec/cli/options/param_spec.rb +67 -0
- data/spec/cli/options/values/arches_spec.rb +62 -0
- data/spec/cli/printing/arch_spec.rb +130 -0
- data/spec/cli/printing/metadata_spec.rb +211 -0
- data/spec/cli/printing/os_spec.rb +64 -0
- data/spec/cli/printing/params_spec.rb +63 -0
- data/spec/cli/ruby_shell.rb +99 -0
- data/spec/cli/shell_spec.rb +211 -0
- data/spec/fixtures/example_class_registry/base_class.rb +9 -0
- data/spec/fixtures/example_class_registry/classes/loaded_class.rb +9 -0
- data/spec/fixtures/example_class_registry/classes/name_mismatch.rb +9 -0
- data/spec/fixtures/example_class_registry/classes/no_module.rb +4 -0
- data/spec/fixtures/example_class_registry.rb +8 -0
- data/spec/git_spec.rb +58 -0
- data/spec/home_spec.rb +64 -0
- data/spec/metadata/authors/author_spec.rb +335 -0
- data/spec/metadata/authors_spec.rb +126 -0
- data/spec/metadata/description_spec.rb +74 -0
- data/spec/metadata/id_spec.rb +92 -0
- data/spec/metadata/references_spec.rb +100 -0
- data/spec/metadata/summary_spec.rb +74 -0
- data/spec/metadata/version_spec.rb +72 -0
- data/spec/params/mixin_spec.rb +484 -0
- data/spec/params/param_spec.rb +164 -0
- data/spec/params/types/boolean_spec.rb +56 -0
- data/spec/params/types/enum_spec.rb +94 -0
- data/spec/params/types/float_spec.rb +107 -0
- data/spec/params/types/integer_spec.rb +155 -0
- data/spec/params/types/numeric_spec.rb +138 -0
- data/spec/params/types/regexp_spec.rb +64 -0
- data/spec/params/types/string_spec.rb +174 -0
- data/spec/params/types/type_spec.rb +14 -0
- data/spec/params/types/uri_spec.rb +62 -0
- data/spec/spec_helper.rb +11 -0
- 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,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
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
|