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-domain-6.4.2 lib/mumuki/domain/status/submission/submission.rb
mumuki-domain-6.4.1 lib/mumuki/domain/status/submission/submission.rb
mumuki-domain-6.4.0 lib/mumuki/domain/status/submission/submission.rb
mumuki-domain-6.2.2 lib/mumuki/domain/status/submission/submission.rb
mumuki-domain-6.2.1 lib/mumuki/domain/status/submission/submission.rb
mumuki-domain-6.3.0 lib/mumuki/domain/status/submission/submission.rb
mumuki-domain-6.2.0 lib/mumuki/domain/status/submission/submission.rb
mumuki-domain-6.1.5 lib/mumuki/domain/status/submission/submission.rb
mumuki-domain-6.0.4 lib/mumuki/domain/status/submission/submission.rb
mumuki-domain-6.1.4 lib/mumuki/domain/status/submission/submission.rb
mumuki-domain-6.1.3 lib/mumuki/domain/status/submission/submission.rb
mumuki-domain-6.1.2 lib/mumuki/domain/status/submission/submission.rb
mumuki-domain-6.0.3 lib/mumuki/domain/status/submission/submission.rb
mumuki-domain-6.0.1 lib/mumuki/domain/status/submission/submission.rb
mumuki-domain-6.0.0 lib/mumuki/domain/status/submission/submission.rb