diff --git a/Dockerfile b/Dockerfile index 1ff7d16b..601b818f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM judge0/api-base:1.0.0 +FROM judge0/api-base:nim-latest ENV JUDGE0_HOMEPAGE="https://judge0.com" LABEL homepage=$JUDGE0_HOMEPAGE @@ -33,5 +33,5 @@ RUN ./scripts/prod-gen-api-docs CMD ["./scripts/run-server"] -ENV JUDGE0_VERSION="1.5.0" +ENV JUDGE0_VERSION="1.5.0-nim-latest" LABEL version=$JUDGE0_VERSION diff --git a/db/seeds.rb b/db/seeds.rb index 6a6fabd8..18545640 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -1,9 +1,18 @@ -require_relative 'languages/archived' -require_relative 'languages/active' +languages = [ + { + id: 1, + name: "Nim (stable)", + is_archived: false, + source_file: "main.nim", + compile_cmd: "/usr/local/nim/bin/nim compile --nimcache:.cache/nim %s main.nim", + run_cmd: "./main" + } +] + ActiveRecord::Base.transaction do Language.unscoped.delete_all - @languages.each_with_index do |language, index| + languages.each_with_index do |language, index| Language.create( id: language[:id], name: language[:name], diff --git a/docs/api/docs.md b/docs/api/docs.md index ce558113..2095d8ae 100644 --- a/docs/api/docs.md +++ b/docs/api/docs.md @@ -27,7 +27,7 @@ Status page of all public Judge0 services is available at [https://status.judge0 ::: ## Version -This document describes Judge0 API version [`v1.5.0`](https://github.com/judge0/api/tree/v1.5.0). +This document describes Judge0 API version [`v1.5.0-nim-latest`](https://github.com/judge0/api/tree/v1.5.0-nim-latest). ## Date and time formats [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) standard is used. diff --git a/public/docs.html b/public/docs.html index c571a3a7..f0dfeede 100644 --- a/public/docs.html +++ b/public/docs.html @@ -42,7 +42,7 @@

Official public API

-

This document describes Judge0 API version v1.5.0.

+

This document describes Judge0 API version v1.5.0-nim-latest.

Date and time formats

ISO 8601 standard is used.

Example: 2016-09-11T10:19:35Z

@@ -1548,7 +1548,7 @@

Example URI

GET& }

Version

Version
GET/version

Returns current version.

Example URI

GET https://api.judge0.com/version

Isolate

Isolate
GET/isolate

Returns result of isolate --version.

Example URI

GET https://api.judge0.com/isolate

License

License
GET/license

Returns a license.

-

Example URI

GET https://api.judge0.com/license

Generated by aglio on 01 Jan 2020