use_packwerk 0.63.0 → 0.64.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d6ef7e8cd0b3253daba5690f8c80ad930f5b5fd609bb18bd8760275d64717745
|
|
4
|
+
data.tar.gz: 946a5ac17ac9316d6ce4fff47c77e53f228bc94ce95b251813fb00a859e1522e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 25b021c870b03ab4ac3086d7620aa773490d1332c49a76e76ccea8f9605c9fc62687b86819bdd7175527dca69bb865374ed7149e3d1af2db3ca89dd434d75e6f
|
|
7
|
+
data.tar.gz: c28a6bf619db1a741716de8cfe93e0d634a8c8017e2ea74af3c2e4698b1a6b58de57e6a4b6c378c2dd1e16075e30b28d9dc9ec4b92e575faa8a5bba70cd2bb43
|
|
@@ -11,13 +11,13 @@ module UsePackwerk
|
|
|
11
11
|
|
|
12
12
|
sig { override.params(prompt: TTY::Prompt).void }
|
|
13
13
|
def perform!(prompt)
|
|
14
|
-
packs = PackSelector.single_or_all_pack_multi_select(prompt, question_text:
|
|
14
|
+
packs = PackSelector.single_or_all_pack_multi_select(prompt, question_text: "Please select the packs you want to regenerate `#{RuboCop::Packs::PACK_LEVEL_RUBOCOP_TODO_YML}` for")
|
|
15
15
|
RuboCop::Packs.auto_generate_rubocop_todo(packs: packs)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
sig { override.returns(String) }
|
|
19
19
|
def user_facing_name
|
|
20
|
-
|
|
20
|
+
"Regenerate packs/*/#{RuboCop::Packs::PACK_LEVEL_RUBOCOP_TODO_YML} for one or more packs"
|
|
21
21
|
end
|
|
22
22
|
end
|
|
23
23
|
end
|
|
@@ -20,7 +20,7 @@ module UsePackwerk
|
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
if file_move_operation.origin_pack.name != ParsePackwerk::ROOT_PACKAGE_NAME && file_move_operation.destination_pack.name != ParsePackwerk::ROOT_PACKAGE_NAME
|
|
23
|
-
origin_rubocop_todo = file_move_operation.origin_pack.directory.join(
|
|
23
|
+
origin_rubocop_todo = file_move_operation.origin_pack.directory.join(RuboCop::Packs::PACK_LEVEL_RUBOCOP_TODO_YML)
|
|
24
24
|
if origin_rubocop_todo.exist?
|
|
25
25
|
loaded_origin_rubocop_todo = YAML.load_file(origin_rubocop_todo)
|
|
26
26
|
new_origin_rubocop_todo = loaded_origin_rubocop_todo.dup
|
|
@@ -31,7 +31,7 @@ module UsePackwerk
|
|
|
31
31
|
new_origin_rubocop_todo[cop_name]['Exclude'] = cop_config['Exclude'] - [relative_path_to_origin.to_s]
|
|
32
32
|
origin_rubocop_todo.write(YAML.dump(new_origin_rubocop_todo))
|
|
33
33
|
|
|
34
|
-
destination_rubocop_todo = file_move_operation.destination_pack.directory.join(
|
|
34
|
+
destination_rubocop_todo = file_move_operation.destination_pack.directory.join(RuboCop::Packs::PACK_LEVEL_RUBOCOP_TODO_YML)
|
|
35
35
|
if destination_rubocop_todo.exist?
|
|
36
36
|
new_destination_rubocop_todo = YAML.load_file(destination_rubocop_todo).dup
|
|
37
37
|
else
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: use_packwerk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.64.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-11-
|
|
11
|
+
date: 2022-11-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: code_ownership
|