remove unnecessary author fields

This commit is contained in:
Brian Seymour 2021-03-28 14:29:28 -05:00
parent 7aa52bb0c5
commit 902ad71578
52 changed files with 98 additions and 151 deletions

View File

@ -92,7 +92,6 @@ const app = express();
return { return {
language: rt.language, language: rt.language,
version: rt.version.raw, version: rt.version.raw,
author: rt.author,
aliases: rt.aliases aliases: rt.aliases
}; };
}); });

View File

@ -14,12 +14,11 @@ class Runtime {
fss.read_file_sync(path.join(package_dir, 'pkg-info.json')) fss.read_file_sync(path.join(package_dir, 'pkg-info.json'))
); );
const { language, version, author, build_platform, aliases } = info; const { language, version, build_platform, aliases } = info;
this.pkgdir = package_dir; this.pkgdir = package_dir;
this.language = language; this.language = language;
this.version = semver.parse(version); this.version = semver.parse(version);
this.author = author;
this.aliases = aliases; this.aliases = aliases;
if (build_platform !== globals.platform) { if (build_platform !== globals.platform) {

View File

@ -3,7 +3,6 @@
"version": "1.0.0", "version": "1.0.0",
"description": "Piston Execution Engine CLI tools", "description": "Piston Execution Engine CLI tools",
"main": "index.js", "main": "index.js",
"author": "Thomas Hobson <thomas@hexf.me>",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"axios": "^0.21.1", "axios": "^0.21.1",

View File

@ -40,13 +40,12 @@ public class Test
} }
``` ```
8. Create a `metadata.json` file which contains metadata about the language and interpreter. This simply contains the language name, as in the folder name, the version as in the folder name, the author's name and email address, aliases that can be used to call this package, and finally a dependencies map. 8. Create a `metadata.json` file which contains metadata about the language and interpreter. This simply contains the language name, as in the folder name, the version as in the folder name, aliases that can be used to call this package, and finally a dependencies map.
The dependencies map contains the keys as language names, and the values as semver selectors for packages. The dependencies map contains the keys as language names, and the values as semver selectors for packages.
```json ```json
{ {
"language": "deno", "language": "deno",
"version": "1.7.5", "version": "1.7.5",
"author": "Thomas Hobson <thomas@hexf.me>",
"dependencies": {}, "dependencies": {},
"aliases": ["deno-ts", "deno-js"] "aliases": ["deno-ts", "deno-js"]
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "bash", "language": "bash",
"version": "5.1.0", "version": "5.1.0",
"aliases": ["sh"], "aliases": ["sh"]
"author": "Thomas Hobson <git@hexf.me>"
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "brainfuck", "language": "brainfuck",
"version": "2.7.3", "version": "2.7.3",
"aliases": ["bf"], "aliases": ["bf"]
"author": "Thomas Hobson <git@hexf.me>"
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "clojure", "language": "clojure",
"version": "1.10.3", "version": "1.10.3",
"aliases": ["clojure","clj"], "aliases": ["clojure", "clj"]
"author": "Dan Vargas <danvargas46@gmail.com>"
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "coffeescript", "language": "coffeescript",
"version": "2.5.1", "version": "2.5.1",
"author": "Dan Vargas <danvargas46@gmail.com>",
"aliases": ["coffeescript", "coffee"] "aliases": ["coffeescript", "coffee"]
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "cow", "language": "cow",
"version": "1.0.0", "version": "1.0.0",
"author": "Dan Vargas <danvargas46@gmail.com>",
"aliases": ["cow"] "aliases": ["cow"]
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "crystal", "language": "crystal",
"version": "0.36.1", "version": "0.36.1",
"author": "Dan Vargas <danvargas46@gmail.com>",
"aliases": ["crystal", "cr"] "aliases": ["crystal", "cr"]
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "dart", "language": "dart",
"version": "2.12.1", "version": "2.12.1",
"aliases": [], "aliases": []
"author": "Thomas Hobson <git@hexf.me>"
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "dash", "language": "dash",
"version": "0.5.11", "version": "0.5.11",
"aliases": ["dash"], "aliases": ["dash"]
"author": "Dan Vargas <danvargas46@gmail.com>"
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "deno", "language": "deno",
"version": "1.7.5", "version": "1.7.5",
"author": "Thomas Hobson <thomas@hexf.me>",
"aliases": ["deno-ts", "deno-js"] "aliases": ["deno-ts", "deno-js"]
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "dotnet", "language": "dotnet",
"version": "5.0.201", "version": "5.0.201",
"aliases": ["cs", "csharp"], "aliases": ["cs", "csharp"]
"author": "Thomas Hobson <git@hexf.me>"
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "elixir", "language": "elixir",
"version": "1.11.3", "version": "1.11.3",
"author": "Dan Vargas <danvargas46@gmail.com>",
"aliases": ["elixir", "exs"] "aliases": ["elixir", "exs"]
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "emacs", "language": "emacs",
"version": "27.1.0", "version": "27.1.0",
"author": "Dan Vargas <danvargas46@gmail.com>",
"aliases": ["emacs", "el", "elisp"] "aliases": ["emacs", "el", "elisp"]
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "erlang", "language": "erlang",
"version": "23.0.0", "version": "23.0.0",
"author": "Dan Vargas <danvargas46@gmail.com>",
"aliases": ["erlang", "erl", "escript"] "aliases": ["erlang", "erl", "escript"]
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "gawk", "language": "gawk",
"version": "5.1.0", "version": "5.1.0",
"aliases": ["awk"], "aliases": ["awk"]
"author": "Thomas Hobson <git@hexf.me>"
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "gcc", "language": "gcc",
"version": "10.2.0", "version": "10.2.0",
"aliases": ["c","g++","c++","cpp","gdc","d"], "aliases": ["c", "g++", "c++", "cpp", "gdc", "d"]
"author": "Thomas Hobson <git@hexf.me>"
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "go", "language": "go",
"version": "1.16.2", "version": "1.16.2",
"author": "Victor Frazao <luiz_victor_frazao@hotmail.com>",
"aliases": ["go", "golang"] "aliases": ["go", "golang"]
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "haskell", "language": "haskell",
"version": "9.0.1", "version": "9.0.1",
"author": "Dan Vargas <danvargas46@gmail.com>",
"aliases": ["haskell", "hs"] "aliases": ["haskell", "hs"]
} }

