Skip to content

Commit

Permalink
Merge pull request #555 from NREL/update_gem_env
Browse files Browse the repository at this point in the history
update setting gem_home and gem_path
  • Loading branch information
tijcolem authored Apr 13, 2020
2 parents b7df23d + 4b92099 commit 75df3f3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/openstudio_meta
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ $logger.level = ::Logger::WARN
ENV['GEM_HOME'] = File.absolute_path(File.join(__FILE__, './../../gems/'))
ENV['GEM_PATH'] = File.absolute_path(File.join(__FILE__, './../../gems/')).to_s + File::PATH_SEPARATOR + File.absolute_path(File.join(__FILE__, './../../gems/bundler/gems')).to_s

# Set GEM_HOME and GEM_PATH vs using ENV for ruby 2.5.x
Gem.paths = {
'GEM_HOME' => File.absolute_path(File.join(__FILE__, './../../gems/')),
'GEM_PATH' => File.absolute_path(File.join(__FILE__, './../../gems/')).to_s + File::PATH_SEPARATOR + File.absolute_path(File.join(__FILE__, './../../gems/bundler/gems')).to_s
}

$ruby_path = "#{RbConfig::CONFIG['prefix']}/bin/ruby#{RbConfig::CONFIG['EXECUTABLE_EXTS'].split[0]}"

# This is the save puts to use to catch EPIPE. Uses `puts` on the given IO object and safely ignores any Errno::EPIPE
Expand Down

0 comments on commit 75df3f3

Please sign in to comment.