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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 69d88c2713d6bafcce7338a08514c5afa6f9b481
4
- data.tar.gz: 2a9de2cd97a0ee5dbe2b5417341750c7957cd034
3
+ metadata.gz: 91dc49365d99618c5181167a31e64fe087eb2719
4
+ data.tar.gz: 7ef3eff556cc945b08eded094b8c93af3f7668ac
5
5
  SHA512:
6
- metadata.gz: cd259eca458134678e0465fbe510dc3532bf5bd17b41c26746d8999f9c854376cefcdee69587a590666b292816e0b700f0a49d04642d7e6e8e9d159cb9da0aaa
7
- data.tar.gz: 59a223a1a1c83ab93ae0cb9aca128be77ffe0337366116e1f8b88ff88fbfd7c0b7f390bcdbc37392a91da6a9e77e7766df3828003d2c6064d8d29399c903508a
6
+ metadata.gz: ea2185fce31081e6ec96fe3c34048286432daac6fe1e7ffcd74316e984a624a2c752d838b20645c4eef399bc854313b1b2386b175029d453a8fbde7e2b973649
7
+ data.tar.gz: 75a4a023816844fe98077c52e8110152aa90bbb477bf7901384479a3a8a89651b9ac2177d92c8506fb43f3c5f76b53d5fd4daab571c983b3742c12f89642bbcb
@@ -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,3 @@
1
1
  module Debugger
2
- IDE_VERSION='0.4.32'
2
+ IDE_VERSION='0.4.33'
3
3
  end
@@ -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.to_s))
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.32
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-05-22 00:00:00.000000000 Z
11
+ date: 2015-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake