Skip to content

Commit

Permalink
Bump gleam to 1.1.0 and deps
Browse files Browse the repository at this point in the history
  • Loading branch information
adz committed May 27, 2024
1 parent c482cc7 commit 0e0a3ab
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
erlang 26.2.2
gleam 1.0.0
gleam 1.1.0
rebar 3.22.1
18 changes: 9 additions & 9 deletions manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@

packages = [
{ name = "certifi", version = "2.12.0", build_tools = ["rebar3"], requirements = [], otp_app = "certifi", source = "hex", outer_checksum = "EE68D85DF22E554040CDB4BE100F33873AC6051387BAF6A8F6CE82272340FF1C" },
{ name = "gleam_erlang", version = "0.24.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_erlang", source = "hex", outer_checksum = "26BDB52E61889F56A291CB34167315780EE4AA20961917314446542C90D1C1A0" },
{ name = "gleam_hackney", version = "1.2.0", build_tools = ["gleam"], requirements = ["hackney", "gleam_http", "gleam_stdlib"], otp_app = "gleam_hackney", source = "hex", outer_checksum = "066B1A55D37DBD61CC72A1C4EDE43C6015B1797FAF3818C16FE476534C7B6505" },
{ name = "gleam_http", version = "3.5.3", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_http", source = "hex", outer_checksum = "C2FC3322203B16F897C1818D9810F5DEFCE347F0751F3B44421E1261277A7373" },
{ name = "gleam_json", version = "1.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib", "thoas"], otp_app = "gleam_json", source = "hex", outer_checksum = "8B197DD5D578EA6AC2C0D4BDC634C71A5BCA8E7DB5F47091C263ECB411A60DF3" },
{ 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" },
{ name = "hackney", version = "1.20.1", build_tools = ["rebar3"], requirements = ["parse_trans", "certifi", "mimerl", "metrics", "idna", "ssl_verify_fun", "unicode_util_compat"], otp_app = "hackney", source = "hex", outer_checksum = "FE9094E5F1A2A2C0A7D10918FEE36BFEC0EC2A979994CFF8CFE8058CD9AF38E3" },
{ name = "gleam_erlang", version = "0.25.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_erlang", source = "hex", outer_checksum = "054D571A7092D2A9727B3E5D183B7507DAB0DA41556EC9133606F09C15497373" },
{ name = "gleam_hackney", version = "1.2.0", build_tools = ["gleam"], requirements = ["gleam_http", "gleam_stdlib", "hackney"], otp_app = "gleam_hackney", source = "hex", outer_checksum = "066B1A55D37DBD61CC72A1C4EDE43C6015B1797FAF3818C16FE476534C7B6505" },
{ name = "gleam_http", version = "3.6.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_http", source = "hex", outer_checksum = "8C07DF9DF8CC7F054C650839A51C30A7D3C26482AC241C899C1CEA86B22DBE51" },
{ name = "gleam_json", version = "1.0.1", build_tools = ["gleam"], requirements = ["gleam_stdlib", "thoas"], otp_app = "gleam_json", source = "hex", outer_checksum = "9063D14D25406326C0255BDA0021541E797D8A7A12573D849462CAFED459F6EB" },
{ name = "gleam_stdlib", version = "0.38.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "663CF11861179AF415A625307447775C09404E752FF99A24E2057C835319F1BE" },
{ name = "gleeunit", version = "1.1.2", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "72CDC3D3F719478F26C4E2C5FED3E657AC81EC14A47D2D2DEBB8693CA3220C3B" },
{ name = "hackney", version = "1.20.1", build_tools = ["rebar3"], requirements = ["certifi", "idna", "metrics", "mimerl", "parse_trans", "ssl_verify_fun", "unicode_util_compat"], otp_app = "hackney", source = "hex", outer_checksum = "FE9094E5F1A2A2C0A7D10918FEE36BFEC0EC2A979994CFF8CFE8058CD9AF38E3" },
{ name = "idna", version = "6.1.1", build_tools = ["rebar3"], requirements = ["unicode_util_compat"], otp_app = "idna", source = "hex", outer_checksum = "92376EB7894412ED19AC475E4A86F7B413C1B9FBB5BD16DCCD57934157944CEA" },
{ name = "metrics", version = "1.0.1", build_tools = ["rebar3"], requirements = [], otp_app = "metrics", source = "hex", outer_checksum = "69B09ADDDC4F74A40716AE54D140F93BEB0FB8978D8636EADED0C31B6F099F16" },
{ name = "mimerl", version = "1.2.0", build_tools = ["rebar3"], requirements = [], otp_app = "mimerl", source = "hex", outer_checksum = "F278585650AA581986264638EBF698F8BB19DF297F66AD91B18910DFC6E19323" },
{ name = "mimerl", version = "1.3.0", build_tools = ["rebar3"], requirements = [], otp_app = "mimerl", source = "hex", outer_checksum = "A1E15A50D1887217DE95F0B9B0793E32853F7C258A5CD227650889B38839FE9D" },
{ name = "parse_trans", version = "3.4.1", build_tools = ["rebar3"], requirements = [], otp_app = "parse_trans", source = "hex", outer_checksum = "620A406CE75DADA827B82E453C19CF06776BE266F5A67CFF34E1EF2CBB60E49A" },
{ name = "ssl_verify_fun", version = "1.1.7", build_tools = ["mix", "rebar3", "make"], requirements = [], otp_app = "ssl_verify_fun", source = "hex", outer_checksum = "FE4C190E8F37401D30167C8C405EDA19469F34577987C76DDE613E838BBC67F8" },
{ name = "thoas", version = "0.4.1", build_tools = ["rebar3"], requirements = [], otp_app = "thoas", source = "hex", outer_checksum = "4918D50026C073C4AB1388437132C77A6F6F7C8AC43C60C13758CC0ADCE2134E" },
{ name = "thoas", version = "1.2.1", build_tools = ["rebar3"], requirements = [], otp_app = "thoas", source = "hex", outer_checksum = "E38697EDFFD6E91BD12CEA41B155115282630075C2A727E7A6B2947F5408B86A" },
{ name = "unicode_util_compat", version = "0.7.0", build_tools = ["rebar3"], requirements = [], otp_app = "unicode_util_compat", source = "hex", outer_checksum = "25EEE6D67DF61960CF6A794239566599B09E17E668D3700247BC498638152521" },
]

Expand Down
2 changes: 1 addition & 1 deletion src/glow_auth.gleam
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import gleam/uri.{type Uri}
import gleam/http/request.{type Request}
import gleam/string
import gleam/uri.{type Uri}

fn build_bearer_token(token: String) -> String {
["Bearer", token]
Expand Down
4 changes: 2 additions & 2 deletions src/glow_auth/access_token.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
//// ...the intention is to generate this from the response given when
//// sending a token request.

import gleam/option.{type Option, None, Some}
import gleam/erlang.{Second}
import gleam/dynamic.{type DecodeError, type Dynamic}
import gleam/erlang.{Second}
import gleam/json
import gleam/option.{type Option, None, Some}
import gleam/string

/// Represents a token returned from an oauth2 provider
Expand Down
2 changes: 1 addition & 1 deletion src/glow_auth/authorize_uri.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
//// * Typically are registered in advance of usage
//// * Receiving response SHOULD NOT do js, but redirect again without exposing creds

import gleam/uri.{type Uri, Uri}
import gleam/option.{type Option, None, Some}
import gleam/uri.{type Uri, Uri}
import glow_auth.{type Client}
import glow_auth/uri/uri_builder.{type UriAppendage}

Expand Down
6 changes: 3 additions & 3 deletions src/glow_auth/content_type.gleam
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
//// WIP -- not used, but the idea is to help out in decode of access token...

import gleam/string
import gleam/list
import gleam/result
import gleam/http.{type Header}
import gleam/http/request.{type Request}
import gleam/list
import gleam/result
import gleam/string

pub fn content_type_from_request(request: Request(body)) -> String {
case get_content_type_header(request.headers) {
Expand Down
4 changes: 2 additions & 2 deletions src/glow_auth/token_request.gleam
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
//// Token Request functions.

import gleam/string
import gleam/bit_array
import gleam/uri.{type Uri}
import gleam/http/request.{type Request}
import gleam/string
import gleam/uri.{type Uri}
import glow_auth.{type Client}
import glow_auth/token_request_builder.{type TokenRequestBuilder}
import glow_auth/uri/uri_builder.{type UriAppendage}
Expand Down
6 changes: 3 additions & 3 deletions src/glow_auth/token_request_builder.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
//// * If different, MUST include `scope` in response
//// * A default must be defined

import gleam/uri.{type Uri}
import gleam/option
import gleam/result
import gleam/http.{type Scheme}
import gleam/http/request.{type Request, Request}
import gleam/option
import gleam/result
import gleam/uri.{type Uri}
import glow_auth/uri/params.{type Params}

pub type TokenRequestBuilder(body) {
Expand Down
4 changes: 2 additions & 2 deletions src/glow_auth/uri/uri_builder.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
//// or full Uri via an explicit UriAppendage type.
////

import gleam/uri.{type Uri, Uri}
import gleam/string
import gleam/uri.{type Uri, Uri}

/// Uri Appendage defines a few handy ways of appending to an existing Uri.
///
Expand Down Expand Up @@ -47,7 +47,7 @@ pub fn append(to uri: Uri, with appendage: UriAppendage) -> Uri {
Uri(
..uri,
path: [uri.path, path]
|> string.join("/"),
|> string.join("/"),
)
FullPath(path) -> Uri(..uri, path: path)
FullUri(uri) -> uri
Expand Down
6 changes: 3 additions & 3 deletions test/glow_auth/access_token_test.gleam
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import gleeunit/should
import glow_auth/access_token.{AccessToken}
import gleam/dynamic
import gleam/dict
import gleam/dynamic
import gleam/option.{None, Some}
import gleeunit/should
import glow_auth/access_token.{AccessToken}

pub fn token() {
access_token.new("123")
Expand Down
10 changes: 5 additions & 5 deletions test/glow_auth_test.gleam
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import gleeunit
import gleeunit/should
import gleam/option.{None}
import gleam/http
import gleam/uri
import gleam/http/request.{type Request, Request}
import glow_auth
import gleam/option.{None}
import gleam/result
import gleam/uri
import gleeunit
import gleeunit/should
import glow_auth

pub fn main() {
gleeunit.main()
Expand Down

0 comments on commit 0e0a3ab

Please sign in to comment.