Current section
3 Versions
Jump to
Current section
3 Versions
Compare versions
6
files changed
+15
additions
-10
deletions
| @@ -14,6 +14,10 @@ To add the library, simply execute the following command: | |
| 14 14 | gleam add glevatar |
| 15 15 | ``` |
| 16 16 | |
| 17 | + ## Compatibility |
| 18 | + |
| 19 | + This library requires Gleam version `0.32.0` or later. |
| 20 | + |
| 17 21 | ## Example |
| 18 22 | |
| 19 23 | ```gleam |
| @@ -26,7 +30,7 @@ gleam add glevatar | |
| 26 30 | |
| 27 31 | ## Documentation |
| 28 32 | |
| 29 | - Consult the [HexDocs](https://hexdocs.pm/glavatar/) for API reference. |
| 33 | + Consult the [HexDocs](https://hexdocs.pm/glevatar/) for API reference. |
| 30 34 | |
| 31 35 | ## License |
| @@ -1,12 +1,13 @@ | |
| 1 1 | name = "glevatar" |
| 2 | - version = "0.1.0" |
| 2 | + version = "0.1.1" |
| 3 3 | description = "Easily create Gravatar URLs in Gleam" |
| 4 | + gleam = ">= 0.32.0" |
| 4 5 | |
| 5 6 | licences = ["MIT"] |
| 6 7 | repository = { type = "github", user = "bunopnu", repo = "glevatar" } |
| 7 8 | |
| 8 9 | [dependencies] |
| 9 | - gleam_stdlib = "~> 0.31" |
| 10 | + gleam_stdlib = "~> 0.32" |
| 10 11 | glesha = "~> 0.1" |
| 11 12 | |
| 12 13 | [dev-dependencies] |
| @@ -1,6 +1,6 @@ | |
| 1 1 | {<<"name">>, <<"glevatar">>}. |
| 2 2 | {<<"app">>, <<"glevatar">>}. |
| 3 | - {<<"version">>, <<"0.1.0">>}. |
| 3 | + {<<"version">>, <<"0.1.1">>}. |
| 4 4 | {<<"description">>, <<"Easily create Gravatar URLs in Gleam">>}. |
| 5 5 | {<<"licenses">>, [<<"MIT">>]}. |
| 6 6 | {<<"build_tools">>, [<<"gleam">>]}. |
| @@ -11,7 +11,7 @@ | |
| 11 11 | {<<"gleam_stdlib">>, [ |
| 12 12 | {<<"app">>, <<"gleam_stdlib">>}, |
| 13 13 | {<<"optional">>, false}, |
| 14 | - {<<"requirement">>, <<"~> 0.31">>} |
| 14 | + {<<"requirement">>, <<"~> 0.32">>} |
| 15 15 | ]}, |
| 16 16 | {<<"glesha">>, [ |
| 17 17 | {<<"app">>, <<"glesha">>}, |
| @@ -1,5 +1,5 @@ | |
| 1 1 | {application, glevatar, [ |
| 2 | - {vsn, "0.1.0"}, |
| 2 | + {vsn, "0.1.1"}, |
| 3 3 | {applications, [gleam_stdlib, |
| 4 4 | gleeunit, |
| 5 5 | glesha]}, |
| @@ -1,5 +1,5 @@ | |
| 1 1 | -module(glevatar). |
| 2 | - -compile([no_auto_import, nowarn_unused_vars]). |
| 2 | + -compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function]). |
| 3 3 | |
| 4 4 | -export([new/1, set_size/2, set_default_image/2, set_rating/2, to_uri/1, to_string/1]). |
| 5 5 | -export_type([default_image/0, image_rating/0]). |
| @@ -20,7 +20,7 @@ | |
| 20 20 | new(Email) -> |
| 21 21 | Hash = begin |
| 22 22 | _pipe = Email, |
| 23 | - _pipe@1 = gleam@bit_string:from_string(_pipe), |
| 23 | + _pipe@1 = gleam_stdlib:identity(_pipe), |
| 24 24 | _pipe@2 = sha2_ffi:hash(_pipe@1, sha256), |
| 25 25 | sha2_ffi:encode_hex(_pipe@2) |
| 26 26 | end, |
Loading more files…