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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 53f901dd8c4cec91cd27dc80125aad8f94a3d1815add4be7b2b2956d18044236
4
- data.tar.gz: 00cc380a9369eedd34593028b13f50e62925763ab529e68964c05b94efd105af
3
+ metadata.gz: f4edf67de01870b292830f9e052b714a38d3ceab11bffdede895f39b346b5224
4
+ data.tar.gz: 8aa53fcef5895386cb21a3c0163282745dd73c6684ce93d0075f320623188a1d
5
5
  SHA512:
6
- metadata.gz: 83c3655efb1c130c07712db00b30ffd2796e857f129fcf4e8d9799e940e288daea6bbb7c973ba52754b56903421276109f1ae01b2918486caa9c478aa167598a
7
- data.tar.gz: c5614cb0d3cc5c8a3b1af7009bddbfbd3d05430387fc467df21caac7886a07a763bab514b6c36aeee23c582d20967c233d236f5872fade3bf844454583a79dfa
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.
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: 1.4.3
4
+ version: 1.5.0
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - Justin D. Harris