deepsort 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/deepsort.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NjdmMTc1ZGIxYjUxMDI4YzhkYjlhNzAzY2IzNjIyN2JlYzUwNGRhOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NzhmNDU0YzFjY2Q1MDE0YjIyOGE2NDQ0NDQ1MzdiZTA1MTQwNjg4Nw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YWM4Y2RhYzBiMzQxOTM0MWUxM2Q1Y2IwZTM0NmU2MzVmMDRkOWUxMmNkODg5
|
10
|
+
YzE2OTA4ZDliNDJjNjEzM2UwZmFlNTk1YTIxODE3NGIyYjg0MDY2NDllZTAz
|
11
|
+
MWFiN2Q5ZGViNTI2MWU0ZThlMTczMDRlYWQ1OWM1NTc0N2ExMDI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDk4NzAyOTE1YzZjMjkxNzFjZjQ2ZDUyYTY3MGJjMzE0OGM4Mjc5MjQ1MDJl
|
14
|
+
YmY4MTM3ZjMzMTJmMjQyMGI3NWFlYjdmMjI1ZDFiZDhlZDE3ODY4NWNjY2M1
|
15
|
+
Yzg3ZTU1ZDE3OTdlZmJlOGYwMDk4ZTZiYWJmMTMxZGNlNzc1MTk=
|
data/lib/deepsort.rb
CHANGED
@@ -89,9 +89,9 @@ module DeepSort
|
|
89
89
|
end.sort_by(&block)])
|
90
90
|
end
|
91
91
|
|
92
|
-
# comparison for hashes is ill-defined. this performs array comparison if the normal comparison fails.
|
92
|
+
# comparison for hashes is ill-defined. this performs array or string comparison if the normal comparison fails.
|
93
93
|
def <=>(other)
|
94
|
-
super(other) || to_a <=> other.to_a
|
94
|
+
super(other) || to_a <=> other.to_a || to_s <=> other.to_s
|
95
95
|
end
|
96
96
|
end
|
97
97
|
end
|