packwerk-extensions 0.1.3 → 0.1.4

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: 386976d614f05a729cca841349279d58275a040efc1ed557f986bde6e12ed121
4
- data.tar.gz: 5b185ef7ffd80fc5729be39de4ae42183ae0c327f28795731981b1cd4c85054c
3
+ metadata.gz: 43b45f3f9f067f3d9693ef9d51a39c0c5f50af96e11ddb5091a5cafdaa0dbb60
4
+ data.tar.gz: 418c9911e1a3032d4b03c01af4876871b8d0420471927f9f3818f4d069a1e1c9
5
5
  SHA512:
6
- metadata.gz: 50b1c9dfeedb990ee1288e9cdcde59590e03dd92e94f57806ce9b81572a2eb74da0fb5bf397068e6ce511ed884b0fc64f0c2bc7d020a00c7c573079449ba5aa7
7
- data.tar.gz: 28380895e41326a78a159708ea3a79d98be283fdd5d35169746d522e3d88331d49fd88877badd4e67a72edf9c9db7311052c2a264c468f36b1874a1c620f284e
6
+ metadata.gz: b9b9ce5577d448c8da70fc9acece7bf0ad789200a352874e3a48e2be15cb8bf7e0eeb25c9f74c3563f7a675f4afbc0843cc5ebb6a1c4d6bc35cdba1f0458d2cc
7
+ data.tar.gz: 0e3c69059991de5039f312fbe099add8f2edb0ae9a79a439c4e4d22e626cccb44a57c02f3d33b8f590b5963b36965d0e2218f729996d0474563bd95841af86f8
@@ -36,10 +36,12 @@ module Packwerk
36
36
 
37
37
  # This allows the layer to be inferred based on the package root
38
38
  package_root = package.name.split('/').first
39
- if package_root && layers.names.include?(package_root)
39
+ if config['layer']
40
+ layer = config['layer']
41
+ elsif package_root && layers.names.include?(package_root)
40
42
  layer = package_root
41
43
  else
42
- layer = config['layer']
44
+ layer = nil
43
45
  end
44
46
 
45
47
  Package.new(
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: packwerk-extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gusto Engineers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-24 00:00:00.000000000 Z
11
+ date: 2023-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: packwerk