ruby-debug-ide 0.4.32 → 0.4.33
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +5 -0
- data/lib/ruby-debug-ide/version.rb +1 -1
- data/lib/ruby-debug-ide/xml_printer.rb +11 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91dc49365d99618c5181167a31e64fe087eb2719
|
4
|
+
data.tar.gz: 7ef3eff556cc945b08eded094b8c93af3f7668ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea2185fce31081e6ec96fe3c34048286432daac6fe1e7ffcd74316e984a624a2c752d838b20645c4eef399bc854313b1b2386b175029d453a8fbde7e2b973649
|
7
|
+
data.tar.gz: 75a4a023816844fe98077c52e8110152aa90bbb477bf7901384479a3a8a89651b9ac2177d92c8506fb43f3c5f76b53d5fd4daab571c983b3742c12f89642bbcb
|
data/ChangeLog.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
## [0.4.33](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.32...v0.4.33)
|
2
|
+
|
3
|
+
* Fixed problem with inspecting Jbuilder
|
4
|
+
[RUBY-16838](https://youtrack.jetbrains.com/issue/RUBY-16838)
|
5
|
+
|
1
6
|
## [0.4.32](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.31...v0.4.32)
|
2
7
|
|
3
8
|
* Fixed problem with preloading psych
|
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'stringio'
|
1
2
|
require 'cgi'
|
2
3
|
require 'monitor'
|
3
4
|
|
@@ -180,7 +181,7 @@ module Debugger
|
|
180
181
|
rescue StandardError => e
|
181
182
|
print_debug "Unexpected exception \"%s\"\n%s", e.to_s, e.backtrace.join("\n")
|
182
183
|
print("<variable name=\"%s\" kind=\"%s\" value=\"%s\"/>",
|
183
|
-
CGI.escapeHTML(name), kind, CGI.escapeHTML(value
|
184
|
+
CGI.escapeHTML(name), kind, CGI.escapeHTML(safe_to_string(value)))
|
184
185
|
end
|
185
186
|
|
186
187
|
def print_breakpoints(breakpoints)
|
@@ -379,6 +380,15 @@ module Debugger
|
|
379
380
|
compact_value_str.nil? ? '' : "compactValue=\"#{CGI.escapeHTML(compact_value_str)}\""
|
380
381
|
end
|
381
382
|
|
383
|
+
def safe_to_string(value)
|
384
|
+
str = value.to_s
|
385
|
+
return str unless str.nil?
|
386
|
+
|
387
|
+
string_io = StringIO.new
|
388
|
+
string_io.write(value)
|
389
|
+
string_io.string
|
390
|
+
end
|
391
|
+
|
382
392
|
def build_value_attr(escaped_value_str)
|
383
393
|
Debugger.rm_protocol_extensions ? '' : "value=\"#{escaped_value_str}\""
|
384
394
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-debug-ide
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.33
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Markus Barchfeld, Martin Krauskopf, Mark Moseley, JetBrains RubyMine Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|