optify-config 0.4.3-arm64-darwin → 0.4.5-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: 2a5a0c843dc307b2357c8c02d3a215efc2b2ce01cb9f1aebef73100b2c3a2a9c
4
- data.tar.gz: 672820f4ed38f0e5ffe2416ffa295940f4538017d2eb229b59b2b008c65e422f
3
+ metadata.gz: 8b10cb37278306bd9da1250a3a5958c2165fd14fb7289e64cc49c58f9d3e79f2
4
+ data.tar.gz: 96213deb814fb5161074e3fd11995a2cbcd9a4d6e1964906148877b6f431a1d9
5
5
  SHA512:
6
- metadata.gz: 1f074539b6a8f38505c693099c4855c6c0f962dca5a870d14d94dbbba9c13f5f98fd0be4a575d06e8112cc2a18543bf1d26caedde4a2ccf273d5825ae5b71e87
7
- data.tar.gz: 9ddb297af009890679b5167ba4da7d5568a9184d590a6dae9e9516c42ac8756271551309ab14b0c252f8cd7a586a9d46a09ac242aa1f279bb78182125efd0ecc
6
+ metadata.gz: b0be294ba5a11d2d26167db9d3f9c05ef7766f5cb3a833e6c6c0fbed04c25eeb333b3df12a35e39aa525716bda6cb9455c6922efc7c974cd35dfe45b69d755b9
7
+ data.tar.gz: fd15663c091e83330192ce2e1708f7ee7775ca24a65fa13926ef2cbf0eb00cb031de1e55316b6b3003698a834f836242f91bab2d50b933e9779bca4864fa2a74
data/lib/optify.rb CHANGED
@@ -13,7 +13,7 @@ require_relative 'optify_ruby/implementation'
13
13
  # but that doesn't work when building for multiple versions of Ruby.
14
14
  # So we have to do this which is similar to something from 'https://github.com/matsadler/halton-rb/blob/main/lib/halton.rb'.
15
15
  begin
16
- /(?<ruby_version>\d+\.\d+)/ =~ RUBY_VERSION
16
+ ruby_version = T.must(RUBY_VERSION.match(/\d+\.\d+/))[0]
17
17
  require_relative "optify_ruby/#{ruby_version}/optify_ruby"
18
18
  rescue LoadError
19
19
  begin
@@ -18,17 +18,6 @@ module Optify
18
18
  class OptionsProvider
19
19
  extend T::Sig
20
20
 
21
- # Fetches options in JSON format based on the provided key and feature names.
22
- #
23
- # @param key [String] the key to fetch options for.
24
- # @param feature_names [Array<String>] The enabled feature names to use to build the options.
25
- # @return [String] the options in JSON.
26
- sig { params(key: String, feature_names: T::Array[String]).returns(String) }
27
- def get_options_json(key, feature_names)
28
- # Implemented in Rust.
29
- raise NotImplementedError
30
- end
31
-
32
21
  # Fetches options based on the provided key and feature names.
33
22
  #
34
23
  # @param key [String] the key to fetch options for.
@@ -93,26 +82,4 @@ module Optify
93
82
  @cache[cache_key] = result
94
83
  end
95
84
  end
96
-
97
- # A builder for creating an `OptionsProvider` instance.
98
- class OptionsProviderBuilder
99
- extend T::Sig
100
-
101
- # Adds a directory to the builder.
102
- #
103
- # @param path [String] The path of the directory to add.
104
- # @return [OptionsProviderBuilder] `self`.
105
- sig { params(path: String).returns(OptionsProviderBuilder) }
106
- def add_directory(path)
107
- # Implemented in Rust.
108
- raise NotImplementedError
109
- end
110
-
111
- # @return [OptionsProvider] A newly built `OptionsProvider`.
112
- sig { returns(OptionsProvider) }
113
- def build
114
- # Implemented in Rust.
115
- raise NotImplementedError
116
- end
117
- end
118
85
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: optify-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.5
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - Justin D. Harris
@@ -89,7 +89,9 @@ extensions: []
89
89
  extra_rdoc_files: []
90
90
  files:
91
91
  - lib/optify.rb
92
- - lib/optify_ruby/3.0/optify_ruby.bundle
92
+ - lib/optify_ruby/3.1/optify_ruby.bundle
93
+ - lib/optify_ruby/3.2/optify_ruby.bundle
94
+ - lib/optify_ruby/3.4/optify_ruby.bundle
93
95
  - lib/optify_ruby/base_config.rb
94
96
  - lib/optify_ruby/implementation.rb
95
97
  - rbi/optify.rbi
@@ -107,10 +109,10 @@ required_ruby_version: !ruby/object:Gem::Requirement
107
109
  requirements:
108
110
  - - ">="
109
111
  - !ruby/object:Gem::Version
110
- version: '3.0'
112
+ version: '3.1'
111
113
  - - "<"
112
114
  - !ruby/object:Gem::Version
113
- version: 3.1.dev
115
+ version: 3.5.dev
114
116
  required_rubygems_version: !ruby/object:Gem::Requirement
115
117
  requirements:
116
118
  - - ">="