use_packs 0.0.8 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/use_packs/cli.rb +1 -1
- data/lib/use_packs/private/packwerk_wrapper.rb +6 -7
- data/lib/use_packs/private.rb +1 -0
- data/lib/use_packs/user_event_logger.rb +1 -3
- 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: da298eaafa63d9711e053dda10339d79ebf57280512b3ea4849783859d98ceb0
|
4
|
+
data.tar.gz: 14d12b7d6ac2aeff5075b4df3c936b619c735f89c8bd062a7e13e85f17f3b0b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1d901340aecc1d8baad2f16181559acb9a79cd41153ba9aa6c3b0f8c0a207c139d03d4184b99f7e98613f591568b8084392f47fa58cd6e1eb2325780188ff0a
|
7
|
+
data.tar.gz: bd80903a16389bd7191b1e509be98a0ce5049278e96a7640536e1cff2e45915d838ffc0ed188e523776033e339a69c0df5bb5d6d364984dae6f046039b0deaa7
|
data/lib/use_packs/cli.rb
CHANGED
@@ -99,7 +99,7 @@ module UsePacks
|
|
99
99
|
desc 'check [ packs/my_pack ]', 'Run bin/packwerk check'
|
100
100
|
sig { params(paths: String).void }
|
101
101
|
def check(*paths)
|
102
|
-
|
102
|
+
UsePacks.execute(['check', *paths])
|
103
103
|
end
|
104
104
|
|
105
105
|
desc 'update [ packs/my_pack ]', 'Run bin/packwerk update-todo'
|
@@ -8,13 +8,6 @@ module UsePacks
|
|
8
8
|
module PackwerkWrapper
|
9
9
|
extend T::Sig
|
10
10
|
|
11
|
-
sig { params(argv: T.untyped, formatter: Packwerk::OffensesFormatter).void }
|
12
|
-
def self.packwerk_cli_run_safely(argv, formatter)
|
13
|
-
with_safe_exit_if_no_files_found do
|
14
|
-
packwerk_cli(formatter).run(argv)
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
11
|
#
|
19
12
|
# execute_command is like `run` except it does not `exit`
|
20
13
|
#
|
@@ -53,6 +46,12 @@ module UsePacks
|
|
53
46
|
formatter.aggregated_offenses.compact
|
54
47
|
end
|
55
48
|
|
49
|
+
sig { void }
|
50
|
+
def self.validate!
|
51
|
+
formatter = OffensesAggregatorFormatter.new
|
52
|
+
packwerk_cli_execute_safely(['validate'], formatter)
|
53
|
+
end
|
54
|
+
|
56
55
|
sig { params(files: T::Array[String]).returns(T::Array[Packwerk::ReferenceOffense]) }
|
57
56
|
def self.get_offenses_for_files_by_package(files)
|
58
57
|
packages = package_names_for_files(files)
|
data/lib/use_packs/private.rb
CHANGED
@@ -292,6 +292,7 @@ module UsePacks
|
|
292
292
|
metadata: package.metadata
|
293
293
|
)
|
294
294
|
ParsePackwerk.write_package_yml!(new_package)
|
295
|
+
PackwerkWrapper.validate!
|
295
296
|
end
|
296
297
|
|
297
298
|
sig { params(file_move_operation: FileMoveOperation, per_file_processors: T::Array[UsePacks::PerFileProcessorInterface]).void }
|
@@ -83,9 +83,7 @@ module UsePacks
|
|
83
83
|
<<~MSG
|
84
84
|
Your next steps might be:
|
85
85
|
|
86
|
-
1) Run `bin/packwerk
|
87
|
-
|
88
|
-
2) Run `bin/packwerk update-todo` to update the violations.
|
86
|
+
1) Run `bin/packwerk update-todo` to update the violations.
|
89
87
|
MSG
|
90
88
|
end
|
91
89
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: use_packs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
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-12-
|
11
|
+
date: 2022-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: code_ownership
|