From ec3f843b23eb7e2111f21e404bfa66a7affddebd Mon Sep 17 00:00:00 2001 From: Norbert Kalmar Date: Tue, 25 Aug 2020 12:25:12 +0200 Subject: [PATCH] HBASE-20598 Upgrade to JRuby 9.2 - upgrade our default jruby to 9.2.13.0 - this major JRuby version update changes the Ruby compatibility from Ruby 2.3 to Ruby 2.5 - use a custom IRB prompt to convey similar information to before - update the joni and jcoding dependencies to match this version of jruby-complete closes #2308 Signed-off-by: stack Signed-off-by: Josh Elser Signed-off-by: Sean Busbey (cherry picked from commit f0c430aed226b7404bcc4d23b0ec164e5071276b) --- hbase-shell/src/main/ruby/jar-bootstrap.rb | 8 ++++++++ pom.xml | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/hbase-shell/src/main/ruby/jar-bootstrap.rb b/hbase-shell/src/main/ruby/jar-bootstrap.rb index de602bf551d..ef3727d3ba3 100644 --- a/hbase-shell/src/main/ruby/jar-bootstrap.rb +++ b/hbase-shell/src/main/ruby/jar-bootstrap.rb @@ -207,8 +207,16 @@ if interactive $0 = File.basename(ap_path, '.rb') if ap_path IRB.setup(ap_path) + IRB.conf[:PROMPT][:CUSTOM] = { + :PROMPT_I => "%N:%03n:%i> ", + :PROMPT_S => "%N:%03n:%i%l ", + :PROMPT_C => "%N:%03n:%i* ", + :RETURN => "=> %s\n" + } + @CONF[:IRB_NAME] = 'hbase' @CONF[:AP_NAME] = 'hbase' + @CONF[:PROMPT_MODE] = :CUSTOM @CONF[:BACK_TRACE_LIMIT] = 0 unless $fullBackTrace hirb = if @CONF[:SCRIPT] diff --git a/pom.xml b/pom.xml index 67f7397717f..7896b3d6661 100755 --- a/pom.xml +++ b/pom.xml @@ -1436,7 +1436,7 @@ 2.1.1 2.3.2 3.0.1-b08 - 9.1.17.0 + 9.2.13.0 4.13 1.3 4.2.0-incubating @@ -1454,8 +1454,8 @@ 2.4.1 1.3.8 - 2.1.11 - 1.0.18 + 2.1.31 + 1.0.55 2.12.2 1.60 1.0.1