Skip to content

Commit

Permalink
Bump gems to use packs standard (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Evanczuk authored Dec 30, 2022
1 parent 050c28d commit 1482eb8
Show file tree
Hide file tree
Showing 8 changed files with 664 additions and 389 deletions.
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

0 comments on commit 1482eb8

Please sign in to comment.