Sha256: 396531c83d5a649ed47da3567788a1c0b2447c46bcb544f5b354ed0a68865ef7

Contents?: true

Size: 1.57 KB

Versions: 20

Compression:

Stored size: 1.57 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/platform'
require 'mumukit/randomizer'
require 'mumukit/sync'
require 'mumukit/login'
require 'mumukit/inspection'

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/store'

class Mumukit::Assistant
  def self.valid?(rules)
    !!parse(rules.map(&:deep_symbolize_keys)) 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 = Mumuki::Domain::Store::Github::GuideSchema
  config.exercise_schema = Mumuki::Domain::Store::Github::ExerciseSchema
end

Mulang::Inspection.register_extension! Mumukit::Inspection::Css
Mulang::Inspection.register_extension! Mumukit::Inspection::Html
Mulang::Inspection.register_extension! Mumukit::Inspection::Source

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
mumuki-laboratory-7.5.2 vendor/bundle/ruby/2.6.0/bundler/gems/mumuki-domain-ad16a5930cec/lib/mumuki/domain.rb
mumuki-laboratory-7.5.1 vendor/bundle/ruby/2.3.0/bundler/gems/mumuki-domain-a059418e5fd8/lib/mumuki/domain.rb
mumuki-domain-7.5.1 lib/mumuki/domain.rb
mumuki-laboratory-7.5.0 vendor/bundle/ruby/2.6.0/bundler/gems/mumuki-domain-acb12583b793/lib/mumuki/domain.rb
mumuki-domain-7.5.0 lib/mumuki/domain.rb
mumuki-domain-7.4.1 lib/mumuki/domain.rb
mumuki-domain-7.4.0 lib/mumuki/domain.rb
mumuki-domain-7.3.2 lib/mumuki/domain.rb
mumuki-domain-7.3.1 lib/mumuki/domain.rb
mumuki-domain-7.2.3 lib/mumuki/domain.rb
mumuki-domain-7.3.0 lib/mumuki/domain.rb
mumuki-domain-7.2.2 lib/mumuki/domain.rb
mumuki-domain-7.2.1 lib/mumuki/domain.rb
mumuki-domain-7.2.0 lib/mumuki/domain.rb
mumuki-laboratory-7.1.0 vendor/bundle/ruby/2.3.0/bundler/gems/mumuki-domain-925adf85cca8/lib/mumuki/domain.rb
mumuki-domain-7.1.0 lib/mumuki/domain.rb
mumuki-laboratory-7.0.12 vendor/bundle/ruby/2.3.0/bundler/gems/mumuki-domain-74da3d4af98c/lib/mumuki/domain.rb
mumuki-domain-7.0.6 lib/mumuki/domain.rb
mumuki-domain-7.0.5 lib/mumuki/domain.rb
mumuki-domain-7.0.4 lib/mumuki/domain.rb