Created
March 2, 2013 04:44
-
-
Save trobrock/5069734 to your computer and use it in GitHub Desktop.
Gem path problems with bundler clean env, notice the executable dir in `gem env` and that it does not point to ree
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run from rbenv 1.9.3-p392 | |
require 'open3' | |
Bundler.with_clean_env do | |
stdin, stdout, stderr, wait_thr = Open3.popen3 <<-SH | |
eval "$(rbenv init -)" ; | |
rbenv shell ree-1.8.7-2012.02 ; | |
gem env | |
SH | |
while !stdout.eof? && line = stdout.readline | |
puts line | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-> % bundle exec ruby debug.rb | |
RubyGems Environment: | |
- RUBYGEMS VERSION: 1.8.15 | |
- RUBY VERSION: 1.8.7 (2012-02-08 patchlevel 358) [i686-darwin12.2.0] | |
- INSTALLATION DIRECTORY: /Users/trobrock/Sites/tensai/vendor/ruby/1.9.1 | |
- RUBY EXECUTABLE: /usr/local/opt/rbenv/versions/ree-1.8.7-2012.02/bin/ruby | |
- EXECUTABLE DIRECTORY: /Users/trobrock/Sites/tensai/vendor/ruby/1.9.1/bin | |
- RUBYGEMS PLATFORMS: | |
- ruby | |
- x86-darwin-12 | |
- GEM PATHS: | |
- /Users/trobrock/Sites/tensai/vendor/ruby/1.9.1 | |
- /Users/trobrock/.gem/ruby/1.8 | |
- /usr/local/opt/rbenv/versions/ree-1.8.7-2012.02/lib/ruby/gems/1.8 | |
- GEM CONFIGURATION: | |
- :update_sources => true | |
- :verbose => true | |
- :benchmark => false | |
- :backtrace => false | |
- :bulk_threshold => 1000 | |
- REMOTE SOURCES: | |
- http://rubygems.org/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@danryan and @Peeja this is the current issue with running Tensai locally for me.