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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b7fea06d86abb03ba6ef34da052ca7cffcfbb0a05e0c8d6dfd2f48e5bd45fbb1
4
- data.tar.gz: e66f49a41bd969e2ebc0801f42647823d19e3d2a158e53d1cb8854a7b84fa42c
3
+ metadata.gz: a1317a98d7569bfe1b33cc9a816e768ddbe0dd8a6ab33f3e746f15870a533704
4
+ data.tar.gz: ee91aae5d17e4ac4408440da88fe92982a8c114e11d9d7026087f13afaff5ebf
5
5
  SHA512:
6
- metadata.gz: 960ef0ab02a22b82663d44b6b28ca530e4998b683dafd35c1bf6d6fd8d778aca8d062f9ca96d6149c000a39686f02c7c859d04992df489f06ad5c1044f4e8754
7
- data.tar.gz: ba25114ea98091d77ee510f03ca553713a5b532a4b4cd287dffff77accb7ad83882532abf4a147a96d7e402ba364a7fed4193691374ced53bf637e45d47cb11b
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, 'strict'].include?(setting.class)
22
+ next if [TrueClass, FalseClass].include?(setting.class) || setting == 'strict'
23
23
 
24
24
  results << Result.new(
25
25
  ok: false,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: packwerk-extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gusto Engineers