optify-config 1.0.0-x86_64-linux → 1.1.1-x86_64-linux
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 +4 -4
- data/lib/optify_ruby/3.2/optify_ruby.so +0 -0
- data/lib/optify_ruby/3.4/optify_ruby.so +0 -0
- data/lib/optify_ruby/implementation.rb +4 -2
- data/rbi/optify.rbi +8 -0
- data/sig/optify.rbs +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1eb1ffc6d1247d02bab997feac02b34260477f8bd376a7285f88d8f390691a0
|
4
|
+
data.tar.gz: 7434261c974c4542def86b56af9be981cbf38bd6ad87e6b97f9f111180447886
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12ed18ab665cc2bf1c86132707bfa2a7f4553a2e3e17923d5499bab66c700ed22c7fdc5d25022d8549c07f540648e15a41611ed9077bd32c9a5cf94f728dc0c0
|
7
|
+
data.tar.gz: 1adc408eb310c6efde2d8f30c9cbf742d4f789f6f5ced4bfb37ad0dc6c8b3b0a830878e9dd3b080ef8894e904703ae646740be9e7436131f198f6ef9aafe5e69
|
Binary file
|
Binary file
|
@@ -88,8 +88,10 @@ 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
|
-
|
92
|
-
|
91
|
+
unless preferences&.skip_feature_name_conversion
|
92
|
+
# When there are just a few names, then it can be faster to convert them one by one in a loop to avoid working with an array in Rust.
|
93
|
+
# When there are over 7 names, then it is faster to convert them with one call to Rust.
|
94
|
+
feature_names = get_canonical_feature_names(feature_names)
|
93
95
|
end
|
94
96
|
|
95
97
|
cache_key = [key, feature_names, config_class]
|
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: 1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: x86_64-linux
|
6
6
|
authors:
|
7
7
|
- Justin D. Harris
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-04-
|
11
|
+
date: 2025-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sorbet-runtime
|