from .base_executor import ScriptExecutor
from dmoj.judgeenv import env


class RubyExecutor(ScriptExecutor):
    ext = '.rb'
    name = 'RUBY'
    address_grace = 65536
    fs = ['.*\.rb$', '/usr/lib/ruby/gems/']
    test_program = 'puts gets'

    @classmethod
    def get_command(cls):
        return env['runtime'].get(cls.name.lower())

    @classmethod
    def get_find_first_mapping(cls):
        return {cls.name.lower(): cls.command_paths}

@@ -301,22 +301,24 @@
 urn 
-env%5B'
+cls.
 runtime
-'%5D
+_dict
 .get

Make ruby configurable; #105