Sha256: b991e4ede2d7d7e7976a56425c429f4c54bad205dff91a774317c9a0252ce7b1

Contents?: true

Size: 357 Bytes

Versions: 133

Compression:

Stored size: 357 Bytes

Contents

# frozen_string_literal: true

# :nocov:
module Primer
  module Static
    # :nodoc:
    module GenerateStatuses
      class << self
        def call
          Primer::Component.descendants.sort_by(&:name).each_with_object({}) do |component, mem|
            mem[component.to_s] = component.status.to_s
          end
        end
      end
    end
  end
end

Version data entries

133 entries across 133 versions & 2 rubygems

Version Path
primer_view_components-0.19.0 lib/primer/static/generate_statuses.rb
openproject-primer_view_components-0.22.2 lib/primer/static/generate_statuses.rb
primer_view_components-0.18.2 lib/primer/static/generate_statuses.rb
openproject-primer_view_components-0.22.1 lib/primer/static/generate_statuses.rb
primer_view_components-0.18.1 lib/primer/static/generate_statuses.rb
openproject-primer_view_components-0.22.0 lib/primer/static/generate_statuses.rb
primer_view_components-0.18.0 lib/primer/static/generate_statuses.rb
openproject-primer_view_components-0.21.0 lib/primer/static/generate_statuses.rb
primer_view_components-0.17.0 lib/primer/static/generate_statuses.rb
openproject-primer_view_components-0.20.0 lib/primer/static/generate_statuses.rb
primer_view_components-0.16.1 lib/primer/static/generate_statuses.rb
primer_view_components-0.16.0 lib/primer/static/generate_statuses.rb
openproject-primer_view_components-0.19.0 lib/primer/static/generate_statuses.rb
primer_view_components-0.15.1 lib/primer/static/generate_statuses.rb
primer_view_components-0.15.0 lib/primer/static/generate_statuses.rb
openproject-primer_view_components-0.18.1 lib/primer/static/generate_statuses.rb
openproject-primer_view_components-0.17.1 lib/primer/static/generate_statuses.rb
openproject-primer_view_components-0.17.0 lib/primer/static/generate_statuses.rb
primer_view_components-0.14.0 lib/primer/static/generate_statuses.rb
openproject-primer_view_components-0.16.0 lib/primer/static/generate_statuses.rb