feature_map 1.2.7 → 1.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 00c14ab0325750314e2ba3d4106396c2cf8eaa9e66677ad35a90db4d264119b2
4
- data.tar.gz: 99907c175bdd0a1b2e6e45f43ee7f4bf05c4a79e451d8d7908f18cceb2af1e76
3
+ metadata.gz: addbdad7d39c22b44452e84d3217e810dcb4e9bbfa1c5676ea0872e3606c69d5
4
+ data.tar.gz: c85b5d1e30bb11194b74c97a05b432141ab815f28b07e09791f4dec3853fd656
5
5
  SHA512:
6
- metadata.gz: 663ed0b8debf95d4af7cc2248834a2333979dd3f1c6f9a7ef6be4e41370a126b69653c19b8374e3472d10a6a5dc862bb10bdf3647ca2ab50f966aa250f9a2148
7
- data.tar.gz: 22ad967c5af673d779a851a0422852d543eb5d0e811a862ca2c078677578189acaeb97d7d3470952d949448547bad2ae87c2ddae96e6d7c4d909e2475311f631
6
+ metadata.gz: 8e0e106c8073cfa12cd8b92f8c7b9b982e57d66b12ee728662434afba3e17be0cd8ab4de665522187a5589ac6b144a29ead74da596419ea615dcf923fec409a0
7
+ data.tar.gz: 6b15a1b7d543ef3212c61720f84220597d0f78140722121afb668eca5150198bb7fd3cad6dec153665637594babc0a5a9c58b60f924b4dde1fbc55f6f46c070d
@@ -10,7 +10,7 @@ module FeatureMap
10
10
  @@map_files_to_features = {} # rubocop:disable Style/ClassVars
11
11
 
12
12
  def map_files_to_features(files)
13
- return @@map_files_to_features if @@map_files_to_features&.keys && @@map_files_to_features.keys.count.positive?
13
+ return @@map_files_to_features if @@map_files_to_features&.any?
14
14
 
15
15
  @@map_files_to_features = CodeFeatures.all.each_with_object({}) do |feature, map| # rubocop:disable Style/ClassVars
16
16
  # NOTE: The FeatureDefinitionAssignment naively assumes that all
@@ -11,7 +11,7 @@ module FeatureMap
11
11
  @@map_files_to_features = {} # rubocop:disable Style/ClassVars
12
12
 
13
13
  def map_files_to_features(files)
14
- return @@map_files_to_features if @@map_files_to_features&.keys && @@map_files_to_features.keys.count.positive?
14
+ return @@map_files_to_features if @@map_files_to_features&.any?
15
15
 
16
16
  @@map_files_to_features = FeatureMap::CodeFeatures.all.each_with_object({}) do |feature, map| # rubocop:disable Style/ClassVars
17
17
  FeaturePlugins::Assignment.for(feature).assigned_globs.each do |glob|