optify-config 0.4.5-arm64-darwin → 0.4.6-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/base_config.rb +5 -4
- data/lib/optify_ruby/implementation.rb +0 -1
- 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: 2f748583dba366de60ff1897cac13121677fed448d0494724617ad0b37db5c9c
|
4
|
+
data.tar.gz: 81c69121dff158c973d27ce044751753adf852548df2e9eeaeba8369a9a2542b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47d2b730f74a6dbe08ef01100ed8930a1812ffc7fbb196a8b862c91b29c5025257d53236ffaeed6f6834fc3ab1121d49ab121c903f037f9e71283a8dc48404c1
|
7
|
+
data.tar.gz: 577c895c8d455a6be3a001dae704c32001b3f0cf8b481c7ab569e1298c83c0ac215d04f64e2be0057e1676791a64968507a34ec6380e967bbb8c85f4475a5b85
|
@@ -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
|
-
|
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
|
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.
|
4
|
+
version: 0.4.6
|
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-02-
|
11
|
+
date: 2025-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sorbet-runtime
|