Class: PuzzleMetadataHook

Inherits:
Mumukit::Hook
  • Object
show all
Defined in:
lib/metadata_hook.rb

Instance Method Summary collapse

Instance Method Details

#metadataObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/metadata_hook.rb', line 2

def 
  {
    language: {
      name: 'muzzle',
      version: PuzzleVersionHook::VERSION,
      extension: 'js',
      ace_mode: 'javascript'
    },
    test_framework: {
        name: 'muzzle',
        version: PuzzleVersionHook::VERSION,
        test_extension: 'js',
        template: "// see more examples at https://github.com/mumuki/mumuki-puzzle-runner\nMuzzle.basic(3, 2, 'https://flbulgarelli.github.io/headbreaker/static/berni.jpg');"
    },
    layout_assets_urls: {
      js: [
        'assets/headbreaker.js',
        'assets/muzzle.js'
      ],
      css: [
        'assets/muzzle.css'
      ]
    },
    editor_assets_urls: {
      js: [
        'assets/muzzle-editor.js'
      ],
      css: [
        'assets/muzzle-editor.css'
      ],
      shows_loading_content: true
    }
  }
end