optify-config 1.2.0-arm64-darwin → 1.2.1-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 +4 -4
 - data/lib/optify_ruby/3.2/optify_ruby.bundle +0 -0
 - data/lib/optify_ruby/3.4/optify_ruby.bundle +0 -0
 - data/lib/optify_ruby/provider_module.rb +1 -0
 - data/rbi/optify.rbi +28 -27
 - data/sig/optify.rbs +6 -6
 - metadata +4 -4
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 216814e1b98542c54c2ebd9c8210dc622b81c210b975fac675871fa8bffcd023
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 1241af3d29a15f631b02ae2817cafe5ab5fabb81eeaac1d3d8434ad481c17322
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 30776bc4cbb0b4b46af1e6f350270aacab672dd6f4c1145244e7fbca1a11e66742798f8e7f8de2e19cc2fb1af7dc6b0fbd40c5d9c7e622bf0cf96d216eb72b26
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 2f26251790b86e3d6ac703974ad9d22fc75e33a004df1adbc72d9b11c905783fbd43e269a8847b28e66226faab352d37eec4566cb676924dead3129b3d051f0b
         
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         @@ -49,6 +49,7 @@ module Optify 
     | 
|
| 
       49 
49 
     | 
    
         
             
                # @param key The key to fetch options for.
         
     | 
| 
       50 
50 
     | 
    
         
             
                # @param feature_names The enabled feature names to use to build the options.
         
     | 
| 
       51 
51 
     | 
    
         
             
                # @param config_class The class of the configuration to return.
         
     | 
| 
      
 52 
     | 
    
         
            +
                # The class must implement `from_hash` as a class method to convert a hash to an instance of the class.
         
     | 
| 
       52 
53 
     | 
    
         
             
                # It is recommended to use a class that extends `Optify::BaseConfig` because it implements `from_hash`.
         
     | 
| 
       53 
54 
     | 
    
         
             
                # @param cache_options Set this if caching is desired. Only very simple caching is supported for now.
         
     | 
| 
       54 
55 
     | 
    
         
             
                # @param preferences The preferences to use when getting options.
         
     | 
    
        data/rbi/optify.rbi
    CHANGED
    
    | 
         @@ -94,6 +94,29 @@ module Optify 
     | 
|
| 
       94 
94 
     | 
    
         
             
                sig { params(canonical_feature_name: String).returns(T.nilable(OptionsMetadata)) }
         
     | 
| 
       95 
95 
     | 
    
         
             
                def get_feature_metadata(canonical_feature_name); end
         
     | 
| 
       96 
96 
     | 
    
         | 
| 
      
 97 
     | 
    
         
            +
                # Fetches options based on the provided key and feature names.
         
     | 
| 
      
 98 
     | 
    
         
            +
                #
         
     | 
| 
      
 99 
     | 
    
         
            +
                # @param key The key to fetch options for.
         
     | 
| 
      
 100 
     | 
    
         
            +
                # @param feature_names The enabled feature names to use to build the options.
         
     | 
| 
      
 101 
     | 
    
         
            +
                # @param config_class The class of the configuration to return.
         
     | 
| 
      
 102 
     | 
    
         
            +
                # The class must implement `from_hash` as a class method to convert a hash to an instance of the class.
         
     | 
| 
      
 103 
     | 
    
         
            +
                # It is recommended to use a class that extends `Optify::BaseConfig` because it implements `from_hash`.
         
     | 
| 
      
 104 
     | 
    
         
            +
                # @param cache_options Set this if caching is desired. Only very simple caching is supported for now.
         
     | 
| 
      
 105 
     | 
    
         
            +
                # @param preferences The preferences to use when getting options.
         
     | 
| 
      
 106 
     | 
    
         
            +
                # @return The options.
         
     | 
| 
      
 107 
     | 
    
         
            +
                sig do
         
     | 
| 
      
 108 
     | 
    
         
            +
                  type_parameters(:Config)
         
     | 
| 
      
 109 
     | 
    
         
            +
                    .params(
         
     | 
| 
      
 110 
     | 
    
         
            +
                      key: String,
         
     | 
| 
      
 111 
     | 
    
         
            +
                      feature_names: T::Array[String],
         
     | 
| 
      
 112 
     | 
    
         
            +
                      config_class: T::Class[T.type_parameter(:Config)],
         
     | 
| 
      
 113 
     | 
    
         
            +
                      cache_options: T.nilable(CacheOptions),
         
     | 
| 
      
 114 
     | 
    
         
            +
                      preferences: T.nilable(Optify::GetOptionsPreferences)
         
     | 
| 
      
 115 
     | 
    
         
            +
                    )
         
     | 
| 
      
 116 
     | 
    
         
            +
                    .returns(T.type_parameter(:Config))
         
     | 