View File

@ -9,7 +9,6 @@ fi
NAME=$1 NAME=$1
VERSION=$2 VERSION=$2
AUTHOR="$(git config user.name) <$(git config user.email)>"
SOURCE=$3 SOURCE=$3
DIR=$NAME/$VERSION DIR=$NAME/$VERSION
@ -58,7 +57,7 @@ echo "$NAME-$VERSION \"\$@\"" >> run
echo "# Put instructions to compile source code, remove this file if the language does not require this stage" >> compile echo "# Put instructions to compile source code, remove this file if the language does not require this stage" >> compile
jq '.language = "'$NAME'" | .version = "'$VERSION'" | .aliases = [] | .author = "'"$AUTHOR"'"' <<< "{}" > metadata.json jq '.language = "'$NAME'" | .version = "'$VERSION'" | .aliases = []' <<< "{}" > metadata.json
cd - > /dev/null cd - > /dev/null

View File

@ -1,6 +1,5 @@
{ {
"language": "java", "language": "java",
"version": "15.0.2", "version": "15.0.2",
"aliases": [], "aliases": []
"author": "Thomas Hobson <git@hexf.me>"
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "jelly", "language": "jelly",
"version": "0.1.31", "version": "0.1.31",
"author": "Thomas Hobson <thomas@hexf.me>",
"aliases": [] "aliases": []
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "julia", "language": "julia",
"version": "1.5.4", "version": "1.5.4",
"aliases": ["jl"], "aliases": ["jl"]
"author": "Victor Frazao <luiz_victor_frazao@hotmail.com>"
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "kotlin", "language": "kotlin",
"version": "1.4.31", "version": "1.4.31",
"aliases": ["kt"], "aliases": ["kt"]
"author": "Thomas Hobson <git@hexf.me>"
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "lisp", "language": "lisp",
"version": "2.1.2", "version": "2.1.2",
"aliases": ["lisp","cl","sbcl","commonlisp"], "aliases": ["lisp", "cl", "sbcl", "commonlisp"]
"author": "Dan Vargas <danvargas46@gmail.com>"
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "lolcode", "language": "lolcode",
"version": "0.11.2", "version": "0.11.2",
"author": "Shivansh-007 <Shivansh-007@users.noreply.github.com>",
"aliases": ["lol", "lci"] "aliases": ["lol", "lci"]
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "lua", "language": "lua",
"version": "5.4.2", "version": "5.4.2",
"author": "Shivansh-007 <Shivansh-007@users.noreply.github.com>",
"aliases": ["lua"] "aliases": ["lua"]
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "mono", "language": "mono",
"version": "6.12.0", "version": "6.12.0",
"author": "Thomas Hobson <thomas@hexf.me>",
"aliases": ["csharp", "cs"] "aliases": ["csharp", "cs"]
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "nasm", "language": "nasm",
"version": "2.15.5", "version": "2.15.5",
"aliases": ["nasm64"], "aliases": ["nasm64"]
"author": "Thomas Hobson <git@hexf.me>"
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "nim", "language": "nim",
"version": "1.4.4", "version": "1.4.4",
"author": "Dan Vargas <danvargas46@gmail.com>",
"aliases": ["nim"] "aliases": ["nim"]
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "node", "language": "node",
"version": "15.10.0", "version": "15.10.0",
"author": "Martin Kos <martinkos007@gmail.com>",
"aliases": ["node-javascript", "node-js", "javascript", "js"] "aliases": ["node-javascript", "node-js", "javascript", "js"]
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "osabie", "language": "osabie",
"version": "1.0.1", "version": "1.0.1",
"author": "Dan Vargas <danvargas46@gmail.com>",
"aliases": ["osabie", "05AB1E", "usable"] "aliases": ["osabie", "05AB1E", "usable"]
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "paradoc", "language": "paradoc",
"version": "0.6.0", "version": "0.6.0",
"author": "Dan Vargas <danvargas46@gmail.com>",
"aliases": ["paradoc"] "aliases": ["paradoc"]
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "pascal", "language": "pascal",
"version": "3.2.0", "version": "3.2.0",
"author": "Dan Vargas <danvargas46@gmail.com>",
"aliases": ["pascal", "freepascal", "pp", "pas"] "aliases": ["pascal", "freepascal", "pp", "pas"]
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "perl", "language": "perl",
"version": "5.26.1", "version": "5.26.1",
"author": "Dan Vargas <danvargas46@gmail.com>",
"aliases": ["perl", "pl"] "aliases": ["perl", "pl"]
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "php", "language": "php",
"version": "8.0.2", "version": "8.0.2",
"author": "Martin Kos <martinkos007@gmail.com>", "aliases": ["php8", "html"]
"aliases": ["php8","html"]
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "prolog", "language": "prolog",
"version": "8.2.4", "version": "8.2.4",
"aliases": ["prolog","plg"], "aliases": ["prolog", "plg"]
"author": "Dan Vargas <danvargas46@gmail.com>"
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "pure", "language": "pure",
"version": "0.68.0", "version": "0.68.0",
"author": "Shivansh-007 <shivansh-007@outlook.com>",
"aliases": [] "aliases": []
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "python", "language": "python",
"version": "2.7.18", "version": "2.7.18",
"author": "Shivansh-007 <Shivansh-007@users.noreply.github.com>",
"aliases": ["py", "python2"] "aliases": ["py", "python2"]
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "python", "language": "python",
"version": "3.5.10", "version": "3.5.10",
"author": "Shivansh-007 <Shivansh-007@users.noreply.github.com>",
"aliases": ["py", "python3"] "aliases": ["py", "python3"]
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "python", "language": "python",
"version": "3.9.1", "version": "3.9.1",
"author": "Thomas Hobson <thomas@hexf.me>",
"aliases": ["py", "python3"] "aliases": ["py", "python3"]
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "rockstar", "language": "rockstar",
"version": "1.0.0", "version": "1.0.0",
"author": "Dan Vargas <danvargas46@gmail.com>",
"aliases": ["rockstar", "rock"] "aliases": ["rockstar", "rock"]
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "ruby", "language": "ruby",
"version": "2.5.1", "version": "2.5.1",
"author": "Dan Vargas <danvargas46@gmail.com>",
"aliases": ["ruby", "rb"] "aliases": ["ruby", "rb"]
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "rust", "language": "rust",
"version": "1.50.0", "version": "1.50.0",
"aliases": ["rs"], "aliases": ["rs"]
"author": "Victor Frazao <luiz_victor_frazao@hotmail.com>"
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "scala", "language": "scala",
"version": "3.0.0", "version": "3.0.0",
"aliases": ["scala","sc"], "aliases": ["scala", "sc"]
"author": "Dan Vargas <danvargas46@gmail.com>"
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "swift", "language": "swift",
"version": "5.3.3", "version": "5.3.3",
"aliases": ["swift"], "aliases": ["swift"]
"author": "Dan Vargas <danvargas46@gmail.com>"
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "typescript", "language": "typescript",
"version": "4.2.3", "version": "4.2.3",
"aliases": ["ts","node-ts","tsc"], "aliases": ["ts", "node-ts", "tsc"]
"author": "Thomas Hobson <git@hexf.me>"
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "vlang", "language": "vlang",
"version": "0.1.13", "version": "0.1.13",
"author": "Shivansh-007 <shivansh-007@outlook.com>",
"aliases": ["v"] "aliases": ["v"]
} }

