optify-config 0.8.2-arm64-darwin → 1.1.0-arm64-darwin

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: 46726fe61c06c71a19b6641c681cfcaffc575d0ff8dc662d7fd76e19608b15b4
4
- data.tar.gz: 2d91b05f710a8564b3e752c985aba19e36871599d1644fcf939c1aeda9438257
3
+ metadata.gz: 6717da9fa3c223cabf5062f7100fb561e73bb14a723355818c930ab0a49f6302
4
+ data.tar.gz: a43800ba6b8cc81f86a80adb4a77b85857c25e5b612b20de68b3e13c653948cc
5
5
  SHA512:
6
- metadata.gz: 05d029c2ff36ad6532049087e45096b19ba8dedf66f3d3709835e0e6afccb544ff2f63fa5fdf61e7d1a50f8ae6dbcb27160ab1cfcf47b14939f15f87b41d5b53
7
- data.tar.gz: 0eaad57c73624c2fddd5db957594d5d17253f48edf241d161408e882e5db33e6673d6adf353c818efb70461da1ca0afbbaa3831cf1aad112b616620943ebb41b
6
+ metadata.gz: 86b926292f96f4354326b1ffe2bd063faa54c97f9d7f9a3cad522f9b8126a7ebf9c89c44b7f618bcd9891fc5b757b82ff738b1b7abfee4df602c87130ef9379d
7
+ data.tar.gz: 0e2c1e4eabf20fa6fe44662dbe0b709785bd7586ab330a13c33bb4929aedecea4092bff2887a6275006ea446a9491eb57e6727579954e8bf412d40730aa3a8b3
Binary file
Binary file
@@ -88,9 +88,7 @@ module Optify
88
88
  # * Avoid any possible conversion overhead.
89
89
  # * Memory management: probably better to do it in Ruby for a Ruby app and avoid memory in Rust.
90
90
  init unless @cache
91
- feature_names = feature_names.map do |feature_name|
92
- get_canonical_feature_name(feature_name)
93
- end
91
+ feature_names = get_canonical_feature_names(feature_names)
94
92
 
95
93
  cache_key = [key, feature_names, config_class]
96
94
  result = @cache&.fetch(cache_key, NOT_FOUND_IN_CACHE_SENTINEL)
data/rbi/optify.rbi CHANGED
@@ -74,6 +74,14 @@ module Optify
74
74
  sig { params(feature_name: String).returns(String) }
75
75
  def get_canonical_feature_name(feature_name); end
76
76
 
77
+ # Map aliases or canonical feature names (perhaps derived from a file names) to the canonical feature names.
78
+ # Canonical feature names map to themselves.
79
+ #
80
+ # @param feature_names The names of aliases or features.
81
+ # @return The canonical feature names.
82
+ sig { params(feature_names: T::Array[String]).returns(T::Array[String]) }
83
+ def get_canonical_feature_names(feature_names); end
84
+
77
85
  # @return The metadata for the feature.
78
86
  sig { params(canonical_feature_name: String).returns(T.nilable(OptionsMetadata)) }
79
87
  def get_feature_metadata(canonical_feature_name); end
data/sig/optify.rbs CHANGED
@@ -57,6 +57,13 @@ class Optify::OptionsProvider
57
57
  # @return The canonical feature name.
58
58
  def get_canonical_feature_name: (String feature_name) -> String
59
59
 
60
+ # Map aliases or canonical feature names (perhaps derived from a file names) to the canonical feature names.
61
+ # Canonical feature names map to themselves.
62
+ #
63
+ # @param feature_names The names of aliases or features.
64
+ # @return The canonical feature names.
65
+ def get_canonical_feature_names: (::Array[String] feature_names) -> ::Array[String]
66
+
60
67
  # @return The metadata for the feature.
61
68
  def get_feature_metadata: (String canonical_feature_name) -> OptionsMetadata?
62
69
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: optify-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 1.1.0
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - Justin D. Harris
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-04-07 00:00:00.000000000 Z
11
+ date: 2025-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sorbet-runtime