optify-config 0.4.5-aarch64-linux → 0.4.6-aarch64-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c6912ab794c08da0208bc8d5cb201009d160f50724eb8e3a58b9ab427d595a01
4
- data.tar.gz: 9cbc78a5424b2b8bba216fb2eac1853e351852c81bee1f167061f8ba280c13e5
3
+ metadata.gz: 44f5a5d6197f5d36b99efdf187d48ea186bc47b45a68c4f8c07781f1fc1b1919
4
+ data.tar.gz: 785fd1a53790d5147bf1ca0139fb10fc162267cb1c391230c4019079c629d5c8
5
5
  SHA512:
6
- metadata.gz: b380050ece2327316f387e1b1e0ad069fd9540bc0296b13b2caf3705bf8588b194382c87f6c48675bebb2a0478676df33936a5950fa9eba69797c1c5b92a29db
7
- data.tar.gz: a3bad1ed9e6e779a7dcc41e9c77d434e072afb3026cb68a23b0a606fe39859a0586da05de67eaa814f99a5fd6f7856ca4e58dcedd7700881acecf3be3be69f18
6
+ metadata.gz: c6b294ef55d0d8b7947f67cd8c70c6a730d3eaccf687a7f9e37e541d288aa4ec4f0074e0c9def1ebc9e63f06d90860fb1e353c57cad8d38eadb3e95cbbc0d0c3
7
+ data.tar.gz: 45ea42b24324f9c2113c528ef8c38b7b509d49bac30cfe1117d2a73b3a2e9f5f7f6dfb89d4062a9679fef238e58d604ff5e9a18e017e942168055870957a51d6
@@ -16,7 +16,7 @@ module Optify
16
16
  extend T::Helpers
17
17
  abstract!
18
18
 
19
- # Create a new instance of the class from a hash.
19
+ # Create a new immutable instance of the class from a hash.
20
20
  #
21
21
  # This is a class method that so that it can set members with private setters.
22
22
  # @param hash [Hash] The hash to create the instance from.
@@ -30,7 +30,8 @@ module Optify
30
30
  value = _convert_value(value, sig_return_type)
31
31
  result.instance_variable_set("@#{key}", value)
32
32
  end
33
- result
33
+
34
+ T.unsafe(result).freeze if T.unsafe(result).respond_to?(:freeze)
34
35
  end
35
36
 
36
37
  sig { params(value: T.untyped, type: T.untyped).returns(T.untyped) }
@@ -44,11 +45,11 @@ module Optify
44
45
  # Handle array of 1 type.
45
46
  type.type
46
47
  end
47
- return value.map { |v| _convert_value(v, type) }
48
+ return value.map { |v| _convert_value(v, type) }.freeze
48
49
  when Hash
49
50
  # Handle nilable hash.
50
51
  type = type.unwrap_nilable if type.respond_to?(:unwrap_nilable)
51
- return _convert_hash(value, type)
52
+ return _convert_hash(value, type).freeze
52
53
  end
53
54
 
54
55
  value
@@ -77,7 +77,6 @@ module Optify
77
77
  return result unless result.equal?(NOT_FOUND_IN_CACHE_SENTINEL)
78
78
 
79
79
  result = get_options(key, feature_names, config_class)
80
- T.unsafe(result).freeze if T.unsafe(result).respond_to?(:freeze)
81
80
 
82
81
  @cache[cache_key] = result
83
82
  end
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.4.5
4
+ version: 0.4.6
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - Justin D. Harris
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-02-10 00:00:00.000000000 Z
11
+ date: 2025-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sorbet-runtime