deepsort 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/deepsort.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjY5YWRlMjU4MmJiZTYyN2E2NDUwNDdmYmJmMTVlY2Q5N2FkMDE1Mg==
4
+ NjdmMTc1ZGIxYjUxMDI4YzhkYjlhNzAzY2IzNjIyN2JlYzUwNGRhOA==
5
5
  data.tar.gz: !binary |-
6
- ZmFjMDc5YjdmNDA2NDE1YmEzYjZkM2EzODg0OWI5ODEyODg4MmM0NA==
6
+ NzhmNDU0YzFjY2Q1MDE0YjIyOGE2NDQ0NDQ1MzdiZTA1MTQwNjg4Nw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MTJjMTUzMTExNDEwZDUxYTc0Njc5MjQyZTkzMzJlMzBlNjJhMDA5ZWQ0M2Nk
10
- OWI1YTE2MmI2MTU0YWQ0NjE5NDM0ZjdhM2JlYTdiYjdiM2E1NzljZTkxZGFk
11
- OWQ1M2JhY2FkNmJhNTlkMDYwY2EwMjU2NDU3YjQxZTU2YzY2NzY=
9
+ YWM4Y2RhYzBiMzQxOTM0MWUxM2Q1Y2IwZTM0NmU2MzVmMDRkOWUxMmNkODg5
10
+ YzE2OTA4ZDliNDJjNjEzM2UwZmFlNTk1YTIxODE3NGIyYjg0MDY2NDllZTAz
11
+ MWFiN2Q5ZGViNTI2MWU0ZThlMTczMDRlYWQ1OWM1NTc0N2ExMDI=
12
12
  data.tar.gz: !binary |-
13
- N2Q5YzEwMzA5NzNjYjY5YTAwOWE3YTg0NmM3YzU5OTYzMjg2NWYwZjUzYmZl
14
- ZjJjMTAzZTY0ZTRlNDI0OWRjNjY3YzE5OTZkYjg4Y2VjNzNjMDU5ZjA0ZmIz
15
- NThmMzkzZDQwNmVkZGEwYmY3OGYwMjcxMTgwOGQwYmFhODI1NjA=
13
+ ZDk4NzAyOTE1YzZjMjkxNzFjZjQ2ZDUyYTY3MGJjMzE0OGM4Mjc5MjQ1MDJl
14
+ YmY4MTM3ZjMzMTJmMjQyMGI3NWFlYjdmMjI1ZDFiZDhlZDE3ODY4NWNjY2M1
15
+ Yzg3ZTU1ZDE3OTdlZmJlOGYwMDk4ZTZiYWJmMTMxZGNlNzc1MTk=
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deepsort
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Crossen