danger-packwerk 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a50f4eb29e8b1b964d365ccdc30749842efe091d659a5d62a7252d5af487fc2
4
- data.tar.gz: ad82d90f8db9e0a416dff61ab76ab2a9084ccd39335e1a95e2b2c9c9b566cd18
3
+ metadata.gz: ed0f4ec91fc454370224df9823a43b198bbb3172fa996ac426975bf28d5e5cd8
4
+ data.tar.gz: '0398f5c8ed12c82a0ed23b32e055463bac58a9797800c5aac1f115afa8bf811a'
5
5
  SHA512:
6
- metadata.gz: db4b2cb2d0c4a3cb8e24667fc60e32f2172abb33f486c0613a4977a73412d15f10136a977724257a707af203314c5569375bb43447848fc27eb8e2b20ee721ef
7
- data.tar.gz: ceb901dc21ad848fd0fabcbb8b299f2d7a3e101d3d295a5fbbbbdd49b086206f196b5996e4bf64ea40deadae893a3add09fc84df1890e80f5086ad44fa7e0dcf
6
+ metadata.gz: 1b20096b8a326a153832e24d73ddf4beab32220c65b035d44ca6ac2baa8f0bb043bcacba294e710c1000934d936410f59f61a7547fe304edd094cfb26f32fbc0
7
+ data.tar.gz: e1948eab25e12d87c03ef56054c8a981ca6e92ded648f05b0c38b28495d12ac5808cf6c453949f4f3d453ae79862bf5acb740e974f1146fac383144d41d59469
@@ -37,12 +37,15 @@ module DangerPackwerk
37
37
  const :class_name, String
38
38
  const :file, String
39
39
  const :to_package_name, String
40
+ const :from_package_name, String
40
41
  const :type, String
41
42
  const :file_location, Location
42
43
 
43
44
  sig { params(deprecated_references_yml: String).returns(T::Array[BasicReferenceOffense]) }
44
45
  def self.from(deprecated_references_yml)
45
46
  deprecated_references_yml_pathname = Pathname.new(deprecated_references_yml)
47
+
48
+ from_package_name = T.must(ParsePackwerk.package_from_path(deprecated_references_yml_pathname)).name
46
49
  violations = Private::DeprecatedReferences.from(deprecated_references_yml_pathname).violations
47
50
 
48
51
  # See the larger comment below for more information on why we need this information.
@@ -106,7 +109,8 @@ module DangerPackwerk
106
109
  file: file,
107
110
  to_package_name: violation.to_package_name,
108
111
  type: violation.type,
109
- file_location: file_location
112
+ file_location: file_location,
113
+ from_package_name: from_package_name
110
114
  )
111
115
  end
112
116
  end
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module DangerPackwerk
5
- VERSION = '0.4.0'
5
+ VERSION = '0.5.0'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger-packwerk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gusto Engineers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-07 00:00:00.000000000 Z
11
+ date: 2022-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: danger-plugin-api