danger-packwerk 0.14.3 → 0.14.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9961bce735a4a3e2ffd6e2f67719059652d08bcadcd06c8ab349b27452137e5
|
4
|
+
data.tar.gz: 3eca02e4593c388f7170036cc78fde2b4efa4b2fe616b3d1591acb68ecffe610
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7167772693389751363dfd0c8e9956b30d7e2a237265d625f54de748453a3585a40b5e165e18bc6672d241344da08f216fd3614c031e9eea12b0e6eecca08c07
|
7
|
+
data.tar.gz: 0a8df0931b48669d9cb3d779824c6391622666c7614ca4fffa1cf03e83d1ba63ac891a7b621f736b1ddeeec0044694fc93c2ea15dbee4d633acd9cec52e1621c
|
@@ -47,7 +47,7 @@ module DangerPackwerk
|
|
47
47
|
git_filesystem = Private::GitFilesystem.new(git: git, root: root_path || '')
|
48
48
|
changed_package_todo_ymls = (git_filesystem.modified_files + git_filesystem.added_files + git_filesystem.deleted_files).grep(PACKAGE_TODO_PATTERN)
|
49
49
|
|
50
|
-
violation_diff = get_violation_diff(violation_types, root_path: root_path)
|
50
|
+
violation_diff = DangerPackageTodoYmlChanges.get_violation_diff(violation_types, git: git, root_path: root_path)
|
51
51
|
|
52
52
|
before_comment.call(
|
53
53
|
violation_diff,
|
@@ -74,10 +74,11 @@ module DangerPackwerk
|
|
74
74
|
sig do
|
75
75
|
params(
|
76
76
|
violation_types: T::Array[String],
|
77
|
+
git: Danger::DangerfileGitPlugin,
|
77
78
|
root_path: T.nilable(String)
|
78
79
|
).returns(ViolationDiff)
|
79
80
|
end
|
80
|
-
def get_violation_diff(violation_types, root_path: nil)
|
81
|
+
def self.get_violation_diff(violation_types, git:, root_path: nil)
|
81
82
|
git_filesystem = Private::GitFilesystem.new(git: git, root: root_path || '')
|
82
83
|
|
83
84
|
added_violations, removed_violations = Private::TodoYmlChanges.get_reference_offenses(
|
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.14.
|
4
|
+
version: 0.14.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gusto Engineers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: code_ownership
|