From 1cdab0c767197a20e7da3ad666bbead2b2f7ff51 Mon Sep 17 00:00:00 2001 From: Slawomir Chodnicki Date: Thu, 20 Dec 2018 13:33:47 +0100 Subject: [PATCH] fix gem home --- .../kettle/ruby/step/execmodels/SimpleExecutionModel.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/twineworks/kettle/ruby/step/execmodels/SimpleExecutionModel.java b/src/main/java/com/twineworks/kettle/ruby/step/execmodels/SimpleExecutionModel.java index 1e614dc..ef7dbb0 100644 --- a/src/main/java/com/twineworks/kettle/ruby/step/execmodels/SimpleExecutionModel.java +++ b/src/main/java/com/twineworks/kettle/ruby/step/execmodels/SimpleExecutionModel.java @@ -131,8 +131,10 @@ private void setGemHome() { File gemHomePath = new File(gemHomeString); gemHomePath = gemHomePath.getAbsoluteFile(); - RubyHash configHash = (RubyHash) data.container.parse("require 'rbconfig'; RbConfig::CONFIG").run(); - configHash.put("default_gem_home", gemHomePath.getAbsolutePath()); + List extraGemPaths = data.container.getProvider().getRuntime().getInstanceConfig().getExtraGemPaths(); + extraGemPaths.add(gemHomePath.getAbsolutePath()); +// RubyHash configHash = (RubyHash) data.container.parse("require 'rbconfig'; RbConfig::CONFIG").run(); +// configHash.put("default_gem_home", gemHomePath.getAbsolutePath().to); } }