Skip to content

Commit

Permalink
bump to gleam 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
TanklesXL committed Jun 6, 2024
1 parent c461193 commit 113ce12
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 31 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
uses: TanklesXL/gleam_actions/.github/workflows/release.yaml@main
secrets: inherit
with:
gleam_version: 1.1.0
erlang_version: 26
gleam_version: 1.2.1
erlang_version: 27
test_erlang: true
test_node: true
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ jobs:
test:
uses: TanklesXL/gleam_actions/.github/workflows/test.yaml@main
with:
gleam_version: 1.1.0
gleam_version: 1.2.1
test_node: true
test_erlang: true
2 changes: 1 addition & 1 deletion .mise.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[tools]
gleam = "1.1.0"
gleam = "1.2.1"
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# glint

> [!WARNING]
> This README is being updated in preparation for glint `v1.0.0`. For documentation on the latest released glint versions please see [hexdocs](https://hexdocs.pm/glint/).
> This README is being updated in preparation for glint `v1.0.0`. For documentation on the latest released glint versions please see [hexdocs](https://hexdocs.pm/glint/). Note that by default `gleam add glint` will give you the latest non pre-release version of glint which at the moment is `v0.18.1`.
[![Hex Package](https://img.shields.io/hexpm/v/glint?color=ffaff3&label=%F0%9F%93%A6)](https://hex.pm/packages/glint)
[![Hex.pm](https://img.shields.io/hexpm/dt/glint?color=ffaff3)](https://hex.pm/packages/glint)
Expand Down Expand Up @@ -104,7 +104,7 @@ pub fn main() {
// with an app name of "hello", this is used when printing help text
|> glint.with_name("hello")
// with pretty help enabled, using the built-in colours
|> glint.with_pretty_help(glint.default_pretty_help())
|> glint.pretty_help(glint.default_pretty_help())
// with a root command that executes the `hello` function
|> glint.add(at: [], do: hello)
// execute given arguments from stdin
Expand Down
2 changes: 1 addition & 1 deletion gleam.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = "glint"
version = "1.0.0-rc2"
version = "1.0.0"

# Fill out these fields if you intend to generate HTML documentation or publishname = "glint"
# your project to the Hex package manager.
Expand Down
48 changes: 24 additions & 24 deletions test/contraint_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@ pub fn flag_one_of_none_of_test() {
let #(test_flag, success, failure) = #(
glint.ints_flag("li")
|> glint.flag_constraint(
[1, 2, 3]
|> constraint.one_of
|> constraint.each,
)
[1, 2, 3]
|> constraint.one_of
|> constraint.each,
)
|> glint.flag_constraint(
[4, 5, 6]
|> constraint.none_of
|> constraint.each,
),
[4, 5, 6]
|> constraint.none_of
|> constraint.each,
),
"1,1,1",
"2,2,6",
)
Expand Down Expand Up @@ -149,15 +149,15 @@ pub fn flag_one_of_none_of_test() {
let #(test_flag, success, failure) = #(
glint.floats_flag("lf")
|> glint.flag_constraint(
[1.0, 2.0, 3.0]
|> constraint.one_of()
|> constraint.each,
)
[1.0, 2.0, 3.0]
|> constraint.one_of()
|> constraint.each,
)
|> glint.flag_constraint(
[4.0, 5.0, 6.0]
|> constraint.none_of()
|> constraint.each,
),
[4.0, 5.0, 6.0]
|> constraint.none_of()
|> constraint.each,
),
"3.0,2.0,1.0",
"2.0,3.0,6.0",
)
Expand Down Expand Up @@ -212,15 +212,15 @@ pub fn flag_one_of_none_of_test() {
let #(test_flag, success, failure) = #(
glint.strings_flag("ls")
|> glint.flag_constraint(
["t1", "t2", "t3"]
|> constraint.one_of
|> constraint.each,
)
["t1", "t2", "t3"]
|> constraint.one_of
|> constraint.each,
)
|> glint.flag_constraint(
["t4", "t5", "t6"]
|> constraint.none_of
|> constraint.each,
),
["t4", "t5", "t6"]
|> constraint.none_of
|> constraint.each,
),
"t3,t2,t1",
"t2,t4,t1",
)
Expand Down

0 comments on commit 113ce12

Please sign in to comment.