cow_proxy 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cow_proxy/hash.rb +8 -0
- data/lib/cow_proxy/version.rb +1 -1
- 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: b686ff51afc26e3d92d7a7ee8b3f34fa2bbf44c1c0a6ef14a3a0769a9ed5d1e9
|
4
|
+
data.tar.gz: f2ef93f63e6897406af91d29a823dc6d03dabb327ce6767f5f7af222f6dc848f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12936237e57d3b7347d25d0b289a705a32e254cb8e97ca1613c22b460bf3c4802b3961a5b08714160e5109dd277b82c849d86a901b04593af0b3277abe173a79
|
7
|
+
data.tar.gz: d979f5407c28acb23317777a4cf27a7478c4c7462129c4d463cdf515987cc5181c1112018f8dcf336fff589502bc2d6dcebd7f2e006bce8a1b813d5ce6bcf744
|
data/lib/cow_proxy/hash.rb
CHANGED
@@ -74,5 +74,13 @@ module CowProxy
|
|
74
74
|
def to_hash
|
75
75
|
__getobj__
|
76
76
|
end
|
77
|
+
|
78
|
+
# Compute a hash-code for this hash. Two hashes with the same content
|
79
|
+
# will have the same hash code (and will compare using eql?).
|
80
|
+
#
|
81
|
+
# @return [Intenger] calculated hash code
|
82
|
+
def hash
|
83
|
+
__getobj__.hash
|
84
|
+
end
|
77
85
|
end
|
78
86
|
end
|
data/lib/cow_proxy/version.rb
CHANGED