+1
-1
gleam.toml
+1
-1
gleam.toml
···
13
13
argv = ">= 1.0.2 and < 2.0.0"
14
14
gleam_erlang = ">= 0.25.0 and < 1.0.0"
15
15
rank = ">= 1.0.0 and < 2.0.0"
16
-
glance = ">= 0.11.0 and < 1.0.0"
16
+
glance = ">= 1.0.0 and < 2.0.0"
17
17
filepath = ">= 1.0.0 and < 2.0.0"
18
18
trie_again = ">= 1.1.2 and < 2.0.0"
19
19
simplifile = ">= 2.2.0 and < 3.0.0"
+4
-4
manifest.toml
+4
-4
manifest.toml
···
5
5
{ name = "argv", version = "1.0.2", build_tools = ["gleam"], requirements = [], otp_app = "argv", source = "hex", outer_checksum = "BA1FF0929525DEBA1CE67256E5ADF77A7CDDFE729E3E3F57A5BDCAA031DED09D" },
6
6
{ name = "edit_distance", version = "2.0.1", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "edit_distance", source = "hex", outer_checksum = "A1E485C69A70210223E46E63985FA1008B8B2DDA9848B7897469171B29020C05" },
7
7
{ name = "filepath", version = "1.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "filepath", source = "hex", outer_checksum = "EFB6FF65C98B2A16378ABC3EE2B14124168C0CE5201553DE652E2644DCFDB594" },
8
-
{ name = "glance", version = "0.11.0", build_tools = ["gleam"], requirements = ["gleam_stdlib", "glexer"], otp_app = "glance", source = "hex", outer_checksum = "8F3314D27773B7C3B9FB58D8C02C634290422CE531988C0394FA0DF8676B964D" },
8
+
{ name = "glance", version = "1.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib", "glexer"], otp_app = "glance", source = "hex", outer_checksum = "1510D4A03C28880E62974389E5BF1A5A185036BA07392F1D769620706A9E042F" },
9
9
{ name = "gleam_community_ansi", version = "1.4.1", build_tools = ["gleam"], requirements = ["gleam_community_colour", "gleam_stdlib"], otp_app = "gleam_community_ansi", source = "hex", outer_checksum = "4CD513FC62523053E62ED7BAC2F36136EC17D6A8942728250A9A00A15E340E4B" },
10
10
{ name = "gleam_community_colour", version = "1.4.0", build_tools = ["gleam"], requirements = ["gleam_json", "gleam_stdlib"], otp_app = "gleam_community_colour", source = "hex", outer_checksum = "795964217EBEDB3DA656F5EB8F67D7AD22872EB95182042D3E7AFEF32D3FD2FE" },
11
-
{ name = "gleam_erlang", version = "0.27.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_erlang", source = "hex", outer_checksum = "DE468F676D71B313C6C8C5334425CFCF827837333F8AB47B64D8A6D7AA40185D" },
11
+
{ name = "gleam_erlang", version = "0.28.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_erlang", source = "hex", outer_checksum = "BE551521F708DCE5CB954AFBBDF08519C1C44986521FD40753608825F48FFA9E" },
12
12
{ name = "gleam_json", version = "1.0.1", build_tools = ["gleam"], requirements = ["gleam_stdlib", "thoas"], otp_app = "gleam_json", source = "hex", outer_checksum = "9063D14D25406326C0255BDA0021541E797D8A7A12573D849462CAFED459F6EB" },
13
-
{ name = "gleam_stdlib", version = "0.40.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "86606B75A600BBD05E539EB59FABC6E307EEEA7B1E5865AFB6D980A93BCB2181" },
13
+
{ name = "gleam_stdlib", version = "0.41.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "1B2F80CB1B66B027E3198A2FF71EF3F2F31DF89ED97AD606F25FD387A4C3C1EF" },
14
14
{ name = "gleeunit", version = "1.2.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "F7A7228925D3EE7D0813C922E062BFD6D7E9310F0BEE585D3A42F3307E3CFD13" },
15
15
{ name = "glexer", version = "1.0.1", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "glexer", source = "hex", outer_checksum = "BD477AD657C2B637FEF75F2405FAEFFA533F277A74EF1A5E17B55B1178C228FB" },
16
16
{ name = "justin", version = "1.0.1", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "justin", source = "hex", outer_checksum = "7FA0C6DB78640C6DC5FBFD59BF3456009F3F8B485BF6825E97E1EB44E9A1E2CD" },
···
24
24
argv = { version = ">= 1.0.2 and < 2.0.0" }
25
25
edit_distance = { version = ">= 2.0.1 and < 3.0.0" }
26
26
filepath = { version = ">= 1.0.0 and < 2.0.0" }
27
-
glance = { version = ">= 0.11.0 and < 1.0.0" }
27
+
glance = { version = ">= 1.0.0 and < 2.0.0" }
28
28
gleam_community_ansi = { version = ">= 1.4.0 and < 2.0.0" }
29
29
gleam_erlang = { version = ">= 0.25.0 and < 1.0.0" }
30
30
gleam_stdlib = { version = ">= 0.40.0 and < 1.0.0" }
+3
-3
src/birdie.gleam
+3
-3
src/birdie.gleam
···
264
264
info_lines,
265
265
["---", content],
266
266
]
267
-
|> list.concat
267
+
|> list.flatten
268
268
|> string.join(with: "\n")
269
269
}
270
270
···
574
574
pretty_box(
575
575
"new snapshot",
576
576
content,
577
-
list.concat([snapshot_default_lines(snapshot), additional_info_lines]),
577
+
list.flatten([snapshot_default_lines(snapshot), additional_info_lines]),
578
578
)
579
579
}
580
580
···
595
595
InfoLineWithNoTitle(ansi.green("+ new snapshot"), DoNotSplit),
596
596
],
597
597
]
598
-
|> list.concat,
598
+
|> list.flatten,
599
599
)
600
600
}
601
601
+2
-2
src/birdie/internal/diff.gleam
+2
-2
src/birdie/internal/diff.gleam
···
89
89
// 💡 A possible optimisation could be using a cache and hit that before
90
90
// calling this function. That might make things faster as well.
91
91
case lowest_occurrence_common_item(one, other) {
92
-
None -> list.concat([prefix, suffix])
92
+
None -> list.flatten([prefix, suffix])
93
93
Some(#(item, _, before_a, after_a, before_b, after_b)) ->
94
94
// 💡 A possible optimisation I want to look into is using bags (super
95
95
// fast append only) and turn that into a list only after everything is
96
96
// done. That way we could avoid always repeatedly appending lists.
97
-
list.concat([
97
+
list.flatten([
98
98
prefix,
99
99
lcs(list.reverse(before_a), list.reverse(before_b)),
100
100
[item],