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

Conversation

rberger
Copy link
Contributor

@rberger rberger commented Sep 16, 2014

Changed ChefDK::Helpers.omnibus_env to set GEM_HOME to Gem.user_dir instead of GEM_HOME. Also changed the tests to expect that as well.

It works for me, but really not clear where Gem.user_dir comes from and if this may cause other people other problems.

Before this change GEM_HOME would be set to /opt/chefdk/embedded/lib/ruby/gems/2.1.0 I wasn't really clear how Gem.paths.home ever got set to that.

After this change GEM_HOME gets set to /Users/rberger/.chefdk/gem/ruby/2.1.0 (Obviously it will be someone elses home on another system)

…nstead of GEM_HOME. Also changed the tests to expect that as well. It works for me, but really not clear where Gem.user_dir comes from and if this may cause other people other problems.
@chef-supermarket
Copy link

Hi. I am an automated pull request bot named Curry. There are commits in this pull request whose authors are not yet authorized to contribute to Chef Software, Inc. projects or are using a non-GitHub verified email address. To become authorized to contribute, you will need to sign the Contributor License Agreement (CLA) as an individual or on behalf of your company. You can read more on Chef's blog.

GitHub Users Who Are Not Authorized To Contribute

The following GitHub users do not appear to have signed a CLA:

Please sign the CLA here.

@chef-supermarket
Copy link

Hi. Your friendly Curry bot here. Just letting you know that all commit authors have become authorized to contribute. I have added the "Signed CLA" label to this issue so it can easily be found in the future.

@lamont-granquist
Copy link
Contributor

Gem.user_dir is wired up here:

https://github.com/opscode/omnibus-chef/blob/master/files/rubygems-customization/default/operating_system.rb

This patch looks correct to me, not sure if it'll troll people trying to use chef-dk outside of omnibus who will not have that patch.

@danielsdeleo
Copy link
Contributor

👍 @sersut might want to get this in for 0.3.0 ?

sersut pushed a commit that referenced this pull request Sep 30, 2014
Set GEM_HOME to Gem.user_dir instead of Gem.paths.home
@sersut sersut merged commit 5cde1b3 into chef-boneyard:master Sep 30, 2014
ksubrama pushed a commit that referenced this pull request Jan 11, 2016
Bump nokogiri to 1.6.2 for security fixes.
ksubrama pushed a commit that referenced this pull request Jan 11, 2016
This reverts commit 176fcf0, reversing
changes made to a8004e2.
ksubrama pushed a commit that referenced this pull request Jan 11, 2016
Revert "Merge pull request #160 from opscode/sersut/update-nokogiri"
@chef-boneyard chef-boneyard locked and limited conversation to collaborators Feb 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

6 participants