packwerk-extensions 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/packwerk/privacy/validator.rb +1 -1
- data/lib/packwerk/visibility/validator.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1317a98d7569bfe1b33cc9a816e768ddbe0dd8a6ab33f3e746f15870a533704
|
4
|
+
data.tar.gz: ee91aae5d17e4ac4408440da88fe92982a8c114e11d9d7026087f13afaff5ebf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba36bca58d779e3c10960b4193bb14abd7d2d57c3866d0097094cffd508391bf72264466ca1095a7e16aac410b954c4ce53cc677b824b528866a9d8bf6822c85
|
7
|
+
data.tar.gz: 7d7b3a5f57229dc7578ea31e98b04ea73036fe39087235181185792fb2f2b7213e8659c9c3d3b70e6a2d38f0ca7ba6e2dd6fc7af3c15d22e75a9220ea072dc19
|
@@ -72,7 +72,7 @@ module Packwerk
|
|
72
72
|
params(config_file_path: String, setting: T.untyped).returns(Result)
|
73
73
|
end
|
74
74
|
def check_enforce_privacy_setting(config_file_path, setting)
|
75
|
-
if [TrueClass, FalseClass, Array, NilClass].include?(setting.class)
|
75
|
+
if [TrueClass, FalseClass, Array, NilClass].include?(setting.class) || setting == 'strict'
|
76
76
|
Result.new(ok: true)
|
77
77
|
else
|
78
78
|
Result.new(
|
@@ -19,7 +19,7 @@ module Packwerk
|
|
19
19
|
package_manifests_settings_for(configuration, 'enforce_visibility').each do |config, setting|
|
20
20
|
next if setting.nil?
|
21
21
|
|
22
|
-
next if [TrueClass, FalseClass
|
22
|
+
next if [TrueClass, FalseClass].include?(setting.class) || setting == 'strict'
|
23
23
|
|
24
24
|
results << Result.new(
|
25
25
|
ok: false,
|