| 
      
 117 
     | 
    
         
            +
                end
         
     | 
| 
      
 118 
     | 
    
         
            +
                def get_options(key, feature_names, config_class, cache_options = nil, preferences = nil); end
         
     | 
| 
      
 119 
     | 
    
         
            +
             
     | 
| 
       97 
120 
     | 
    
         
             
                # Fetches options in JSON format based on the provided key and feature names.
         
     | 
| 
       98 
121 
     | 
    
         
             
                #
         
     | 
| 
       99 
122 
     | 
    
         
             
                # @param key [String] the key to fetch options for.
         
     | 
| 
         @@ -114,6 +137,11 @@ module Optify 
     | 
|
| 
       114 
137 
     | 
    
         
             
                end
         
     | 
| 
       115 
138 
     | 
    
         
             
                def get_options_json_with_preferences(key, feature_names, preferences); end
         
     | 
| 
       116 
139 
     | 
    
         | 
| 
      
 140 
     | 
    
         
            +
                # (Optional) Eagerly initializes the cache.
         
     | 
| 
      
 141 
     | 
    
         
            +
                # @return `self`.
         
     | 
| 
      
 142 
     | 
    
         
            +
                sig { returns(T.self_type) }
         
     | 
| 
      
 143 
     | 
    
         
            +
                def init; end
         
     | 
| 
      
 144 
     | 
    
         
            +
             
     | 
| 
       117 
145 
     | 
    
         
             
                private
         
     | 
| 
       118 
146 
     | 
    
         | 
| 
       119 
147 
     | 
    
         
             
                # Map aliases or canonical feature names (perhaps derived from a file names) to the canonical feature names.
         
     | 
| 
         @@ -132,33 +160,6 @@ module Optify 
     | 
|
| 
       132 
160 
     | 
    
         
             
                # @return All of the keys and values for the the features.
         
     | 
| 
       133 
161 
     | 
    
         
             
                sig { returns(String) }
         
     | 
| 
       134 
162 
     | 
    
         
             
                def features_with_metadata_json; end
         
     | 
| 
       135 
     | 
    
         
            -
             
     | 
| 
       136 
     | 
    
         
            -
                # Fetches options based on the provided key and feature names.
         
     | 
| 
       137 
     | 
    
         
            -
                #
         
     | 
| 
       138 
     | 
    
         
            -
                # @param key The key to fetch options for.
         
     | 
| 
       139 
     | 
    
         
            -
                # @param feature_names The enabled feature names to use to build the options.
         
     | 
| 
       140 
     | 
    
         
            -
                # @param config_class The class of the configuration to return.
         
     | 
| 
       141 
     | 
    
         
            -
                # It is recommended to use a class that extends `Optify::BaseConfig` because it implements `from_hash`.
         
     | 
| 
       142 
     | 
    
         
            -
                # @param cache_options Set this if caching is desired. Only very simple caching is supported for now.
         
     | 
| 
       143 
     | 
    
         
            -
                # @param preferences The preferences to use when getting options.
         
     | 
| 
       144 
     | 
    
         
            -
                # @return The options.
         
     | 
| 
       145 
     | 
    
         
            -
                sig do
         
     | 
| 
       146 
     | 
    
         
            -
                  type_parameters(:Config)
         
     | 
| 
       147 
     | 
    
         
            -
                    .params(
         
     | 
| 
       148 
     | 
    
         
            -
                      key: String,
         
     | 
| 
       149 
     | 
    
         
            -
                      feature_names: T::Array[String],
         
     | 
| 
       150 
     | 
    
         
            -
                      config_class: T::Class[T.type_parameter(:Config)],
         
     | 
| 
       151 
     | 
    
         
            -
                      cache_options: T.nilable(CacheOptions),
         
     | 
| 
       152 
     | 
    
         
            -
                      preferences: T.nilable(Optify::GetOptionsPreferences)
         
     | 
| 
       153 
     | 
    
         
            -
                    )
         
     | 
| 
       154 
     | 
    
         
            -
                    .returns(T.type_parameter(:Config))
         
     | 
| 
       155 
     | 
    
         
            -
                end
         
     | 
| 
       156 
     | 
    
         
            -
                def get_options(key, feature_names, config_class, cache_options = nil, preferences = nil); end
         
     | 
| 
       157 
     | 
    
         
            -
             
     | 
| 
       158 
     | 
    
         
            -
                # (Optional) Eagerly initializes the cache.
         
     | 
| 
       159 
     | 
    
         
            -
                # @return `self`.
         
     | 
| 
       160 
     | 
    
         
            -
                sig { returns(T.self_type) }
         
     | 
| 
       161 
     | 
    
         
            -
                def init; end
         
     | 
| 
       162 
