Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
fix gem home
Browse files Browse the repository at this point in the history
  • Loading branch information
slawo-ch committed Dec 20, 2018
1 parent f4f2c70 commit 1cdab0c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> 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);
}
}

Expand Down

0 comments on commit 1cdab0c

Please sign in to comment.