optify-config 1.4.3-arm64-darwin → 1.5.0-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 +13 -0
- data/rbi/optify.rbi +6 -0
- data/sig/optify.rbs +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4edf67de01870b292830f9e052b714a38d3ceab11bffdede895f39b346b5224
|
4
|
+
data.tar.gz: 8aa53fcef5895386cb21a3c0163282745dd73c6684ce93d0075f320623188a1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06cebdf92bd43b774ee209758a36a02e25c84e5a9a95fa00405d7750dabd4a59f681fc3db36d4b635ce166b156ccc0e4d2e52af6e91d5246ff098c31b68e2965
|
7
|
+
data.tar.gz: 0fb5af3f4bd45fad45468c4e813e274e5613c065d5fdb4b4f48790b759490e3d7b2f055997d64a37927a1063238eb7ac793690e5f58224afa738b3a8bd96758b
|
@@ -95,5 +95,18 @@ module Optify
|
|
95
95
|
end
|
96
96
|
|
97
97
|
private_class_method :_convert_hash, :_convert_value
|
98
|
+
|
99
|
+
# Compare this object with another object for equality.
|
100
|
+
# @param other The object to compare.
|
101
|
+
# @return [Boolean] true if the objects are equal; otherwise, false.
|
102
|
+
#: (untyped other) -> bool
|
103
|
+
def ==(other)
|
104
|
+
return true if other.equal?(self)
|
105
|
+
return false unless other.is_a?(self.class)
|
106
|
+
|
107
|
+
instance_variables.all? do |var|
|
108
|
+
instance_variable_get(var) == other.instance_variable_get(var)
|
109
|
+
end
|
110
|
+
end
|
98
111
|
end
|
99
112
|
end
|
data/rbi/optify.rbi
CHANGED
@@ -19,6 +19,12 @@ module Optify
|
|
19
19
|
# @return The new instance.
|
20
20
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
21
21
|
def self.from_hash(hash); end
|
22
|
+
|
23
|
+
# Compare this object with another object for equality.
|
24
|
+
# @param other The object to compare.
|
25
|
+
# @return [Boolean] true if the objects are equal; otherwise, false.
|
26
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
27
|
+
def ==(other); end
|
22
28
|
end
|
23
29
|
|
24
30
|
# Options for caching.
|
data/sig/optify.rbs
CHANGED
@@ -15,6 +15,11 @@ class Optify::BaseConfig
|
|
15
15
|
# @param hash The hash to create the instance from.
|
16
16
|
# @return The new instance.
|
17
17
|
def self.from_hash: (::Hash[untyped, untyped] hash) -> instance
|
18
|
+
|
19
|
+
# Compare this object with another object for equality.
|
20
|
+
# @param other The object to compare.
|
21
|
+
# @return [Boolean] true if the objects are equal; otherwise, false.
|
22
|
+
def ==: (untyped other) -> bool
|
18
23
|
end
|
19
24
|
|
20
25
|
# Options for caching.
|