diff --git a/gleam.toml b/gleam.toml index b5609d8..a4d5551 100644 --- a/gleam.toml +++ b/gleam.toml @@ -12,7 +12,7 @@ pages = [ ] [dependencies] -gleam_stdlib = ">= 0.46.0 and < 2.0.0" +gleam_stdlib = ">= 0.47.0 and < 2.0.0" gleam_json = ">= 1.0.0 and < 3.0.0" gleam_erlang = ">= 0.25.0 and < 1.0.0" gleam_otp = ">= 0.10.0 and < 1.0.0" diff --git a/manifest.toml b/manifest.toml index a9f206b..1ef0063 100644 --- a/manifest.toml +++ b/manifest.toml @@ -18,7 +18,7 @@ packages = [ { name = "gleam_json", version = "2.1.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_json", source = "hex", outer_checksum = "0A57FB5666E695FD2BEE74C0428A98B0FC11A395D2C7B4CDF5E22C5DD32C74C6" }, { name = "gleam_otp", version = "0.16.0", build_tools = ["gleam"], requirements = ["gleam_erlang", "gleam_stdlib"], otp_app = "gleam_otp", source = "hex", outer_checksum = "FA0EB761339749B4E82D63016C6A18C4E6662DA05BAB6F1346F9AF2E679E301A" }, { name = "gleam_regexp", version = "1.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_regexp", source = "hex", outer_checksum = "A3655FDD288571E90EE9C4009B719FEF59FA16AFCDF3952A76A125AF23CF1592" }, - { name = "gleam_stdlib", version = "0.46.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "53940A91251A6BE9AEBB959D46E1CB45B510551D81342A52213850947732D4AB" }, + { name = "gleam_stdlib", version = "0.47.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "3B22D46743C46498C8355365243327AC731ECD3959216344FA9CF9AD348620AC" }, { name = "glearray", version = "1.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "glearray", source = "hex", outer_checksum = "B99767A9BC63EF9CC8809F66C7276042E5EFEACAA5B25188B552D3691B91AC6D" }, { name = "gleeunit", version = "1.2.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "F7A7228925D3EE7D0813C922E062BFD6D7E9310F0BEE585D3A42F3307E3CFD13" }, { name = "glexer", version = "2.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "glexer", source = "hex", outer_checksum = "25E87F25706749E40C3CDC72D2E52AEA12260B23D14FD9E09A1B524EF393485E" }, @@ -49,7 +49,7 @@ gleam_httpc = { version = ">= 2.2.0 and < 4.0.0" } gleam_json = { version = ">= 1.0.0 and < 3.0.0" } gleam_otp = { version = ">= 0.10.0 and < 1.0.0" } gleam_regexp = { version = ">= 1.0.0 and < 2.0.0" } -gleam_stdlib = { version = ">= 0.46.0 and < 2.0.0" } +gleam_stdlib = { version = ">= 0.47.0 and < 2.0.0" } gleeunit = { version = ">= 1.0.0 and < 2.0.0" } justin_fork = { path = "./vendor/justin_fork" } mist = { version = ">= 1.2.0 and < 4.0.0" } diff --git a/src/chrobot/chrome.gleam b/src/chrobot/chrome.gleam index e0ead4c..eddc44c 100644 --- a/src/chrobot/chrome.gleam +++ b/src/chrobot/chrome.gleam @@ -13,6 +13,7 @@ //// import chrobot/internal/utils +import envoy import filepath as path import gleam/dynamic as d import gleam/erlang/atom @@ -29,7 +30,6 @@ import gleam/result import gleam/string import gleam/string_tree as st import simplifile as file -import envoy pub const default_timeout: Int = 10_000 diff --git a/src/chrobot/install.gleam b/src/chrobot/install.gleam index 7773b33..4d7ec6f 100644 --- a/src/chrobot/install.gleam +++ b/src/chrobot/install.gleam @@ -83,6 +83,7 @@ import chrobot/chrome import chrobot/internal/utils +import envoy import filepath as path import gleam/dynamic import gleam/erlang/os @@ -95,7 +96,6 @@ import gleam/list import gleam/result import gleam/string import simplifile as file -import envoy const version_list_endpoint = "https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json" diff --git a/src/chrobot/internal/utils.gleam b/src/chrobot/internal/utils.gleam index f9d3770..439f53b 100644 --- a/src/chrobot/internal/utils.gleam +++ b/src/chrobot/internal/utils.gleam @@ -1,3 +1,4 @@ +import envoy import gleam/erlang/process.{type CallError, type Subject} as p import gleam/io import gleam/json @@ -5,7 +6,6 @@ import gleam/option.{type Option, None, Some} import gleam/string import gleam_community/ansi import spinner -import envoy /// Very very naive but should be fine fn term_supports_color() -> Bool { diff --git a/test/test_utils.gleam b/test/test_utils.gleam index 5f06afe..408f28a 100644 --- a/test/test_utils.gleam +++ b/test/test_utils.gleam @@ -2,9 +2,9 @@ import chrobot import chrobot/chrome +import envoy import gleeunit/should import simplifile as file -import envoy /// Try to get the path to the browser to use for tests /// If the CHROBOT_TEST_BROWSER_PATH environment variable is not set, this will return an error