Skip to content

Commit 83a7a2f

Browse files
committed
RUBY-16275: extra quotes should be removed from string variable's representation
1 parent 9169035 commit 83a7a2f

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

ChangeLog.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## [0.4.27](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.26...v0.4.27)
2+
3+
* Redundant quotes dropped from string variable representation
4+
[RUBY-16275](https://youtrack.jetbrains.com/issue/RUBY-16275)
5+
16
## [0.4.26](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.25...v0.4.26)
27

38
* Compact value for inline debugger should be really compact

lib/ruby-debug-ide/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Debugger
2-
IDE_VERSION='0.4.26'
2+
IDE_VERSION='0.4.27'
33
end

lib/ruby-debug-ide/xml_printer.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def print_variable(name, value, kind)
154154
end
155155
elsif value.is_a?(String)
156156
has_children = value.respond_to?('bytes') || value.respond_to?('encoding')
157-
value_str = value.inspect
157+
value_str = value.inspect[1..-2]
158158
else
159159
has_children = !value.instance_variables.empty? || !value.class.class_variables.empty?
160160
value_str = value.to_s || 'nil' rescue "<#to_s method raised exception: #{$!}>"

0 commit comments

Comments
 (0)