Skip to content

Commit

Permalink
Switched to using require_relative for loading local files (closes #28
Browse files Browse the repository at this point in the history
).
  • Loading branch information
postmodern committed Aug 4, 2024
1 parent 017488b commit 41af9be
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions lib/ronin/web/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# along with ronin-web-server. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/web/server/base'
require 'ronin/web/server/app'
require_relative 'server/base'
require_relative 'server/app'

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

require 'ronin/web/server/base'
require_relative 'base'

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

require 'ronin/web/server/request'
require 'ronin/web/server/response'
require 'ronin/web/server/routing'
require 'ronin/web/server/helpers'
require 'ronin/web/server/conditions'
require_relative 'request'
require_relative 'response'
require_relative 'routing'
require_relative 'helpers'
require_relative 'conditions'

require 'rack'
require 'sinatra/base'
Expand Down
6 changes: 3 additions & 3 deletions lib/ronin/web/server/reverse_proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
# along with ronin-web-server. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/web/server/reverse_proxy/request'
require 'ronin/web/server/reverse_proxy/response'
require 'ronin/support/network/http'
require_relative 'reverse_proxy/request'
require_relative 'reverse_proxy/response'

require 'ronin/support/network/http'
require 'rack'

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

require 'ronin/web/server/request'
require_relative '../request'

module Ronin
module Web
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/web/server/reverse_proxy/response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# along with ronin-web-server. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/web/server/response'
require_relative '../response'

module Ronin
module Web
Expand Down

0 comments on commit 41af9be

Please sign in to comment.