Skip to content

Commit

Permalink
update for gleam v0.32.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bunopnu committed Nov 1, 2023
1 parent 30aa3f0 commit 29050c4
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: tests

on:
- push
- pull_request
Expand All @@ -14,7 +15,7 @@ jobs:
uses: erlef/setup-beam@v1
with:
otp-version: "26"
gleam-version: "0.31.0"
gleam-version: "0.32.0"
rebar3-version: "3"

- name: Set up Deno
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ To add the library, simply execute the following command:
gleam add glevatar
```

## Compatibility

This library requires Gleam version `0.32.0` or later.

## Example

```gleam
Expand Down
5 changes: 3 additions & 2 deletions gleam.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name = "glevatar"
version = "0.1.0"
version = "0.1.1"
description = "Easily create Gravatar URLs in Gleam"
gleam = ">= 0.32.0"

licences = ["MIT"]
repository = { type = "github", user = "bunopnu", repo = "glevatar" }

[dependencies]
gleam_stdlib = "~> 0.31"
gleam_stdlib = "~> 0.32"
glesha = "~> 0.1"

[dev-dependencies]
Expand Down
6 changes: 3 additions & 3 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_stdlib", version = "0.31.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "6D1BC5B4D4179B9FEE866B1E69FE180AC2CE485AD90047C0B32B2CA984052736" },
{ 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 = "glesha", version = "0.1.2", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "glesha", source = "hex", outer_checksum = "6D9CBEBA0F1AD66D74D8B6992FDD075EC98ABD6FBE7B6DBF78B16943BF121F4C" },
{ name = "glesha", version = "0.1.3", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "glesha", source = "hex", outer_checksum = "8DC5F211670C12870FC36C211B8C0A0FFB07BC83708484174CAE1F9DA4B8AF9F" },
]

[requirements]
gleam_stdlib = { version = "~> 0.31" }
gleam_stdlib = { version = "~> 0.32" }
gleeunit = { version = "~> 0.11" }
glesha = { version = "~> 0.1" }
4 changes: 2 additions & 2 deletions src/glevatar.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import gleam/map
import gleam/int
import gleam/bit_string
import gleam/bit_array
import gleam/uri
import gleam/option
import glesha
Expand Down Expand Up @@ -49,7 +49,7 @@ pub type ImageRating {
pub fn new(email: String) -> GravatarBuilder {
let hash =
email
|> bit_string.from_string()
|> bit_array.from_string()
|> glesha.hash(glesha.Sha256)
|> glesha.encode_hex()

Expand Down

0 comments on commit 29050c4

Please sign in to comment.