From e35f26eb4a034aad8a531986bf876075ffb02e3c Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Tue, 16 Jan 2024 21:57:50 +0000 Subject: [PATCH] New Gleam version --- .github/workflows/test.yml | 2 +- manifest.toml | 4 ++-- .../lesson04_externals/code.gleam | 1 - src/try_gleam.gleam | 7 +++---- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 916850a..45b6d3d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,7 @@ jobs: - uses: erlef/setup-beam@v1 with: otp-version: "26.0.2" - gleam-version: "0.33.0" + gleam-version: "0.34.0" rebar3-version: "3" # elixir-version: "1.15.4" - run: gleam deps download diff --git a/manifest.toml b/manifest.toml index 95087ca..98ff320 100644 --- a/manifest.toml +++ b/manifest.toml @@ -3,9 +3,9 @@ packages = [ { name = "gleam_stdlib", version = "0.34.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "1FB8454D2991E9B4C0C804544D8A9AD0F6184725E20D63C3155F0AEB4230B016" }, - { name = "gleeunit", version = "1.0.1", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "4E75DCF846D653848094169304743DFFB386E3AECCCF611F99ADB735FF4D4DD9" }, + { name = "gleeunit", version = "1.0.2", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "D364C87AFEB26BDB4FB8A5ABDE67D635DC9FA52D6AB68416044C35B096C6882D" }, { name = "htmb", version = "1.1.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "htmb", source = "hex", outer_checksum = "30D448F0E15DFCF7283AAAC2F351D77B9D54E318219C9FDDB1877572B67C27B7" }, - { name = "simplifile", version = "1.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "simplifile", source = "hex", outer_checksum = "0BD6F0E7DA1A7E11D18B8AD48453225CAFCA4C8CFB4513D217B372D2866C501C" }, + { name = "simplifile", version = "1.2.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "simplifile", source = "hex", outer_checksum = "359CD7006E2F69255025C858CCC6407C11A876EC179E6ED1E46809E8DC6B1AAD" }, { name = "snag", version = "0.3.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "snag", source = "hex", outer_checksum = "54D32E16E33655346AA3E66CBA7E191DE0A8793D2C05284E3EFB90AD2CE92BCC" }, ] diff --git a/src/content/chapter5_advance_features/lesson04_externals/code.gleam b/src/content/chapter5_advance_features/lesson04_externals/code.gleam index be4aff0..ade2c54 100644 --- a/src/content/chapter5_advance_features/lesson04_externals/code.gleam +++ b/src/content/chapter5_advance_features/lesson04_externals/code.gleam @@ -15,4 +15,3 @@ pub fn now() -> DateTime pub fn main() { io.debug(now()) } - diff --git a/src/try_gleam.gleam b/src/try_gleam.gleam index 63432b8..0f701c8 100644 --- a/src/try_gleam.gleam +++ b/src/try_gleam.gleam @@ -121,9 +121,7 @@ fn load_lesson(chapter_path: String, names: FileNames) -> snag.Result(Lesson) { name: names.name, text: text, code: code, - path: chapter_path - <> "/" - <> names.slug, + path: chapter_path <> "/" <> names.slug, previous: None, next: None, )) @@ -436,7 +434,8 @@ fn lesson_html(page: Lesson) -> String { ]), h("article", [#("id", "playground")], [ h("section", [#("id", "left")], [ - htmb.dangerous_unescaped_fragment(string_builder.from_string(page.text, + htmb.dangerous_unescaped_fragment(string_builder.from_string( + page.text, )), h("nav", [#("class", "prev-next")], [ navlink("Back", page.previous),