Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
philipgiuliani committed Jun 21, 2024
1 parent fae52b6 commit a347eae
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
with:
otp-version: "26.2.2"
gleam-version: "1.0.0-rc2"
otp-version: "27.0"
gleam-version: "1.2.1"
rebar3-version: "3"
# elixir-version: "1.15.4"
- run: gleam deps download
Expand Down
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
gleam 1.0.0-rc2
erlang 26
gleam 1.2.1
erlang 27
2 changes: 1 addition & 1 deletion src/glubs/internal/timestamp.gleam
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import gleam/int
import gleam/result
import gleam/string
import gleam/string_builder.{type StringBuilder}
import gleam/int

// Parses the given string to a timestamp.
pub fn parse(input: String, fraction_sep: String) -> Result(Int, Nil) {
Expand Down
4 changes: 2 additions & 2 deletions src/glubs/srt.gleam
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import gleam/string
import gleam/int
import gleam/list
import gleam/result
import gleam/int
import gleam/string
import gleam/string_builder.{type StringBuilder}
import glubs/internal/timestamp

Expand Down
6 changes: 3 additions & 3 deletions src/glubs/webvtt.gleam
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import gleam/list
import gleam/option.{type Option, None, Some}
import gleam/string
import gleam/result
import gleam/list
import gleam/string
import gleam/string_builder.{type StringBuilder}
import glubs/internal/timestamp

Expand Down Expand Up @@ -46,7 +46,7 @@ pub fn parse(webvtt: String) -> Result(WebVTT, String) {

/// Converts a WebVTT type to a string.
pub fn to_string(webvtt: WebVTT) -> String {
let assert WebVTT(metadata: metadata, comment: comment, items: items) = webvtt
let WebVTT(metadata: metadata, comment: comment, items: items) = webvtt

[
header_to_string(comment),
Expand Down
4 changes: 2 additions & 2 deletions test/glubs/srt_test.gleam
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import simplifile
import glubs/srt.{type Srt, Cue, Srt}
import gleeunit/should
import glubs/srt.{type Srt, Cue, Srt}
import simplifile

pub fn parse_example_test() {
let assert Ok(content) = simplifile.read("test/fixtures/example.srt")
Expand Down
2 changes: 1 addition & 1 deletion test/glubs/webvtt_test.gleam
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import gleeunit/should
import gleam/option.{None, Some}
import gleeunit/should
import glubs/webvtt.{Cue, EndTag, Note, StartTag, Style, Text, Timestamp, WebVTT}
import simplifile

Expand Down

0 comments on commit a347eae

Please sign in to comment.