summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyrylo Silin <kyrylosilin@gmail.com>2013-05-03 23:16:41 +0300
committerKyrylo Silin <kyrylosilin@gmail.com>2013-05-03 23:16:41 +0300
commitc2be3f091ff5cfae6a4395e4782e18037c8a3081 (patch)
tree88b9235f94578fbcab30232a93b355cf2dc4a897
parent137db2c3220bdf3f3705a5b9f05650c1f016c9db (diff)
downloadpry-c2be3f091ff5cfae6a4395e4782e18037c8a3081.tar.gz
core_extensions: no need in patching JRuby anymore
They already fixed it: http://jira.codehaus.org/browse/JRUBY-6550
-rw-r--r--lib/pry/core_extensions.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/pry/core_extensions.rb b/lib/pry/core_extensions.rb
index db4b0776..c8836e1b 100644
--- a/lib/pry/core_extensions.rb
+++ b/lib/pry/core_extensions.rb
@@ -98,24 +98,3 @@ class Object
__pry__
end
end
-
-# There's a splat bug on jruby in 1.9 emulation mode, which breaks the
-# pp library.
-#
-# * http://jira.codehaus.org/browse/JRUBY-6687
-# * https://github.com/pry/pry/issues/568
-#
-# Until that gets fixed upstream, let's monkey-patch here:
-if [[1, 2]].pretty_inspect == "[1]\n"
- class Array
- def pretty_print(q)
- q.group(1, '[', ']') {
- i = 0
- q.seplist(self) { |*|
- q.pp self[i]
- i += 1
- }
- }
- end
- end
-end