Skip to content

Commit

Permalink
Update lib to use require_relative
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie authored and postmodern committed Jul 27, 2024
1 parent cd4d0f8 commit d61848d
Show file tree
Hide file tree
Showing 29 changed files with 42 additions and 42 deletions.
4 changes: 2 additions & 2 deletions lib/ronin/core/cli/command_shell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
# along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/cli/shell'
require 'ronin/core/cli/command_shell/command'
require_relative 'shell'
require_relative 'command_shell/command'

require 'shellwords'

Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/core/cli/command_shell/command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/cli/shell'
require_relative '../../cli/shell'

module Ronin
module Core
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/core/cli/completion_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/cli/command'
require_relative 'command'

require 'command_kit/completion/install'

Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/core/cli/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/cli/command'
require_relative 'command'

require 'command_kit/colors'
require 'fileutils'
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/core/cli/generator/options/author.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/git'
require_relative '../../../git'

module Ronin
module Core
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/core/cli/help/banner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/cli/banner'
require_relative '../banner'

module Ronin
module Core
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/core/cli/printing/params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/params/types'
require_relative '../../params/types'

require 'command_kit/printing/tables'

Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/core/cli/ruby_shell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/cli/banner'
require_relative 'banner'

require 'command_kit/colors'
require 'irb'
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/core/cli/shell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/cli/banner'
require_relative 'banner'

require 'command_kit/printing'
require 'command_kit/colors'
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/core/metadata/authors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/metadata/authors/author'
require_relative 'authors/author'

module Ronin
module Core
Expand Down
8 changes: 4 additions & 4 deletions lib/ronin/core/output_formats.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
# along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/output_formats/txt'
require 'ronin/core/output_formats/csv'
require 'ronin/core/output_formats/json'
require 'ronin/core/output_formats/ndjson'
require_relative 'output_formats/txt'
require_relative 'output_formats/csv'
require_relative 'output_formats/json'
require_relative 'output_formats/ndjson'

module Ronin
module Core
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/core/output_formats/csv.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/output_formats/output_file'
require_relative 'output_file'

require 'csv'

Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/core/output_formats/json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/output_formats/output_file'
require_relative 'output_file'

require 'json'

Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/core/output_formats/ndjson.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/output_formats/output_file'
require_relative 'output_file'

require 'json'

Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/core/output_formats/output_dir.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/output_formats/output_format'
require_relative 'output_format'

require 'fileutils'

Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/core/output_formats/output_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/output_formats/output_format'
require_relative 'output_format'

module Ronin
module Core
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/core/output_formats/txt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/output_formats/output_file'
require_relative 'output_file'

module Ronin
module Core
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/core/params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
# along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/params/mixin'
require_relative 'params/mixin'
6 changes: 3 additions & 3 deletions lib/ronin/core/params/mixin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
# along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/params/exceptions'
require 'ronin/core/params/param'
require 'ronin/core/params/types'
require_relative 'exceptions'
require_relative 'param'
require_relative 'types'

module Ronin
module Core
Expand Down
16 changes: 8 additions & 8 deletions lib/ronin/core/params/types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
# along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/params/exceptions'
require 'ronin/core/params/types/string'
require 'ronin/core/params/types/boolean'
require 'ronin/core/params/types/integer'
require 'ronin/core/params/types/float'
require 'ronin/core/params/types/regexp'
require 'ronin/core/params/types/uri'
require 'ronin/core/params/types/enum'
require_relative 'exceptions'
require_relative 'types/string'
require_relative 'types/boolean'
require_relative 'types/integer'
require_relative 'types/float'
require_relative 'types/regexp'
require_relative 'types/uri'
require_relative 'types/enum'

module Ronin
module Core
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/core/params/types/boolean.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/params/types/type'
require_relative 'type'

module Ronin
module Core
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/core/params/types/enum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/params/types/type'
require_relative 'type'

module Ronin
module Core
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/core/params/types/float.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/params/types/numeric'
require_relative 'numeric'

module Ronin
module Core
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/core/params/types/integer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/params/types/numeric'
require_relative 'numeric'

module Ronin
module Core
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/core/params/types/numeric.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/params/types/type'
require_relative 'type'

module Ronin
module Core
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/core/params/types/regexp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/params/types/type'
require_relative 'type'

module Ronin
module Core
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/core/params/types/string.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/params/types/type'
require_relative 'type'

module Ronin
module Core
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/core/params/types/type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/params/exceptions'
require_relative '../exceptions'

module Ronin
module Core
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/core/params/types/uri.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with ronin-core. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/params/types/type'
require_relative 'type'

require 'uri'

Expand Down

0 comments on commit d61848d

Please sign in to comment.