Sha256: e0b9c61f0f168c30fde906dd24e51fdf92778924772abbd552d1603b1290d4d6

Contents?: true

Size: 344 Bytes

Versions: 6

Compression:

Stored size: 344 Bytes

Contents

# typed: strict

module PackStats
  module Private
    extend T::Sig

    sig { params(package: ParsePackwerk::Package).returns(T.nilable(String) )}
    def self.package_owner(package)
      pack = Packs.find(package.name)
      return nil if pack.nil?
      CodeOwnership.for_package(pack)&.name
    end
  end

  private_constant :Private
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pack_stats-0.2.1 lib/pack_stats/private.rb
pack_stats-0.2.0 lib/pack_stats/private.rb
pack_stats-0.1.3 lib/pack_stats/private.rb
pack_stats-0.1.2 lib/pack_stats/private.rb
pack_stats-0.1.1 lib/pack_stats/private.rb
pack_stats-0.1.0 lib/pack_stats/private.rb