From e928a37a014733cbe215ca2c57d8f05c3f41537e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my?= Date: Sat, 25 Mar 2017 17:13:23 +0100 Subject: [PATCH] persist ruby gems by using GEM_HOME and GEM_ROOT --- ruby.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ruby.json b/ruby.json index 89176035b9..1dbaef8250 100644 --- a/ruby.json +++ b/ruby.json @@ -26,7 +26,11 @@ } }, "extract_to": [ "", "devkit" ], - "env_add_path": "bin", + "env_add_path": ["bin", "$data_dir\\gem\\bin"], + "env_set": { + "GEM_HOME": "$data_dir\\gem", + "GEM_PATH": "$data_dir\\gem" + }, "post_install": "pushd $dir\\devkit;echo \"---`n- $dir\" | out-file config.yml -enc default; ruby dk.rb install;popd;", "checkver": { "url": "http://rubyinstaller.org/downloads/",