Skip to content

Commit fb1a360

Browse files
Added support for OCaml 4.05.0
1 parent 1575691 commit fb1a360

File tree

4 files changed

+25
-13
lines changed

4 files changed

+25
-13
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM judge0/api-base:0.2.0
1+
FROM judge0/api-base:0.2.1
22
#LABEL maintainer="Herman Zvonimir Došilović, [email protected]" \
33
# version="0.2.0"
44

db/seeds.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,14 @@
200200
},
201201

202202

203+
{
204+
name: "OCaml (4.05.0)",
205+
source_file: "main.ml",
206+
compile_cmd: "/usr/local/ocaml-4.05.0/bin/ocamlc main.ml",
207+
run_cmd: "./a.out"
208+
},
209+
210+
203211
{
204212
name: "Octave (4.2.0)",
205213
source_file: "file.m",

docs/api/statuses_and_languages/list_all_languages.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -124,50 +124,54 @@
124124
},
125125
{
126126
"id": 31,
127-
"name": "Octave (4.2.0)"
127+
"name": "OCaml (4.05.0)"
128128
},
129129
{
130130
"id": 32,
131-
"name": "Pascal (fpc 3.0.0)"
131+
"name": "Octave (4.2.0)"
132132
},
133133
{
134134
"id": 33,
135-
"name": "Python (3.6.0)"
135+
"name": "Pascal (fpc 3.0.0)"
136136
},
137137
{
138138
"id": 34,
139-
"name": "Python (3.5.3)"
139+
"name": "Python (3.6.0)"
140140
},
141141
{
142142
"id": 35,
143-
"name": "Python (2.7.9)"
143+
"name": "Python (3.5.3)"
144144
},
145145
{
146146
"id": 36,
147-
"name": "Python (2.6.9)"
147+
"name": "Python (2.7.9)"
148148
},
149149
{
150150
"id": 37,
151-
"name": "Ruby (2.4.0)"
151+
"name": "Python (2.6.9)"
152152
},
153153
{
154154
"id": 38,
155-
"name": "Ruby (2.3.3)"
155+
"name": "Ruby (2.4.0)"
156156
},
157157
{
158158
"id": 39,
159-
"name": "Ruby (2.2.6)"
159+
"name": "Ruby (2.3.3)"
160160
},
161161
{
162162
"id": 40,
163-
"name": "Ruby (2.1.9)"
163+
"name": "Ruby (2.2.6)"
164164
},
165165
{
166166
"id": 41,
167-
"name": "Rust (1.20.0)"
167+
"name": "Ruby (2.1.9)"
168168
},
169169
{
170170
"id": 42,
171+
"name": "Rust (1.20.0)"
172+
},
173+
{
174+
"id": 43,
171175
"name": "Text (plain text)"
172176
}
173177
]

spec/controllers/submissions_controller_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
it "doesn't create new Submission because given Language doesn't exist" do
3838
attributes = attributes_for(:valid_submission)
39-
attributes[:language_id] = 42 # Language with id 42 doesn't exist
39+
attributes[:language_id] = 142 # Language with id 142 doesn't exist
4040
post :create, params: attributes
4141
expect(response).to have_http_status(422)
4242
end

0 commit comments

Comments
 (0)