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 +4 -4
- data/lib/danger-packwerk/basic_reference_offense.rb +5 -1
- data/lib/danger-packwerk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed0f4ec91fc454370224df9823a43b198bbb3172fa996ac426975bf28d5e5cd8
|
4
|
+
data.tar.gz: '0398f5c8ed12c82a0ed23b32e055463bac58a9797800c5aac1f115afa8bf811a'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
+
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-
|
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
|