Sha256: 9420bc0d1c4fc8dd15053617c9591ca7d0f4660f048a60e0167b309d2235d2c1

Contents?: true

Size: 1.72 KB

Versions: 95

Compression:

Stored size: 1.72 KB

Contents

module Mumuki::Domain::Store::Github::ExerciseSchema
  extend Mumukit::Sync::Store::Github::Schema

  def self.fields_schema
    [
      {name: :id, kind: :special},
      {name: :name, kind: :special},
      {name: :locale, kind: :metadata},

      {name: :tags, kind: :metadata, reverse: :tag_list, transform: with { |it| it.to_a }},
      {name: :layout, kind: :metadata},
      {name: :editor, kind: :metadata},

      {name: :type, kind: :metadata},
      {name: :extra_visible, kind: :metadata},
      {name: :language, kind: :metadata, transform: name },
      {name: :teacher_info, kind: :metadata},
      {name: :manual_evaluation, kind: :metadata},
      {name: :choices, kind: :metadata},

      {name: :expectations,        kind: :file, extension: 'yml', transform: yaml_list('expectations')},
      {name: :custom_expectations, kind: :file, extension: 'edl'},
      {name: :assistance_rules,    kind: :file, extension: 'yml', transform: yaml_list('rules')},
      {name: :randomizations,      kind: :file, extension: 'yml', transform: yaml_hash},
      {name: :settings,            kind: :file, extension: 'yml', transform: yaml_hash},

      {name: :goal, kind: :metadata},
      {name: :test, kind: :file, extension: :test},
      {name: :extra, kind: :file, extension: :code},
      {name: :default, kind: :file, extension: :code, reverse: :default_content},

      {name: :description, kind: :file, extension: 'md', required: true},
      {name: :hint, kind: :file, extension: 'md'},
      {name: :corollary, kind: :file, extension: 'md'},
      {name: :initial_state, kind: :file, extension: 'md'},
      {name: :final_state, kind: :file, extension: 'md'},
      {name: :free_form_editor_source, kind: :file, extension: 'html'}
    ]
  end
end

Version data entries

95 entries across 95 versions & 2 rubygems

Version Path
mumuki-domain-9.23.0 lib/mumuki/domain/store/github/exercise_schema.rb
mumuki-domain-9.22.1 lib/mumuki/domain/store/github/exercise_schema.rb
mumuki-domain-9.22.0 lib/mumuki/domain/store/github/exercise_schema.rb
mumuki-domain-9.21.0 lib/mumuki/domain/store/github/exercise_schema.rb
mumuki-domain-9.20.0 lib/mumuki/domain/store/github/exercise_schema.rb
mumuki-domain-9.19.0 lib/mumuki/domain/store/github/exercise_schema.rb
mumuki-domain-9.18.0 lib/mumuki/domain/store/github/exercise_schema.rb
mumuki-domain-9.17.0 lib/mumuki/domain/store/github/exercise_schema.rb
mumuki-domain-9.16.0 lib/mumuki/domain/store/github/exercise_schema.rb
mumuki-domain-9.15.0 lib/mumuki/domain/store/github/exercise_schema.rb
mumuki-domain-9.14.1 lib/mumuki/domain/store/github/exercise_schema.rb
mumuki-domain-9.14.0 lib/mumuki/domain/store/github/exercise_schema.rb
mumuki-domain-9.13.1 lib/mumuki/domain/store/github/exercise_schema.rb
mumuki-domain-9.13.0 lib/mumuki/domain/store/github/exercise_schema.rb
mumuki-domain-9.12.0 lib/mumuki/domain/store/github/exercise_schema.rb
mumuki-domain-9.11.0 lib/mumuki/domain/store/github/exercise_schema.rb
mumuki-domain-9.10.0 lib/mumuki/domain/store/github/exercise_schema.rb
mumuki-domain-9.9.0 lib/mumuki/domain/store/github/exercise_schema.rb
mumuki-domain-9.8.1 lib/mumuki/domain/store/github/exercise_schema.rb
mumuki-domain-9.8.0 lib/mumuki/domain/store/github/exercise_schema.rb