diff --git a/gleam.toml b/gleam.toml index 4c5a03b..a5b69cc 100644 --- a/gleam.toml +++ b/gleam.toml @@ -1,5 +1,5 @@ name = "glibsql" -version = "0.1.0" +version = "0.2.0" # Fill out these fields if you intend to generate HTML documentation or publish # your project to the Hex package manager. diff --git a/src/glibsql.gleam b/src/glibsql.gleam index 6b56e6b..545f42c 100644 --- a/src/glibsql.gleam +++ b/src/glibsql.gleam @@ -134,7 +134,7 @@ pub fn build(request: HttpRequest) -> http_request.Request(String) { ) |> http_request.set_header("Content-Type", "application/json") |> http_request.set_header("Accept", "application/json") - |> http_request.set_header("User-Agent", "glibsql/0.1.0") + |> http_request.set_header("User-Agent", "glibsql/0.2.0") |> http_request.set_body(build_json(request)) } diff --git a/test/glibsql_test.gleam b/test/glibsql_test.gleam index 3ec59dc..6a6e582 100644 --- a/test/glibsql_test.gleam +++ b/test/glibsql_test.gleam @@ -18,7 +18,7 @@ pub fn builder_custom_host_test() { |> http_request.set_header("Authorization", "Bearer token") |> http_request.set_header("Content-Type", "application/json") |> http_request.set_header("Accept", "application/json") - |> http_request.set_header("User-Agent", "glibsql/0.1.0") + |> http_request.set_header("User-Agent", "glibsql/0.2.0") |> http_request.set_body("{\"baton\":null,\"requests\":[]}") glibsql.new_http_request() @@ -41,7 +41,7 @@ pub fn builder_no_statements_test() { |> http_request.set_header("Authorization", "Bearer token") |> http_request.set_header("Content-Type", "application/json") |> http_request.set_header("Accept", "application/json") - |> http_request.set_header("User-Agent", "glibsql/0.1.0") + |> http_request.set_header("User-Agent", "glibsql/0.2.0") |> http_request.set_body("{\"baton\":null,\"requests\":[]}") glibsql.new_http_request() @@ -62,7 +62,7 @@ pub fn builder_single_statement_test() { |> http_request.set_header("Authorization", "Bearer token") |> http_request.set_header("Content-Type", "application/json") |> http_request.set_header("Accept", "application/json") - |> http_request.set_header("User-Agent", "glibsql/0.1.0") + |> http_request.set_header("User-Agent", "glibsql/0.2.0") |> http_request.set_body( "{\"baton\":null,\"requests\":[{\"type\":\"execute\",\"stmt\":{\"sql\":\"SELECT * FROM users\"}},{\"type\":\"close\"}]}", ) @@ -87,7 +87,7 @@ pub fn builder_many_statement_test() { |> http_request.set_header("Authorization", "Bearer token") |> http_request.set_header("Content-Type", "application/json") |> http_request.set_header("Accept", "application/json") - |> http_request.set_header("User-Agent", "glibsql/0.1.0") + |> http_request.set_header("User-Agent", "glibsql/0.2.0") |> http_request.set_body( "{\"baton\":null,\"requests\":[{\"type\":\"execute\",\"stmt\":{\"sql\":\"SELECT * FROM users\"}},{\"type\":\"execute\",\"stmt\":{\"sql\":\"SELECT * FROM posts\"}},{\"type\":\"close\"}]}", ) @@ -113,7 +113,7 @@ pub fn builder_clear_statements_test() { |> http_request.set_header("Authorization", "Bearer token") |> http_request.set_header("Content-Type", "application/json") |> http_request.set_header("Accept", "application/json") - |> http_request.set_header("User-Agent", "glibsql/0.1.0") + |> http_request.set_header("User-Agent", "glibsql/0.2.0") |> http_request.set_body("{\"baton\":null,\"requests\":[]}") glibsql.new_http_request() @@ -138,7 +138,7 @@ pub fn builder_baton_test() { |> http_request.set_header("Authorization", "Bearer token") |> http_request.set_header("Content-Type", "application/json") |> http_request.set_header("Accept", "application/json") - |> http_request.set_header("User-Agent", "glibsql/0.1.0") + |> http_request.set_header("User-Agent", "glibsql/0.2.0") |> http_request.set_body( "{\"baton\":\"baton\",\"requests\":[{\"type\":\"close\"}]}", )