Skip to content

Commit

Permalink
RUBY-16275: extra quotes should be removed from string variable's rep…
Browse files Browse the repository at this point in the history
…resentation
  • Loading branch information
os97673 committed Feb 16, 2015
1 parent 9169035 commit 83a7a2f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [0.4.27](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.26...v0.4.27)

* Redundant quotes dropped from string variable representation
[RUBY-16275](https://youtrack.jetbrains.com/issue/RUBY-16275)

## [0.4.26](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.25...v0.4.26)

* Compact value for inline debugger should be really compact
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.26'
IDE_VERSION='0.4.27'
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 @@ -154,7 +154,7 @@ def print_variable(name, value, kind)
end
elsif value.is_a?(String)
has_children = value.respond_to?('bytes') || value.respond_to?('encoding')
value_str = value.inspect
value_str = value.inspect[1..-2]
else
has_children = !value.instance_variables.empty? || !value.class.class_variables.empty?
value_str = value.to_s || 'nil' rescue "<#to_s method raised exception: #{$!}>"
Expand Down

0 comments on commit 83a7a2f

Please sign in to comment.