Setting up env, OSX rbenv and bundle battle
The problem seems to be that you're using a system ruby installed bundler, and not one installed with your rbenv ruby.
Run ruby --version
to make sure your rbenv ruby is active, then run gem install bundler
followed by rbenv rehash
and then try reinstalling your gems and see if that works.
bundle exec spring not working with rbenv?
After a bit of exploration there seem there could be a couple of things in play here:
- system installed gems via bundler installed gems and the special behavior rails has
- generated binstubs at rvm and bundle level
- weird behavior in Spring 1.3.5
The root cause of the issue seems to be https://github.com/rails/spring/issues/295 which was fixed in 1.3.6. See: https://github.com/rails/spring/blob/master/CHANGELOG.md#136
Sadly, it turns out you cannot workaround this with the constraints the author specified in the question.
ruby: aliased to bundled_ruby
This is part of rbenv
"magic" to handle several ruby versions with several gem versions. Have a look at ~/.rbenv/shims/ruby
, IIRC the script is defined there.
If you want to disable this, just unalias ruby
: this deletes the generated alias.
Related Topics
Heroku Rejecting Push in Mature Application (Pre-Receive Hook Declined)
Rails 3: User Created Custom Forms
Ruby on Rails Model Inside Namespace Can't Be Found in Controller
Is Returning a Value from 'Next' a Bad Idea
A Selenium Webdriver Exception
Need Advice: Is This a Good Use Case for a 'Nosql' Database? If So, Which One
Ruby Mechanize Post with Header
Should I Deploy My Ruby on Rails Application on Heroku
Controlling Tor Client with Ruby
Datetime with Mongodb/Mongoid and Rails 3 Not Populating
Why Do I Get "Including Capybara::Dsl in the Global Scope Is Not Recommended!"
Is There a Function Like String#Scan, But Returning Array of Matchdatas
Multiple Level Nested Layout in Rails 3
How to Make a Ruby Script Run Once a Second
Has Anyone Figured Out a Way to Run the Same Cucumber Scenario on Multiple Browsers/Web Drivers