10000 Require Inko 0.16.0 or newer · yorickpeterse/clogs@3dab6ce · GitHub
[go: up one dir, main page]

Skip to content

Commit

Permalink
Require Inko 0.16.0 or newer
Browse files Browse the repository at this point in the history
Changelog: changed
  • Loading branch information
yorickpeterse committed Aug 14, 2024
1 parent 6825940 commit 3dab6ce
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
1 change: 1 addition & 0 deletions inko.pkg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require inko 0.16.0
8 changes: 2 additions & 6 deletions src/clogs/git.inko
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,9 @@ class Output {

impl Iter[String] for Output {
fn pub mut next -> Option[String] {
match @stdout.read_line(@buffer) {
match @stdout.read_line(@buffer, inclusive: false) {
case Ok(0) -> Option.None
case Ok(_) -> {
if @buffer.last.or(0) == LF { @buffer.pop }

Option.Some(@buffer.drain_to_string)
}
case Ok(_) -> Option.Some(@buffer.drain_to_string)
# Pipe errors should be rare, and possibly never occur in the first place.
# Even if they do occur, there's nothing really useful you can do with the
# error, short of restarting the program and trying again.
Expand Down
2 changes: 1 addition & 1 deletion src/clogs/version.inko
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Version {
let @patch: Int

fn static from_tag(name: String) -> Option[Version] {
parse(name.strip_prefix('v'))
parse(name.strip_prefix('v').or(name))
}

fn static parse(input: String) -> Option[Version] {
Expand Down

0 comments on commit 3dab6ce

Please sign in to comment.
0