use_packs 0.0.9 → 0.0.11

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: 5c6107646aeefea9f36c1605941ca7f4bd5b73514d08e3e7c828584427db2cf0
4
- data.tar.gz: 901f73b8370a22a61ee8c216b0248eb9e4a88085a50b768aaba2b45eb4db7892
3
+ metadata.gz: 56ce2bde968a560b111d1be1dde1ea510e11cdf2fd5207ee61200719a535af2b
4
+ data.tar.gz: 369878a0a5e538739ed19f2050176bbb58397a98e1e8a12f653fd44a65a7a4a8
5
5
  SHA512:
6
- metadata.gz: 1ad56e7dff3af526050c1fe5396d09e4d23a52ef13e3f24be9b74ba6e6cdf327453e3368b5fbf4b1312868f796093fa33fb4aef87b36437d6c9f1d51400ad541
7
- data.tar.gz: d67586764b67237a249b5722ad89c56d45af1e8ee4a23218ca115eccf708740c854b79ab81414298a65ffa35e760f8b1c35939de010fc783a44d52748fe345c1
6
+ metadata.gz: 760dcede5ac85d7c11f9f8494b299060f11b1dab1518b431f337f5e196595213d21cc49fba3847c9ca116df68afea838f21a0986ce6d8166567765c15d94230f
7
+ data.tar.gz: 9d846a10c935462ebb2c36db38afc26702b6191dafdba359e5401d8511e8c1b1c9901f39e7edd7d4bfff0d112f38770b228772cd5c28243db187d6033d842c14
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
- system("bin/packwerk check #{paths.join(' ')}")
102
+ UsePacks.execute(['check', *paths])
103
103
  end
104
104
 
105
105
  desc 'update [ packs/my_pack ]', 'Run bin/packwerk update-todo'
@@ -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.9
4
+ version: 0.0.11
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-19 00:00:00.000000000 Z
11
+ date: 2022-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: code_ownership