Skip to content

Commit

Permalink
Switched to using require_relative for loading local files (closes #96
Browse files Browse the repository at this point in the history
).
  • Loading branch information
postmodern committed Aug 4, 2024
1 parent 83f5ca9 commit 708bd0e
Show file tree
Hide file tree
Showing 22 changed files with 49 additions and 39 deletions.
3 changes: 2 additions & 1 deletion lib/ronin/web/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@
# along with ronin-web. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/web/version'
require 'ronin/core/cli/help/banner'

require 'command_kit/commands'
require 'command_kit/commands/auto_load'
require 'command_kit/options/version'

require_relative 'version'

module Ronin
module Web
#
Expand Down
3 changes: 2 additions & 1 deletion lib/ronin/web/cli/browser_shell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@
#

require 'ronin/core/cli/command_shell'
require 'ronin/web/cli/js_shell'
require 'ronin/web/browser'

require_relative 'js_shell'

module Ronin
module Web
class CLI
Expand Down
4 changes: 2 additions & 2 deletions lib/ronin/web/cli/command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
# along with ronin-web. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/web/root'

require 'ronin/core/cli/command'

require_relative '../root'

module Ronin
module Web
class CLI
Expand Down
8 changes: 4 additions & 4 deletions lib/ronin/web/cli/commands/browser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
# along with ronin-web. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/web/cli/command'
require 'ronin/web/cli/browser_options'
require 'ronin/web/cli/browser_shell'
require 'ronin/web/cli/js_shell'
require_relative '../command'
require_relative '../browser_options'
require_relative '../browser_shell'
require_relative '../js_shell'

require 'command_kit/colors'

Expand Down
3 changes: 2 additions & 1 deletion lib/ronin/web/cli/commands/completion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
# along with ronin-web. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/web/root'
require 'ronin/core/cli/completion_command'

require_relative '../../root'

module Ronin
module Web
class CLI
Expand Down
4 changes: 2 additions & 2 deletions lib/ronin/web/cli/commands/diff.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
# along with ronin-web. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/web/cli/command'
require 'ronin/support/network/http'
require_relative '../command'

require 'ronin/support/network/http'
require 'command_kit/colors'
require 'nokogiri/diff'

Expand Down
4 changes: 2 additions & 2 deletions lib/ronin/web/cli/commands/html.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
# along with ronin-web. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/web/cli/commands/xml'
require 'ronin/support/network/http'
require_relative 'xml'

require 'ronin/support/network/http'
require 'nokogiri'

module Ronin
Expand Down
4 changes: 2 additions & 2 deletions lib/ronin/web/cli/commands/irb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# along with ronin-web. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/web/cli/command'
require 'ronin/web/cli/ruby_shell'
require_relative '../command'
require_relative '../ruby_shell'

module Ronin
module Web
Expand Down
3 changes: 2 additions & 1 deletion lib/ronin/web/cli/commands/new.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
# along with ronin-web. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/web/cli/command'
require_relative '../command'

require 'command_kit/commands/auto_load'

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

require 'ronin/web/cli/command'
require 'ronin/web/root'
require_relative '../../command'
require_relative '../../../root'

require 'ronin/core/cli/generator'

Expand Down
4 changes: 2 additions & 2 deletions lib/ronin/web/cli/commands/new/nokogiri.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
# along with ronin-web. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/web/cli/command'
require 'ronin/web/root'
require_relative '../../command'
require_relative '../../../root'

require 'ronin/core/cli/generator'

Expand Down
4 changes: 2 additions & 2 deletions lib/ronin/web/cli/commands/new/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
# along with ronin-web. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/web/cli/command'
require 'ronin/web/root'
require_relative '../../command'
require_relative '../../../root'

require 'ronin/core/cli/generator'

Expand Down
4 changes: 2 additions & 2 deletions lib/ronin/web/cli/commands/new/spider.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
# along with ronin-web. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/web/cli/command'
require 'ronin/web/root'
require_relative '../../command'
require_relative '../../../root'

require 'ronin/core/cli/generator'

Expand Down
3 changes: 2 additions & 1 deletion lib/ronin/web/cli/commands/reverse_proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
# along with ronin-web. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/web/cli/command'
require_relative '../command'

require 'ronin/core/cli/logging'
require 'ronin/web/server/reverse_proxy'

Expand Down
4 changes: 2 additions & 2 deletions lib/ronin/web/cli/commands/screenshot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# along with ronin-web. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/web/cli/command'
require 'ronin/web/cli/browser_options'
require_relative '../command'
require_relative '../browser_options'

require 'ronin/core/cli/logging'

Expand Down
3 changes: 2 additions & 1 deletion lib/ronin/web/cli/commands/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
# along with ronin-web. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/web/cli/command'
require_relative '../command'

require 'ronin/core/cli/logging'
require 'ronin/web/server'

Expand Down
3 changes: 2 additions & 1 deletion lib/ronin/web/cli/commands/session_cookie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
# along with ronin-web. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/web/cli/command'
require_relative '../command'

require 'ronin/web/session_cookie'
require 'ronin/support/network/http'
require 'ronin/support/encoding/hex'
Expand Down
5 changes: 3 additions & 2 deletions lib/ronin/web/cli/commands/spider.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
# along with ronin-web. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/web/cli/command'
require 'ronin/web/cli/spider_options'
require_relative '../command'
require_relative '../spider_options'

require 'ronin/web/spider/archive'
require 'ronin/web/spider/git_archive'
require 'ronin/support/network/http/user_agents'
Expand Down
3 changes: 2 additions & 1 deletion lib/ronin/web/cli/commands/user_agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
# along with ronin-web. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/web/cli/command'
require_relative '../command'

require 'ronin/web/user_agents'

module Ronin
Expand Down
5 changes: 3 additions & 2 deletions lib/ronin/web/cli/commands/vulns.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
# along with ronin-web. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/web/cli/command'
require 'ronin/web/cli/spider_options'
require_relative '../command'
require_relative '../spider_options'

require 'ronin/core/cli/logging'
require 'ronin/vulns/url_scanner'
require 'ronin/vulns/cli/printing'
Expand Down
6 changes: 3 additions & 3 deletions lib/ronin/web/cli/commands/wordlist.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
# along with ronin-web. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/web/cli/command'
require 'ronin/web/cli/spider_options'
require 'ronin/core/cli/logging'
require_relative '../command'
require_relative '../spider_options'

require 'ronin/core/cli/logging'
require 'wordlist/builder'
require 'nokogiri'

Expand Down
4 changes: 2 additions & 2 deletions lib/ronin/web/cli/commands/xml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
# along with ronin-web. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/web/cli/command'
require 'ronin/support/network/http'
require_relative '../command'

require 'ronin/support/network/http'
require 'nokogiri'

module Ronin
Expand Down

0 comments on commit 708bd0e

Please sign in to comment.