Skip to content

Commit

Permalink
RUBY-15804: not all keys are comparable so let's convert them to strings
Browse files Browse the repository at this point in the history
  • Loading branch information
os97673 committed Oct 3, 2014
1 parent ff72bf0 commit 41d0398
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [0.4.23.beta9](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.23.beta9...v0.4.23.beta10)

* fixed problem with printing hashes [RUBY-15804](https://youtrack.jetbrains.com/issue/RUBY-15804)

## [0.4.23.beta9](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.23.beta8...v0.4.23.beta9)

* problem with calculating local varibales for 1.8 fixed
Expand Down
2 changes: 1 addition & 1 deletion lib/ruby-debug-ide/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Debugger
IDE_VERSION='0.4.23.beta9'
IDE_VERSION='0.4.23.beta10'
end
2 changes: 1 addition & 1 deletion lib/ruby-debug-ide/xml_printer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def build_compact_name(value_str, value)
end
end
if value.is_a?(Hash)
slice = value.sort_by { |k,v| k }[0..5]
slice = value.sort_by { |k,v| k.to_s }[0..5]
compact = slice.map {|kv| "#{kv[0]}: #{kv[1]}"}.join(", ")
compact = "{" + compact + (slice.size != value.size ? ", ..." : "") + "}"
end
Expand Down

0 comments on commit 41d0398

Please sign in to comment.