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

Commit

Permalink
Avoid using --disable-gems
Browse files Browse the repository at this point in the history
  • Loading branch information
vinistock committed Jul 19, 2023
1 parent a175492 commit 2242930
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ruby.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,7 @@ export class Ruby {

private async activate(ruby: string) {
let command = this.shell ? `${this.shell} -ic ` : "";
// eslint-disable-next-line max-len
command += `'${ruby} --disable-gems -rjson -e "printf(%{RUBY_ENV_ACTIVATE%sRUBY_ENV_ACTIVATE}, JSON.dump(ENV.to_h))"'`;
command += `'${ruby} -rjson -e "printf(%{RUBY_ENV_ACTIVATE%sRUBY_ENV_ACTIVATE}, JSON.dump(ENV.to_h))"'`;

const result = await asyncExec(command, { cwd: this.workingFolder });

Expand All @@ -153,7 +152,7 @@ export class Ruby {

private async fetchRubyInfo() {
const rubyInfo = await asyncExec(
"ruby --disable-gems -e 'puts \"#{RUBY_VERSION},#{defined?(RubyVM::YJIT)}\"'",
"ruby -e 'puts \"#{RUBY_VERSION},#{defined?(RubyVM::YJIT)}\"'",
{ env: this._env },
);

Expand Down

0 comments on commit 2242930

Please sign in to comment.