Skip to content

Commit 41d0398

Browse files
committed
RUBY-15804: not all keys are comparable so let's convert them to strings
1 parent ff72bf0 commit 41d0398

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [0.4.23.beta9](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.23.beta9...v0.4.23.beta10)
2+
3+
* fixed problem with printing hashes [RUBY-15804](https://youtrack.jetbrains.com/issue/RUBY-15804)
4+
15
## [0.4.23.beta9](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.23.beta8...v0.4.23.beta9)
26

37
* problem with calculating local varibales for 1.8 fixed

lib/ruby-debug-ide/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Debugger
2-
IDE_VERSION='0.4.23.beta9'
2+
IDE_VERSION='0.4.23.beta10'
33
end

lib/ruby-debug-ide/xml_printer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def build_compact_name(value_str, value)
189189
end
190190
end
191191
if value.is_a?(Hash)
192-
slice = value.sort_by { |k,v| k }[0..5]
192+
slice = value.sort_by { |k,v| k.to_s }[0..5]
193193
compact = slice.map {|kv| "#{kv[0]}: #{kv[1]}"}.join(", ")
194194
compact = "{" + compact + (slice.size != value.size ? ", ..." : "") + "}"
195195
end

0 commit comments

Comments
 (0)