diff --git a/README.md b/README.md index 9976967..bea5076 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ website](https://inko-lang.org/). ## Requirements -- Inko 0.16.0 or newer +- Inko 0.17.0 or newer ## Development diff --git a/inko.pkg b/inko.pkg index ae5a7c9..6b6c9ce 100644 --- a/inko.pkg +++ b/inko.pkg @@ -1,5 +1,5 @@ -require https://github.com/yorickpeterse/inko-wobsite 0.18.0 0059ab6b2eec4b72d2b94025733ec464688d2d02 +require https://github.com/yorickpeterse/inko-wobsite 0.19.0 fa5e47733423aa6a902028e69de5a374a1757377 require https://github.com/yorickpeterse/inko-builder 0.13.0 7a38803e1fcd80e19ad2ea8fd90b9babf70e93a6 -require https://github.com/yorickpeterse/inko-markdown 0.20.1 3fd768dc4c2ffdb310fe5190fdb7c2de5760317d -require https://github.com/yorickpeterse/inko-syntax 0.11.0 6ce493b98401f41771000ed05cd16dcee454aaba -require inko 0.16.0 +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 diff --git a/src/site/cli/news.inko b/src/site/cli/news.inko index b6bf31e..b4b1c95 100644 --- a/src/site/cli/news.inko +++ b/src/site/cli/news.inko @@ -2,7 +2,6 @@ import std.env import std.fs.file (WriteOnlyFile) import std.fs.path (Path) import std.json (Json) -import std.stdio (STDOUT) import std.time (DateTime) import wobsite.time (iso_date) import wobsite.url diff --git a/src/site/cli/packages.inko b/src/site/cli/packages.inko index e9e1f98..151df9d 100644 --- a/src/site/cli/packages.inko +++ b/src/site/cli/packages.inko @@ -1,12 +1,9 @@ import site.github import std.env -import std.fmt (fmt) import std.fs.file (ReadOnlyFile, WriteOnlyFile) import std.fs.path (Path) import std.int (Format) -import std.io (Error) import std.json (Json) -import std.stdio (STDOUT) let ENV = 'GITHUB_TOKEN' let QUERY = ' diff --git a/src/site/github.inko b/src/site/github.inko index cdb04f0..11cfc5d 100644 --- a/src/site/github.inko +++ b/src/site/github.inko @@ -35,7 +35,7 @@ fn get( root.set('query', Json.String(query)) root.set('variables', Json.Object(vars)) - cmd.arguments( + cmd.arguments.append( [ '-H', 'Content-Type: application/json', @@ -49,9 +49,9 @@ fn get( ], ) - cmd.stdin(Stream.Null) - cmd.stdout(Stream.Piped) - cmd.stderr(Stream.Null) + cmd.stdin = Stream.Null + cmd.stdout = Stream.Piped + cmd.stderr = Stream.Null let child = try cmd.spawn.map_error(fn (e) { Error.InvalidCommand(e.to_string) @@ -68,6 +68,8 @@ fn get( let stdout = ByteArray.new - try child.stdout.read_all(stdout).map_error(fn (e) { Error.InvalidRead(e) }) + try child.stdout.as_mut.get.read_all(stdout).map_error(fn (e) { + Error.InvalidRead(e) + }) Json.parse(stdout).map_error(fn (e) { Error.InvalidJson(e) }) } diff --git a/src/site/layouts.inko b/src/site/layouts.inko index e4d8405..689586f 100644 --- a/src/site/layouts.inko +++ b/src/site/layouts.inko @@ -4,8 +4,6 @@ import markdown.html (Filter, TableOfContents) import site.examples (Example) import site.packages (Package) import site.sponsors (CorporateSponsor, Sponsor) -import std.fs.file (ReadOnlyFile) -import std.io (BufferedReader) import wobsite (Files, Page) import wobsite.markdown (Admonitions, SyntaxHighlight) import wobsite.time (human_readable_date, iso_date) diff --git a/src/site/packages.inko b/src/site/packages.inko index d45318b..7cd870c 100644 --- a/src/site/packages.inko +++ b/src/site/packages.inko @@ -1,11 +1,8 @@ import std.fs.file (ReadOnlyFile) import std.fs.path (Path) -import std.int (Format) import std.io (Error) import std.json (Json) import std.string (ToString) -import std.time (DateTime) -import wobsite.time (parse_date) fn string(value: ref Json, key: String) -> Result[String, ParseError] { match value.query.key(key).as_string {