Sha256: da70c3a0c4efe7d9109f673431006c3dff5601ef2951be9624cdb21ad37464d6

Contents?: true

Size: 1.52 KB

Versions: 2

Compression:

Stored size: 1.52 KB

Contents

require "mumuki/domain/engine"

require 'mumukit/core'
require 'mumukit/core/activemodel'
require 'mumukit/assistant'
require 'mumukit/auth'
require 'mumukit/bridge'
require 'mumukit/content_type'
require 'mumukit/directives'
require 'mumukit/inspection'
require 'mumukit/platform'
require 'mumukit/randomizer'
require 'mumukit/sync'
require 'mumukit/login'

I18n.load_translations_path File.join(__dir__, 'domain', 'locales', '**', '*.yml')

module Mumuki
  module Domain
  end
end

Mumukit::Platform.configure do |config|
  config.user_class_name = 'User'
  config.organization_class_name = 'Organization'
end

require_relative './domain/evaluation'
require_relative './domain/submission'
require_relative './domain/status'
require_relative './domain/exceptions'
require_relative './domain/file'
require_relative './domain/extensions'
require_relative './domain/organization'
require_relative './domain/helpers'
require_relative './domain/syncable'
require_relative './domain/stores'

class Mumukit::Assistant
  def self.valid?(rules)
    !!parse(rules.map(&:deep_symbolize_keys)) rescue false
  end
end

class Mumukit::Expectation
  def self.valid?(expectation)
    !!Mumukit::Inspection.parse(expectation['inspection']) rescue false
  end
end

class Mumukit::Randomizer
  def self.valid?(randomizations)
    !!parse(randomizations) rescue false
  end
end

Mumukit::Sync::Store::Github.configure do |config|
  config.guide_schema = Mumukit::Sync::Store::Github::Schema::Guide
  config.exercise_schema = Mumukit::Sync::Store::Github::Schema::Exercise
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mumuki-domain-7.0.1 lib/mumuki/domain.rb
mumuki-domain-7.0.0 lib/mumuki/domain.rb