Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump gems to use packs standard #37

Merged
merged 1 commit into from
Dec 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ GIT
PATH
remote: .
specs:
danger-packwerk (0.13.0)
danger-packwerk (0.14.0)
code_ownership
danger-plugin-api (~> 1.0)
packwerk
Expand Down Expand Up @@ -61,9 +61,9 @@ GEM
cork
nap
open4 (~> 1.3)
code_ownership (1.29.1)
code_ownership (1.29.2)
code_teams (~> 1.0)
parse_packwerk
packs
sorbet-runtime
code_teams (1.0.0)
sorbet-runtime
Expand Down Expand Up @@ -142,8 +142,10 @@ GEM
faraday (>= 1, < 3)
sawyer (~> 0.9)
open4 (1.3.4)
packs (0.0.5)
sorbet-runtime
parallel (1.22.1)
parse_packwerk (0.17.0)
parse_packwerk (0.18.0)
sorbet-runtime
parser (3.1.3.0)
ast (~> 2.4.1)
Expand Down
4 changes: 3 additions & 1 deletion lib/danger-packwerk/private/ownership_information.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# typed: strict

require 'code_ownership'
require 'packs'

module DangerPackwerk
module Private
Expand All @@ -14,7 +15,8 @@ class OwnershipInformation < T::Struct

sig { params(package: ParsePackwerk::Package, org_name: String).returns(OwnershipInformation) }
def self.for_package(package, org_name)
team = CodeOwnership.for_package(package)
pack = Packs.find(package.name)
team = pack.nil? ? nil : CodeOwnership.for_package(pack)

if team.nil?
OwnershipInformation.new
Expand Down
2 changes: 1 addition & 1 deletion lib/danger-packwerk/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# frozen_string_literal: true

module DangerPackwerk
VERSION = '0.13.0'
VERSION = '0.14.0'
end
336 changes: 0 additions & 336 deletions sorbet/rbi/gems/[email protected]

This file was deleted.

Loading