Sha256: fd4d45874b421afecedc41ca34aee03f526e98effcd93360fee9ea85865c5d59

Contents?: true

Size: 469 Bytes

Versions: 2

Compression:

Stored size: 469 Bytes

Contents

# frozen_string_literal: true

module Orthoses
  module ActiveSupport
    class KnownSig
      include Orthoses::Rails::KnownSigHelper

      def initialize(loader)
        @loader = loader
      end

      def call
        @loader.call.tap do |store|
          paths = best_version_paths(::ActiveSupport::VERSION::STRING, __dir__)
          env = Content::Environment.load_from_paths(paths)
          env.write_to(store: store)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
orthoses-rails-0.4.0 lib/orthoses/active_support/known_sig.rb
orthoses-rails-0.3.0 lib/orthoses/active_support/known_sig.rb