Skip to content

Commit

Permalink
Update for Gleam v0.32
Browse files Browse the repository at this point in the history
  • Loading branch information
lpil committed Nov 7, 2023
1 parent 595f989 commit ab1e168
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 19 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.1
- uses: erlef/setup-beam@v1.15.3
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
with:
otp-version: "25.2"
gleam-version: "0.28.2"
gleam-version: "0.32.3"
rebar3-version: "3"
# elixir-version: "1.14.2"
- run: gleam format --check src test
- run: gleam deps download
- run: gleam test
- run: gleam format --check src test
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v0.2.0 - 2023-11-07

- Updated for Gleam v0.32.0.

## v0.1.0 - 2023-05-01

- Initial release.
3 changes: 2 additions & 1 deletion gleam.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ links = [
{ title = "Website", href = "https://gleam.run" },
{ title = "Sponsor", href = "https://github.com/sponsors/lpil" },
]
gleam = ">= 0.32.0"

[dependencies]
gleam_stdlib = "~> 0.28"
birl = "~> 0.9"

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

packages = [
{ name = "birl", version = "0.9.0", build_tools = ["gleam"], requirements = ["gleam_stdlib", "ranger"], otp_app = "birl", source = "hex", outer_checksum = "D5CA75BEB39A10A310187D2B2FC9407595E80469FD8D06F316836EA346C2FF60" },
{ name = "gleam_json", version = "0.5.1", build_tools = ["gleam"], requirements = ["gleam_stdlib", "thoas"], otp_app = "gleam_json", source = "hex", outer_checksum = "9A805C1E60FB9CD73AF3034EB464268A6B522D937FCD2DF92BD246F2F4B37930" },
{ name = "gleam_stdlib", version = "0.28.1", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "73F0A89FADE5022CBEF6D6C3551F9ADCE7054AFCE0CB1DC4C6D5AB4CA62D0111" },
{ name = "gleeunit", version = "0.10.1", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "ECEA2DE4BE6528D36AFE74F42A21CDF99966EC36D7F25DEB34D47DD0F7977BAF" },
{ name = "ranger", version = "0.2.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "ranger", source = "hex", outer_checksum = "70FF9A5BACD1E6D53C1D7DED93C103671E1C82B033AE254526E907CBC59C848B" },
{ name = "birl", version = "0.17.0", build_tools = ["gleam"], requirements = ["ranger", "gleam_stdlib"], otp_app = "birl", source = "hex", outer_checksum = "AEA55D2329E13E72CB7FCC0FBAE640C453E6C9BF45B8D9DB4D7457F7F5C18F49" },
{ name = "gleam_json", version = "0.7.0", build_tools = ["gleam"], requirements = ["thoas", "gleam_stdlib"], otp_app = "gleam_json", source = "hex", outer_checksum = "CB405BD93A8828BCD870463DE29375E7B2D252D9D124C109E5B618AAC00B86FC" },
{ name = "gleam_stdlib", version = "0.32.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "07D64C26D014CF570F8ACADCE602761EA2E74C842D26F2FD49B0D61973D9966F" },
{ name = "gleeunit", version = "1.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "D3682ED8C5F9CAE1C928F2506DE91625588CC752495988CBE0F5653A42A6F334" },
{ name = "ranger", version = "0.5.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "ranger", source = "hex", outer_checksum = "653A15D0C73E75AD4EC6DE40478F0EBBA1157D0F5BB16FDD454D0C1129C32D41" },
{ name = "thoas", version = "0.4.1", build_tools = ["rebar3"], requirements = [], otp_app = "thoas", source = "hex", outer_checksum = "4918D50026C073C4AB1388437132C77A6F6F7C8AC43C60C13758CC0ADCE2134E" },
]

[requirements]
birl = "~> 0.9"
gleam_json = "~> 0.5"
gleam_stdlib = "~> 0.28"
gleeunit = "~> 0.10"
birl = { version = "~> 0.9" }
gleam_json = { version = "~> 0.5" }
gleam_stdlib = { version = "~> 0.28" }
gleeunit = { version = "~> 1.0" }
8 changes: 4 additions & 4 deletions src/gleam/hexpm.gleam
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import gleam/dynamic.{DecodeError, Dynamic} as dyn
import gleam/map.{Map}
import gleam/option.{None, Option}
import gleam/dynamic.{type DecodeError, type Dynamic, DecodeError} as dyn
import gleam/map.{type Map}
import gleam/option.{type Option, None}
import gleam/function
import gleam/result
import birl/time.{DateTime}
import birl/time.{type DateTime}

/// Information on a package from Hex's `/api/packages` endpoint.
pub type Package {
Expand Down
2 changes: 1 addition & 1 deletion test/gleam/hexpm_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import gleam/hexpm.{
Package, PackageMeta, PackageOwner, PackageRelease, Release, ReleaseMeta,
ReleaseRetirement, Security,
}
import birl/time.{DateTime}
import birl/time.{type DateTime}
import gleeunit/should

pub fn hex_package_decoder_test() {
Expand Down

0 comments on commit ab1e168

Please sign in to comment.