modularization_statistics 1.39.0 → 1.40.0

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: c11bc9704708d387bff6b5d7245832c6d57c9291a7dcc306513e3942afb53311
4
- data.tar.gz: 7d5403d37a5811f5ef1798a3a8bfb96b304124ada289b75dba14db0844fd252e
3
+ metadata.gz: 1d2ee852554f37feac4459bf6693e0d33c2548a7c1ee8e61de4bfe84e74e7349
4
+ data.tar.gz: abe5cc4fb463ba76e0574826f8de32c3bba0e5c825099e246ec543a570b4edb2
5
5
  SHA512:
6
- metadata.gz: 2c82a234d983ddc50d494f6eb8933633a0b61a7e82783d375f5d22b02c1e12fb476f9fb70ca35885ecadc879dd1fc94179cf6db3b1d52f47501afe38c6349651
7
- data.tar.gz: ec00762292cdec0eb441ad424bdd5e80733a9acd418925f82c92142988df9d4b3b6843b8e4de1d9b8190e48cf23f6818b2e4f7176bf263a6541fa490181c38b0
6
+ metadata.gz: 3e779207990c24242ac661f2760c7f20c7d9e01f0198309491e6a65e69dceb6adb0272f34d7b5ea0b52a46f9b7dbd559842ad1ad6771b9f3b0a860a1ca7a2c92
7
+ data.tar.gz: 24a15392b40e998f2b7d6c3a1114513245fce0a35ca40d4c28caf0ffdae4f0d2054dfcfb5cee706723b7a4905e5423b52cc46423804f8bfa2510822658a22984
@@ -27,7 +27,7 @@ module ModularizationStatistics
27
27
  #
28
28
  # This is temporarily in place until we migrate off of `package_protections` in favor of `rubocop-packs`.
29
29
  # At that point, we want to delete this branch and instead it we'd probably have two separate branches.
30
- # One branch would look at `enforce_x` and `metadata.strictly_enforce_x`.
30
+ # One branch would look at `enforce_x` and `metadata.enforce_x_strictly`.
31
31
  # The other branch would look at `.pack_rubocop.yml`.
32
32
  # Later on, we could generalize this so that it automatically incorporates new cops from `rubocop-packs`,
33
33
  # or even new packwerk plugins.
@@ -66,7 +66,7 @@ module ModularizationStatistics
66
66
  end
67
67
  def self.should_count_package?(package, protection, violation_behavior)
68
68
  if protection.identifier == 'prevent_this_package_from_violating_its_stated_dependencies'
69
- strict_mode = package.metadata['strictly_enforce_dependencies']
69
+ strict_mode = package.metadata['enforce_dependencies_strictly']
70
70
  enabled = package.enforces_dependencies?
71
71
 
72
72
  case violation_behavior
@@ -80,7 +80,7 @@ module ModularizationStatistics
80
80
  T.absurd(violation_behavior)
81
81
  end
82
82
  elsif protection.identifier == 'prevent_other_packages_from_using_this_packages_internals'
83
- strict_mode = package.metadata['strictly_enforce_privacy']
83
+ strict_mode = package.metadata['enforce_privacy_strictly']
84
84
  enabled = package.enforces_privacy?
85
85
 
86
86
  case violation_behavior
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: modularization_statistics
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.39.0
4
+ version: 1.40.0
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-11-01 00:00:00.000000000 Z
11
+ date: 2022-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: code_teams