From 9b51914297923737f560f6e17837fca5827d15e0 Mon Sep 17 00:00:00 2001 From: Anton Maminov Date: Thu, 18 Nov 2021 11:24:57 +0200 Subject: [PATCH] require external dependencies in main file --- src/mechanize.cr | 2 ++ src/mechanize/file.cr | 2 -- src/mechanize/http/agent.cr | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/mechanize.cr b/src/mechanize.cr index d728b10..bbec91a 100644 --- a/src/mechanize.cr +++ b/src/mechanize.cr @@ -1,3 +1,5 @@ +require "uri" +require "http/client" require "lexbor" require "./mechanize/http/agent" require "./mechanize/form" diff --git a/src/mechanize/file.cr b/src/mechanize/file.cr index 9ec0b40..be8436c 100644 --- a/src/mechanize/file.cr +++ b/src/mechanize/file.cr @@ -1,5 +1,3 @@ -require "http/client" - class Mechanize abstract class File # property :filename diff --git a/src/mechanize/http/agent.cr b/src/mechanize/http/agent.cr index 1cb1458..e0d9461 100644 --- a/src/mechanize/http/agent.cr +++ b/src/mechanize/http/agent.cr @@ -1,5 +1,3 @@ -require "uri" -require "http/client" require "../cookie" require "../history"