Skip to content

Commit

Permalink
update stdlib dep
Browse files Browse the repository at this point in the history
  • Loading branch information
bcpeinhardt committed Jan 9, 2024
1 parent 7115ec3 commit dbe94fb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

## v1.1.2 - 9 January 2024
- Update stdlib dep to 0.33

## v1.1.1 - 5 January 2024
- Fix bug with double "/" from `get_files`

Expand Down
4 changes: 2 additions & 2 deletions gleam.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = "simplifile"
version = "1.1.1"
version = "1.1.2"
description = "Basic file operations that work on all targets"

licences = ["Apache-2.0"]
Expand All @@ -11,7 +11,7 @@ gleam = ">= 0.32.0"
allow_all = true

[dependencies]
gleam_stdlib = "~> 0.29"
gleam_stdlib = "~> 0.33"

[dev-dependencies]
gleeunit = "~> 1.0"
6 changes: 3 additions & 3 deletions manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# You typically do not need to edit this file

packages = [
{ name = "gleam_stdlib", version = "0.32.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "07D64C26D014CF570F8ACADCE602761EA2E74C842D26F2FD49B0D61973D9966F" },
{ name = "gleeunit", version = "1.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "D3682ED8C5F9CAE1C928F2506DE91625588CC752495988CBE0F5653A42A6F334" },
{ 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" },
]

[requirements]
gleam_stdlib = { version = "~> 0.29" }
gleam_stdlib = { version = "~> 0.33" }
gleeunit = { version = "~> 1.0" }
9 changes: 5 additions & 4 deletions src/simplifile.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,8 @@ pub fn is_file(filepath: String) -> Bool {
pub fn create_file(at filepath: String) -> Result(Nil, FileError) {
case
filepath
|> is_file || filepath
|> is_file
|| filepath
|> is_directory
{
True -> Error(Eexist)
Expand Down Expand Up @@ -413,9 +414,9 @@ pub fn file_permissions_to_octal(permissions: FilePermissions) -> Int {
|> int.sum
}

make_permission_digit(permissions.user) * 64 + make_permission_digit(
permissions.group,
) * 8 + make_permission_digit(permissions.other)
make_permission_digit(permissions.user) * 64
+ make_permission_digit(permissions.group) * 8
+ make_permission_digit(permissions.other)
}

/// Sets the permissions for a given file
Expand Down

0 comments on commit dbe94fb

Please sign in to comment.