Skip to content

Commit

Permalink
Require Inko 0.17.0 or newer
Browse files Browse the repository at this point in the history
Changelog: changed
  • Loading branch information
yorickpeterse committed Oct 28, 2024
1 parent 2dbf137 commit 23cf4c7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ after [xkcd 148](https://xkcd.com/148/).

## Requirements

- Inko 0.15.0 or newer
- Inko 0.17.0 or newer

## Installation

Expand Down
7 changes: 4 additions & 3 deletions inko.pkg
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require https://github.com/yorickpeterse/inko-builder 0.12.0 dfb7877ca9dec2109b0fa940190c210dd3fe4059
require https://github.com/yorickpeterse/inko-markdown 0.16.0 e6d26dd94bd44cdd24fb8a159caa949cfe82891f
require https://github.com/yorickpeterse/inko-syntax 0.9.0 c1a94c3ed62ff4f996d267fc320707a5869a1799
require https://github.com/yorickpeterse/inko-builder 0.13.0 7a38803e1fcd80e19ad2ea8fd90b9babf70e93a6
require https://github.com/yorickpeterse/inko-markdown 0.21.0 3726c10b499242cb3febc931a82e35217e2f987a
require https://github.com/yorickpeterse/inko-syntax 0.12.0 517256f97795fea9cab8d188aa2afef2dbe50685
require inko 0.17.0
9 changes: 5 additions & 4 deletions src/wobsite.inko
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ import std.fs.path (Path)
import std.io
import std.iter (Stream)
import std.json (Json)
import std.stdio (STDERR)
import std.stdio (Stderr)
import std.string (StringBuffer, ToString)
import std.sync (Channel)
import std.sys (exit)
import std.time (DateTime)
import wobsite.fnmatch
Expand Down Expand Up @@ -421,7 +422,7 @@ class pub Site {
fn pub static build(func: fn (mut Site)) {
let source = Path.new('source')
let output = Path.new('public')
let stderr = STDERR.new
let stderr = Stderr.new
let site = match Site.new(source, output) {
case Ok(site) -> site
case Error(e) -> {
Expand Down Expand Up @@ -450,7 +451,7 @@ class pub Site {
# build. If this fails, an `Error(std.io.Error)` is returned.
fn pub static new(source: Path, output: Path) -> Result[Site, io.Error] {
Files.new(source, output).map(fn (files) {
Site(files: files, pending: 0, status: Channel.new(size: 32))
Site(files: files, pending: 0, status: Channel.new)
})
}

Expand Down Expand Up @@ -566,7 +567,7 @@ class pub Site {
}

fn spawn -> Worker {
Worker(files: recover @files.clone, status: @status)
Worker(files: recover @files.clone, status: recover @status.clone)
}
}

Expand Down
2 changes: 1 addition & 1 deletion test/test_wobsite.inko
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import builder.html
import markdown
import markdown.html (Filter)
import std.drop (Drop, drop)
import std.drop (Drop)
import std.env
import std.fs.file (ReadOnlyFile, WriteOnlyFile)
import std.fs.path (Path)
Expand Down

0 comments on commit 23cf4c7

Please sign in to comment.