Skip to content

Commit

Permalink
Bump gleam and dep versions (#7)
Browse files Browse the repository at this point in the history
* feat: bump gleam and dep versions

* fix: format
  • Loading branch information
brettkolodny authored Dec 22, 2023
1 parent 7ae40d4 commit 0d1603f
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: erlef/setup-beam@v1
with:
otp-version: "26.1"
gleam-version: "0.32.4"
gleam-version: "0.33.0"

- run: |
version="v$(cat gleam.toml | grep -m 1 "version" | sed -r "s/version *= *\"([[:digit:].]+)\"/\1/")"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: erlef/setup-beam@v1
with:
otp-version: "26.1"
gleam-version: "0.32.4"
gleam-version: "0.33.0"

- run: gleam format --check

Expand Down
10 changes: 5 additions & 5 deletions gleam.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name = "gleam_community_ansi"
version = "1.2.0"
version = "1.3.0"
licences = ["Apache-2.0"]
description = "ANSI colours, formatting, and control codes"
repository = { type = "github", user = "gleam-community", repo = "ansi" }
gleam = ">= 0.32.0"
gleam = ">= 0.33.0"

[dependencies]
gleam_stdlib = "~> 0.32"
gleam_community_colour = "~> 1.2"
gleam_stdlib = "~> 0.34"
gleam_community_colour = "~> 1.3"

[dev-dependencies]
gleeunit = "~> 0.11"
gleeunit = "~> 1.0"
12 changes: 6 additions & 6 deletions manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
# You typically do not need to edit this file

packages = [
{ name = "gleam_community_colour", version = "1.2.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_community_colour", source = "hex", outer_checksum = "036C206886AFB9F153C552700A7A0B4D2864E3BC96A20C77E5F34A013C051BE3" },
{ name = "gleam_stdlib", version = "0.32.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "07D64C26D014CF570F8ACADCE602761EA2E74C842D26F2FD49B0D61973D9966F" },
{ name = "gleeunit", version = "0.11.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "1397E5C4AC4108769EE979939AC39BF7870659C5AFB714630DEEEE16B8272AD5" },
{ name = "gleam_community_colour", version = "1.3.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_community_colour", source = "hex", outer_checksum = "A49A5E3AE8B637A5ACBA80ECB9B1AFE89FD3D5351FF6410A42B84F666D40D7D5" },
{ 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.2", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "D364C87AFEB26BDB4FB8A5ABDE67D635DC9FA52D6AB68416044C35B096C6882D" },
]

[requirements]
gleam_community_colour = { version = "~> 1.2" }
gleam_stdlib = { version = "~> 0.32" }
gleeunit = { version = "~> 0.11" }
gleam_community_colour = { version = "~> 1.3" }
gleam_stdlib = { version = "~> 0.34" }
gleeunit = { version = "~> 1.0" }
15 changes: 12 additions & 3 deletions src/gleam_community/ansi.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,18 @@ fn code(open: List(Int), close: Int) -> Code {
let open_strs = list.map(open, int.to_string)

Code(
open: asci_escape_character <> "[" <> string.join(open_strs, ";") <> "m",
close: asci_escape_character <> "[" <> close_str <> "m",
regexp: asci_escape_character <> "[" <> close_str <> "m",
open: asci_escape_character
<> "["
<> string.join(open_strs, ";")
<> "m",
close: asci_escape_character
<> "["
<> close_str
<> "m",
regexp: asci_escape_character
<> "["
<> close_str
<> "m",
)
}

Expand Down

0 comments on commit 0d1603f

Please sign in to comment.