Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit fc413eb

Browse files
committed
Sync RUBY_ENVIRONMENT_VARIABLES with RubyEnviroment type
1 parent 0d863dd commit fc413eb

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

client/src/util/env.ts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,6 @@ if (!fs.existsSync(SHIM_DIR)) {
88
fs.mkdirSync(SHIM_DIR);
99
}
1010

11-
const RUBY_ENVIRONMENT_VARIABLES = [
12-
'PATH',
13-
'RUBY_VERSION',
14-
'RUBY_ROOT',
15-
'GEM_HOME',
16-
'GEM_PATH',
17-
'GEM_ROOT',
18-
'HOME',
19-
];
20-
2111
function mkShim(shell: string, shimPath: string): boolean {
2212
const template = `#!${shell} -i\nexport`;
2313
let result = false;
@@ -43,13 +33,25 @@ function getShim(): string {
4333
return shimPath;
4434
}
4535

36+
const RUBY_ENVIRONMENT_VARIABLES = [
37+
'PATH',
38+
'RUBY_VERSION',
39+
'RUBY_ROOT',
40+
'GEM_HOME',
41+
'GEM_PATH',
42+
'GEM_ROOT',
43+
'HOME',
44+
'RUBOCOP_OPTS',
45+
];
46+
4647
export type RubyEnvironment = {
4748
PATH: string;
4849
RUBY_VERSION: string;
4950
RUBY_ROOT: string;
5051
GEM_HOME: string;
5152
GEM_PATH: string;
5253
GEM_ROOT: string;
54+
HOME: string;
5355
RUBOCOP_OPTS?: string;
5456
};
5557

0 commit comments

Comments
 (0)