View File

@ -1,6 +1,5 @@
{ {
"language": "zig", "language": "zig",
"version": "0.7.1", "version": "0.7.1",
"aliases": ["zig"], "aliases": ["zig"]
"author": "Dan Vargas <danvargas46@gmail.com>"
} }

View File

@ -159,7 +159,7 @@ This is used by the CLI to carry out running jobs and package managment.
#### Runtimes Endpoint #### Runtimes Endpoint
`GET /runtimes` `GET /runtimes`
This endpoint will return the supported languages along with the current version, author and aliases. To execute This endpoint will return the supported languages along with the current version and aliases. To execute
code for a particular language using the `/jobs` endpoint, either the name or one of the aliases must code for a particular language using the `/jobs` endpoint, either the name or one of the aliases must
be provided, along with the version. be provided, along with the version.
Multiple versions of the same language may be present at the same time, and may be selected when running a job. Multiple versions of the same language may be present at the same time, and may be selected when running a job.
@ -171,7 +171,6 @@ Content-Type: application/json
{ {
"language": "bash", "language": "bash",
"version": "5.1.0", "version": "5.1.0",
"author": "Thomas Hobson <git@hexf.me>",
"aliases": [ "aliases": [
"sh" "sh"
] ]
@ -179,7 +178,6 @@ Content-Type: application/json
{ {
"language": "brainfuck", "language": "brainfuck",
"version": "2.7.3", "version": "2.7.3",
"author": "Thomas Hobson <git@hexf.me>",
"aliases": [ "aliases": [
"bf" "bf"
] ]