Skip to content

Commit

Permalink
Replace setting GEM_HOME and GEM_PATH with Gem.paths. (fixes #679)
Browse files Browse the repository at this point in the history
  • Loading branch information
zaygraveyard committed Nov 16, 2017
1 parent 01430b0 commit a0f553b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions src/bin/compass
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
ENV["GEM_HOME"] = File.join File.dirname(__FILE__), "../rubygems"
ENV["GEM_PATH"] = ENV["GEM_HOME"]
PATH_TO_GEMS = File.join File.dirname(__FILE__), "../rubygems"

Gem.paths = {
'GEM_HOME' => PATH_TO_GEMS,
'GEM_PATH' => PATH_TO_GEMS
}

require 'rubygems'

Expand Down
8 changes: 6 additions & 2 deletions src/bin/sass
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
ENV["GEM_HOME"] = File.join File.dirname(__FILE__), "../rubygems"
ENV["GEM_PATH"] = ENV["GEM_HOME"]
PATH_TO_GEMS = File.join File.dirname(__FILE__), "../rubygems"

Gem.paths = {
'GEM_HOME' => PATH_TO_GEMS,
'GEM_PATH' => PATH_TO_GEMS
}

require 'rubygems'

Expand Down

0 comments on commit a0f553b

Please sign in to comment.