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 +4 -4
- data/lib/packwerk/architecture/package.rb +4 -2
- 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: 43b45f3f9f067f3d9693ef9d51a39c0c5f50af96e11ddb5091a5cafdaa0dbb60
|
4
|
+
data.tar.gz: 418c9911e1a3032d4b03c01af4876871b8d0420471927f9f3818f4d069a1e1c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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 =
|
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.
|
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
|
11
|
+
date: 2023-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: packwerk
|