Skip to content

Commit

Permalink
Switched to using require_relative for loading local files (closes #20
Browse files Browse the repository at this point in the history
).
  • Loading branch information
postmodern committed Aug 4, 2024
1 parent 5b63116 commit f151878
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions lib/ronin/web/user_agents.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
#

# browsers
require 'ronin/web/user_agents/chrome'
require 'ronin/web/user_agents/firefox'
require_relative 'user_agents/chrome'
require_relative 'user_agents/firefox'

# crawlers
require 'ronin/web/user_agents/google_bot'
require_relative 'user_agents/google_bot'

require 'ronin/web/user_agents/version'
require_relative 'user_agents/version'

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

require 'ronin/web/user_agents/os/windows'
require 'ronin/web/user_agents/os/mac_os'
require 'ronin/web/user_agents/os/linux'
require 'ronin/web/user_agents/os/android'
require_relative 'os/windows'
require_relative 'os/mac_os'
require_relative 'os/linux'
require_relative 'os/android'

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

require 'ronin/web/user_agents/os/windows'
require 'ronin/web/user_agents/os/mac_os'
require 'ronin/web/user_agents/os/linux'
require 'ronin/web/user_agents/os/android'
require 'ronin/web/user_agents/data_dir'
require_relative 'os/windows'
require_relative 'os/mac_os'
require_relative 'os/linux'
require_relative 'os/android'
require_relative 'data_dir'

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

require 'ronin/web/user_agents/chrome'
require_relative 'chrome'

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

require 'ronin/web/user_agents/data_dir'
require_relative '../data_dir'

module Ronin
module Web
Expand Down

0 comments on commit f151878

Please sign in to comment.