163 
     | 
    
         
             
              end
         
     | 
| 
       163 
164 
     | 
    
         | 
| 
       164 
165 
     | 
    
         
             
              # Provides configurations based on keys and enabled feature names.
         
     | 
    
        data/sig/optify.rbs
    CHANGED
    
    | 
         @@ -73,6 +73,8 @@ module Optify::ProviderModule 
     | 
|
| 
       73 
73 
     | 
    
         
             
              # @return The metadata for the feature.
         
     | 
| 
       74 
74 
     | 
    
         
             
              def get_feature_metadata: (String canonical_feature_name) -> OptionsMetadata?
         
     | 
| 
       75 
75 
     | 
    
         | 
| 
      
 76 
     | 
    
         
            +
              def get_options: [Config] (String key, ::Array[String] feature_names, T::Class[Config] config_class, ?CacheOptions? cache_options, ?Optify::GetOptionsPreferences? preferences) -> Config
         
     | 
| 
      
 77 
     | 
    
         
            +
             
     | 
| 
       76 
78 
     | 
    
         
             
              # Fetches options in JSON format based on the provided key and feature names.
         
     | 
| 
       77 
79 
     | 
    
         
             
              #
         
     | 
| 
       78 
80 
     | 
    
         
             
              # @param key [String] the key to fetch options for.
         
     | 
| 
         @@ -82,6 +84,10 @@ module Optify::ProviderModule 
     | 
|
| 
       82 
84 
     | 
    
         | 
| 
       83 
85 
     | 
    
         
             
              def get_options_json_with_preferences: (String key, ::Array[String] feature_names, GetOptionsPreferences preferences) -> String
         
     | 
| 
       84 
86 
     | 
    
         | 
| 
      
 87 
     | 
    
         
            +
              # (Optional) Eagerly initializes the cache.
         
     | 
| 
      
 88 
     | 
    
         
            +
              # @return `self`.
         
     | 
| 
      
 89 
     | 
    
         
            +
              def init: () -> self
         
     | 
| 
      
 90 
     | 
    
         
            +
             
     | 
| 
       85 
91 
     | 
    
         
             
              # Map aliases or canonical feature names (perhaps derived from a file names) to the canonical feature names.
         
     | 
| 
       86 
92 
     | 
    
         
             
              # Canonical feature names map to themselves.
         
     | 
| 
       87 
93 
     | 
    
         
             
              # This implementation calls the Rust implementation directly.
         
     | 
| 
         @@ -95,12 +101,6 @@ module Optify::ProviderModule 
     | 
|
| 
       95 
101 
     | 
    
         | 
| 
       96 
102 
     | 
    
         
             
              # @return All of the keys and values for the the features.
         
     | 
| 
       97 
103 
     | 
    
         
             
              def features_with_metadata_json: () -> String
         
     | 
| 
       98 
     | 
    
         
            -
             
     | 
| 
       99 
     | 
    
         
            -
              def get_options: [Config] (String key, ::Array[String] feature_names, T::Class[Config] config_class, ?CacheOptions? cache_options, ?Optify::GetOptionsPreferences? preferences) -> Config
         
     | 
| 
       100 
     | 
    
         
            -
             
     | 
| 
       101 
     | 
    
         
            -
              # (Optional) Eagerly initializes the cache.
         
     | 
| 
       102 
     | 
    
         
            -
              # @return `self`.
         
     | 
| 
       103 
     | 
    
         
            -
              def init: () -> self
         
     | 
| 
       104 
104 
     | 
    
         
             
            end
         
     | 
| 
       105 
105 
     | 
    
         | 
| 
       106 
106 
     | 
    
         
             
            # Provides configurations based on keys and enabled feature names.
         
     | 
    
        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.2. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.2.1
         
     | 
| 
       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- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2025-04-25 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: sorbet-runtime
         
     | 
| 
         @@ -44,14 +44,14 @@ dependencies: 
     | 
|
| 
       44 
44 
     | 
    
         
             
                requirements:
         
     | 
| 
       45 
45 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       46 
46 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       47 
     | 
    
         
            -
                    version: 3. 
     | 
| 
      
 47 
     | 
    
         
            +
                    version: 3.9.2
         
     | 
| 
       48 
48 
     | 
    
         
             
              type: :development
         
     | 
| 
       49 
49 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       50 
50 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       51 
51 
     | 
    
         
             
                requirements:
         
     | 
| 
       52 
52 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       53 
53 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       54 
     | 
    
         
            -
                    version: 3. 
     | 
| 
      
 54 
     | 
    
         
            +
                    version: 3.9.2
         
     | 
| 
       55 
55 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       56 
56 
     | 
    
         
             
              name: sorbet
         
     | 
| 
       57 
57 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     |