Skip to content

Commit ab98914

Browse files
committed
Make Civet live
Closes #1087
1 parent 6f7e81e commit ab98914

File tree

5 files changed

+16
-15
lines changed

5 files changed

+16
-15
lines changed

config/data/cheevos.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ target = 3
8787
[['Hole/Lang Specific']]
8888
name = 'Caffeinated'
8989
emoji = ''
90-
description = 'Solve any hole in both Java and JavaScript.'
90+
description = 'Solve any hole in any two of Civet, Java, or JavaScript.'
9191

9292
[['Hole/Lang Specific']]
9393
name = 'COBOWL'

config/data/langs.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,10 @@ int main(int argc, char* argv[]) {
287287
'''
288288

289289
[Civet]
290-
experiment = 1087
291-
size = '65.8 MiB'
292-
version = '0.7.19'
293-
website = 'https://civet.dev'
294-
example = '''
290+
size = '65.8 MiB'
291+
version = '0.7.19'
292+
website = 'https://civet.dev'
293+
example = '''
295294
// Printing
296295
console.log 'Hello, World!'
297296

sql/a-schema.sql

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ CREATE TYPE keymap AS ENUM ('default', 'vim');
6363

6464
CREATE TYPE lang AS ENUM (
6565
'assembly', 'awk', 'bash', 'basic', 'berry', 'brainfuck', 'c', 'c-sharp',
66-
'clojure', 'cpp', 'cobol', 'coconut', 'crystal', 'd', 'dart', 'elixir',
67-
'f-sharp', 'factor', 'fish', 'forth', 'fortran', 'go', 'golfscript',
68-
'haskell', 'hexagony', 'j', 'janet', 'java', 'javascript', 'julia', 'k',
69-
'lisp', 'lua', 'nim', 'ocaml', 'pascal', 'perl', 'php', 'powershell',
70-
'prolog', 'python', 'r', 'raku', 'rockstar', 'ruby', 'rust', 'sed', 'sql',
71-
'swift', 'tcl', 'tex', 'v', 'viml', 'wren', 'zig'
66+
'civet', 'clojure', 'cpp', 'cobol', 'coconut', 'crystal', 'd', 'dart',
67+
'elixir', 'f-sharp', 'factor', 'fish', 'forth', 'fortran', 'go',
68+
'golfscript', 'haskell', 'hexagony', 'j', 'janet', 'java', 'javascript',
69+
'julia', 'k', 'lisp', 'lua', 'nim', 'ocaml', 'pascal', 'perl', 'php',
70+
'powershell', 'prolog', 'python', 'r', 'raku', 'rockstar', 'ruby', 'rust',
71+
'sed', 'sql', 'swift', 'tcl', 'tex', 'v', 'viml', 'wren', 'zig'
7272
);
7373

7474
CREATE TYPE medal AS ENUM ('unicorn', 'diamond', 'gold', 'silver', 'bronze');

sql/b-earn-cheevos.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ BEGIN
6767
earned := earn(earned, 'bird-is-the-word', user_id); END IF;
6868

6969
-- ☕ Caffeinated
70-
IF langs_for_hole @> '{java,javascript}' THEN
70+
SELECT COUNT(*) >= 2 INTO found FROM UNNEST(langs_for_hole)
71+
WHERE unnest IN ('civet', 'java', 'javascript');
72+
IF found THEN
7173
earned := earn(earned, 'caffeinated', user_id); END IF;
7274

7375
-- 🎳 COBOWL

t/cheevos.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ is $dbh.execute(
8787
for $dbh.execute('SELECT unnest(enum_range(null::lang))').allrows.flat {
8888
my $earns = %langs{ my $i = ++$ } // '{}';
8989

90-
# Add hole-specific cheevos on the end.
90+
# Add hole-specific cheevos on the front.
9191
$earns.=subst: '{', '{sounds-quite-nice,' if $_ eq 'd';
92-
$earns.=subst: '{', '{caffeinated,' if $_ eq 'javascript';
92+
$earns.=subst: '{', '{caffeinated,' if $_ eq 'java';
9393
$earns.=subst: '{', '{go-forth,' if $_ eq 'go';
9494
$earns.=subst: '{', '{just-kidding,' if $_ eq 'k';
9595
$earns.=subst: '{', '{tim-toady,' if $_ eq 'raku';

0 commit comments

Comments
 (0)