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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da298eaafa63d9711e053dda10339d79ebf57280512b3ea4849783859d98ceb0
4
- data.tar.gz: 14d12b7d6ac2aeff5075b4df3c936b619c735f89c8bd062a7e13e85f17f3b0b2
3
+ metadata.gz: 5f98eb76891cbb942fb3d546c0b8a8aa15be6a8cd6068b84717e808a66a7fc55
4
+ data.tar.gz: 967fe01ab77ca126919f70b92d578eb479a290c3d858bcfff502dd4c333a5c25
5
5
  SHA512:
6
- metadata.gz: f1d901340aecc1d8baad2f16181559acb9a79cd41153ba9aa6c3b0f8c0a207c139d03d4184b99f7e98613f591568b8084392f47fa58cd6e1eb2325780188ff0a
7
- data.tar.gz: bd80903a16389bd7191b1e509be98a0ce5049278e96a7640536e1cff2e45915d838ffc0ed188e523776033e339a69c0df5bb5d6d364984dae6f046039b0deaa7
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 [ packs/my_pack ]', 'Run bin/packwerk update-todo'
106
- sig { params(paths: String).void }
107
- def update(*paths)
108
- system("bin/packwerk update-todo #{paths.join(' ')}")
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"
@@ -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.10
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-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