Sha256: 9bc8016f6e3ef4dfccb7a6be72a5d4f73b41322c90f388a8fa75eec2930e8eb5

Contents?: true

Size: 867 Bytes

Versions: 118

Compression:

Stored size: 867 Bytes

Contents

# frozen_string_literal: true

require "primer/classify"
require "primer/view_components/version"
require "primer/view_components/engine"

module Primer
  # :nodoc:
  module ViewComponents
    DEPRECATION_HORIZON = "1.0"

    # primer/view_components root directory.
    def self.root
      Pathname(File.expand_path(File.join("..", ".."), __dir__))
    end

    # Skip coverage here because only one branch will execute depending on what
    # Rails version you're running.

    # :nocov:
    def self.deprecation
      @deprecation ||=
        if Rails.application.respond_to?(:deprecators)
          Rails.application.deprecators[:primer_view_components] ||= ActiveSupport::Deprecation.new(
            DEPRECATION_HORIZON, "primer_view_components"
          )
        else
          ActiveSupport::Deprecation.instance
        end
    end
    # :nocov:
  end
end

Version data entries

118 entries across 118 versions & 2 rubygems

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