Sha256: 78d117d3f8fc646217d231678bd316aeaac1e9cd0a549b46408b9e08df873405

Contents?: true

Size: 845 Bytes

Versions: 35

Compression:

Stored size: 845 Bytes

Contents

module Mumuki::Domain::Status::Submission
  include Mumuki::Domain::Status
end

require_relative './pending'
require_relative './running'
require_relative './passed'
require_relative './failed'
require_relative './errored'
require_relative './aborted'
require_relative './passed_with_warnings'
require_relative './manual_evaluation_pending'

module Mumuki::Domain::Status::Submission
  STATUSES = [Pending, Running, Passed, Failed, Errored, Aborted, PassedWithWarnings, ManualEvaluationPending]

  test_selectors.each do |selector|
    define_method(selector) { false }
  end

  def group
    self
  end

  # Tells if a new, different submission should be tried.
  # True for `failed`, `errored` and `passed_with_warnings`
  def should_retry?
    false
  end

  def iconize
    group.iconize
  end

  def as_json(_options={})
    to_s
  end
end

Version data entries

35 entries across 35 versions & 2 rubygems

Version Path
mumuki-laboratory-7.1.0 vendor/bundle/ruby/2.3.0/bundler/gems/mumuki-domain-925adf85cca8/lib/mumuki/domain/status/submission/submission.rb
mumuki-domain-7.1.0 lib/mumuki/domain/status/submission/submission.rb
mumuki-laboratory-7.0.12 vendor/bundle/ruby/2.3.0/bundler/gems/mumuki-domain-74da3d4af98c/lib/mumuki/domain/status/submission/submission.rb
mumuki-domain-7.0.6 lib/mumuki/domain/status/submission/submission.rb
mumuki-domain-7.0.5 lib/mumuki/domain/status/submission/submission.rb
mumuki-domain-7.0.4 lib/mumuki/domain/status/submission/submission.rb
mumuki-domain-7.0.3 lib/mumuki/domain/status/submission/submission.rb
mumuki-laboratory-7.0.11 vendor/bundle/ruby/2.3.0/bundler/gems/mumuki-domain-f892f79c60f0/lib/mumuki/domain/status/submission/submission.rb
mumuki-domain-7.0.2 lib/mumuki/domain/status/submission/submission.rb
mumuki-domain-7.0.1 lib/mumuki/domain/status/submission/submission.rb
mumuki-domain-7.0.0 lib/mumuki/domain/status/submission/submission.rb
mumuki-domain-6.7.2 lib/mumuki/domain/status/submission/submission.rb
mumuki-domain-6.7.1 lib/mumuki/domain/status/submission/submission.rb
mumuki-domain-6.7.0 lib/mumuki/domain/status/submission/submission.rb
mumuki-domain-6.6.2 lib/mumuki/domain/status/submission/submission.rb
mumuki-domain-6.6.1 lib/mumuki/domain/status/submission/submission.rb
mumuki-domain-6.6.0 lib/mumuki/domain/status/submission/submission.rb
mumuki-domain-6.5.1 lib/mumuki/domain/status/submission/submission.rb
mumuki-domain-6.5.0 lib/mumuki/domain/status/submission/submission.rb
mumuki-domain-6.4.3 lib/mumuki/domain/status/submission/submission.rb