optify-config 1.21.1-x86_64-linux → 1.22.0-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.3/optify_ruby.so +0 -0
- data/lib/optify_ruby/3.4/optify_ruby.so +0 -0
- data/lib/optify_ruby/provider_module.rb +3 -3
- data/rbi/optify.rbi +16 -4
- data/sig/optify.rbs +13 -4
- 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: 119a36ad3f071f722fa6a1f3135b0e4f7f326e39c2b67d5b5b6353232309cd13
|
|
4
|
+
data.tar.gz: 2a6997eea8c2846ebffa4bb00e95cd36c83e0c24301f02f809e630832d783928
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6f19b2be0c2d59a37c337fc988fc4778a2f82b266e676a19e8ba0f90f3063bf732df8b8cdc2b74693d364f7078111c64a491b607cd469856d4dd03dd6f4cfbd0
|
|
7
|
+
data.tar.gz: 7ddc8edcb2dcce7c9fa7bfc7253e77a0dc0026d0dfc8952dda91b103669d0d5c3707d6fd48872e07ff3138dc9ddb30e15d63b91ad028004d6da7cbb0c706aea9
|
|
Binary file
|
|
Binary file
|
|
@@ -128,8 +128,8 @@ module Optify
|
|
|
128
128
|
end
|
|
129
129
|
|
|
130
130
|
# Features are filtered, so we don't need the constraints in the cache key.
|
|
131
|
-
|
|
132
|
-
cache_key = [key, feature_names,
|
|
131
|
+
are_configurable_values_enabled = preferences&.are_configurable_values_enabled? || false
|
|
132
|
+
cache_key = [key, feature_names, are_configurable_values_enabled, config_class]
|
|
133
133
|
ProviderModule._cache_getset(
|
|
134
134
|
@cache, #: as !nil
|
|
135
135
|
cache_key,
|
|
@@ -141,7 +141,7 @@ module Optify
|
|
|
141
141
|
# We already know there are no overrides because we checked above.
|
|
142
142
|
cache_miss_preferences = GetOptionsPreferences.new
|
|
143
143
|
cache_miss_preferences.skip_feature_name_conversion = true
|
|
144
|
-
cache_miss_preferences.
|
|
144
|
+
cache_miss_preferences.enable_configurable_values if are_configurable_values_enabled
|
|
145
145
|
|
|
146
146
|
_get_options(key, feature_names, config_class, nil, cache_miss_preferences)
|
|
147
147
|
end
|
data/rbi/optify.rbi
CHANGED
|
@@ -78,19 +78,31 @@ module Optify
|
|
|
78
78
|
|
|
79
79
|
# Preferences when getting options.
|
|
80
80
|
class GetOptionsPreferences
|
|
81
|
-
#
|
|
82
|
-
# They are disabled by default.
|
|
81
|
+
# Deprecated: Use `are_configurable_values_enabled?` instead.
|
|
83
82
|
sig { returns(T::Boolean) }
|
|
84
83
|
def are_configurable_strings_enabled?; end
|
|
85
84
|
|
|
86
|
-
#
|
|
85
|
+
# Deprecated: Use `disable_configurable_values` instead.
|
|
87
86
|
sig { void }
|
|
88
87
|
def disable_configurable_strings; end
|
|
89
88
|
|
|
90
|
-
#
|
|
89
|
+
# Deprecated: Use `enable_configurable_values` instead.
|
|
91
90
|
sig { void }
|
|
92
91
|
def enable_configurable_strings; end
|
|
93
92
|
|
|
93
|
+
# Indicates if configurable values, such as strings and lists, are enabled.
|
|
94
|
+
# They are disabled by default.
|
|
95
|
+
sig { returns(T::Boolean) }
|
|
96
|
+
def are_configurable_values_enabled?; end
|
|
97
|
+
|
|
98
|
+
# Disable configurable values which default to disabled.
|
|
99
|
+
sig { void }
|
|
100
|
+
def disable_configurable_values; end
|
|
101
|
+
|
|
102
|
+
# Enable configurable values which default to disabled.
|
|
103
|
+
sig { void }
|
|
104
|
+
def enable_configurable_values; end
|
|
105
|
+
|
|
94
106
|
# Set constraints for the current request to limit the features that can be enabled.
|
|
95
107
|
sig { params(value: T.nilable(T::Hash[T.untyped, T.untyped])).void }
|
|
96
108
|
def constraints=(value); end
|
data/sig/optify.rbs
CHANGED
|
@@ -55,16 +55,25 @@ end
|
|
|
55
55
|
|
|
56
56
|
# Preferences when getting options.
|
|
57
57
|
class Optify::GetOptionsPreferences
|
|
58
|
-
#
|
|
59
|
-
# They are disabled by default.
|
|
58
|
+
# Deprecated: Use `are_configurable_values_enabled?` instead.
|
|
60
59
|
def are_configurable_strings_enabled?: () -> bool
|
|
61
60
|
|
|
62
|
-
#
|
|
61
|
+
# Deprecated: Use `disable_configurable_values` instead.
|
|
63
62
|
def disable_configurable_strings: () -> void
|
|
64
63
|
|
|
65
|
-
#
|
|
64
|
+
# Deprecated: Use `enable_configurable_values` instead.
|
|
66
65
|
def enable_configurable_strings: () -> void
|
|
67
66
|
|
|
67
|
+
# Indicates if configurable values, such as strings and lists, are enabled.
|
|
68
|
+
# They are disabled by default.
|
|
69
|
+
def are_configurable_values_enabled?: () -> bool
|
|
70
|
+
|
|
71
|
+
# Disable configurable values which default to disabled.
|
|
72
|
+
def disable_configurable_values: () -> void
|
|
73
|
+
|
|
74
|
+
# Enable configurable values which default to disabled.
|
|
75
|
+
def enable_configurable_values: () -> void
|
|
76
|
+
|
|
68
77
|
# Set constraints for the current request to limit the features that can be enabled.
|
|
69
78
|
def constraints=: (::Hash[untyped, untyped]? value) -> void
|
|
70
79
|
|
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.22.0
|
|
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: 2026-04
|
|
11
|
+
date: 2026-06-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: optify-from_hash
|