Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Set GEM_HOME to Gem.user_dir instead of Gem.paths.home #160

Merged
merged 1 commit into from
Sep 30, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/chef-dk/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def omnibus_env
{
'PATH' => "#{omnibus_bin_dir}:#{user_bin_dir}:#{omnibus_embedded_bin_dir}:#{ENV['PATH']}",
'GEM_ROOT' => Gem.default_dir.inspect,
'GEM_HOME' => Gem.paths.home,
'GEM_HOME' => Gem.user_dir,
'GEM_PATH' => Gem.path.join(':'),
}
end
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/command/exec_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def run_command

let(:expected_GEM_ROOT) { Gem.default_dir.inspect }

let(:expected_GEM_HOME) { ENV['GEM_HOME'] }
let(:expected_GEM_HOME) { Gem.user_dir }

let(:expected_GEM_PATH) { Gem.path.join(':') }

Expand Down Expand Up @@ -107,7 +107,7 @@ def run_command

let(:expected_GEM_ROOT) { Gem.default_dir.inspect }

let(:expected_GEM_HOME) { ENV['GEM_HOME'] }
let(:expected_GEM_HOME) { Gem.user_dir }

let(:expected_GEM_PATH) { Gem.path.join(':') }

Expand Down
2 changes: 1 addition & 1 deletion spec/unit/command/shell_init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

let(:expected_gem_root) { Gem.default_dir.to_s }

let(:expected_gem_home) { ENV['GEM_HOME'] }
let(:expected_gem_home) { Gem.user_dir }

let(:expected_gem_path) { Gem.path.join(':') }

Expand Down