Skip to content

Commit

Permalink
chore: Bump to 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
custompro98 committed Jul 11, 2024
1 parent 6570ac8 commit 8d5a681
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion gleam.toml
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/glibsql.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

Expand Down
12 changes: 6 additions & 6 deletions test/glibsql_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand All @@ -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\"}]}",
)
Expand All @@ -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\"}]}",
)
Expand All @@ -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()
Expand All @@ -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\"}]}",
)
Expand Down

0 comments on commit 8d5a681

Please sign in to comment.