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

Commit

Permalink
Merge pull request #160 from rberger/rjb-gem_home
Browse files Browse the repository at this point in the history
Set GEM_HOME to Gem.user_dir instead of Gem.paths.home
  • Loading branch information
Serdar Sutay committed Sep 30, 2014
2 parents e5f6ebe + f66ae32 commit 5cde1b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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

0 comments on commit 5cde1b3

Please sign in to comment.