use_packs 0.0.10 → 0.0.12
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 +4 -4
- data/lib/use_packs/private.rb +8 -4
- data/lib/use_packs.rb +2 -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: 5f98eb76891cbb942fb3d546c0b8a8aa15be6a8cd6068b84717e808a66a7fc55
|
4
|
+
data.tar.gz: 967fe01ab77ca126919f70b92d578eb479a290c3d858bcfff502dd4c333a5c25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0997685aee1f0f5be74164cce68fe0517c73f3635619696ddd1e4a0bc1b4be1c5143882ba3888bd5661d767ebc5f856bc29de516f621fe0d45f5a4ab28d91a9
|
7
|
+
data.tar.gz: d6031d17ba30549dd813e240aa558330ad0e0233c6ec5437ecd215b26f9d09a1c79b658262fa74457e5b9985d8aa7bdf3c2f9065787e81d87ffd43b5006a12e1
|
data/lib/use_packs/cli.rb
CHANGED
@@ -102,10 +102,10 @@ module UsePacks
|
|
102
102
|
UsePacks.execute(['check', *paths])
|
103
103
|
end
|
104
104
|
|
105
|
-
desc 'update
|
106
|
-
sig {
|
107
|
-
def update
|
108
|
-
system(
|
105
|
+
desc 'update', 'Run bin/packwerk update-todo'
|
106
|
+
sig { void }
|
107
|
+
def update
|
108
|
+
system('bin/packwerk update-todo')
|
109
109
|
end
|
110
110
|
|
111
111
|
desc 'regenerate_rubocop_todo [ packs/my_pack packs/my_other_pack ]', "Regenerate packs/*/#{RuboCop::Packs::PACK_LEVEL_RUBOCOP_TODO_YML} for one or more packs"
|
data/lib/use_packs/private.rb
CHANGED
@@ -170,7 +170,8 @@ module UsePacks
|
|
170
170
|
enforce_privacy: package.enforce_dependencies,
|
171
171
|
enforce_dependencies: package.enforce_dependencies,
|
172
172
|
dependencies: package.dependencies,
|
173
|
-
metadata: package.metadata
|
173
|
+
metadata: package.metadata,
|
174
|
+
config: package.config
|
174
175
|
)
|
175
176
|
ParsePackwerk.write_package_yml!(new_package)
|
176
177
|
ParsePackwerk.bust_cache!
|
@@ -200,7 +201,8 @@ module UsePacks
|
|
200
201
|
enforce_privacy: other_package.enforce_privacy,
|
201
202
|
enforce_dependencies: other_package.enforce_dependencies,
|
202
203
|
dependencies: new_dependencies.uniq.sort,
|
203
|
-
metadata: other_package.metadata
|
204
|
+
metadata: other_package.metadata,
|
205
|
+
config: other_package.config
|
204
206
|
)
|
205
207
|
|
206
208
|
ParsePackwerk.write_package_yml!(new_other_package)
|
@@ -289,7 +291,8 @@ module UsePacks
|
|
289
291
|
dependencies: (package.dependencies + [dependency_name]).uniq.sort,
|
290
292
|
enforce_privacy: package.enforce_privacy,
|
291
293
|
enforce_dependencies: package.enforce_dependencies,
|
292
|
-
metadata: package.metadata
|
294
|
+
metadata: package.metadata,
|
295
|
+
config: package.config
|
293
296
|
)
|
294
297
|
ParsePackwerk.write_package_yml!(new_package)
|
295
298
|
PackwerkWrapper.validate!
|
@@ -370,7 +373,8 @@ module UsePacks
|
|
370
373
|
metadata: {
|
371
374
|
'owner' => team.nil? ? 'MyTeam' : team.name
|
372
375
|
},
|
373
|
-
name: pack_name
|
376
|
+
name: pack_name,
|
377
|
+
config: {}
|
374
378
|
)
|
375
379
|
|
376
380
|
ParsePackwerk.write_package_yml!(package)
|
data/lib/use_packs.rb
CHANGED
@@ -290,7 +290,8 @@ module UsePacks
|
|
290
290
|
enforce_privacy: p.enforce_privacy,
|
291
291
|
enforce_dependencies: p.enforce_dependencies,
|
292
292
|
dependencies: p.dependencies.uniq.sort,
|
293
|
-
metadata: p.metadata
|
293
|
+
metadata: p.metadata,
|
294
|
+
config: p.config
|
294
295
|
)
|
295
296
|
ParsePackwerk.write_package_yml!(new_package)
|
296
297
|
end
|
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.12
|
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-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: code_ownership
|