I'm getting this error when trying to run bundler inside a script (see https://travis-ci.org/coletivoEITA/noosfero-ecosol/jobs/72158294):
/home/travis/.rvm/rubies/ruby-2.1.6/lib/ruby/site_ruby/2.1.0/rubygems/dependency.rb:315:in `to_specs': Could not find 'bundler' (>= 0) among 85 total gem(s) (Gem::LoadError)
Checked in 'GEM_PATH=/home/travis/build/coletivoEITA/noosfero-ecosol/vendor/bundle/ruby/2.1.0', execute `gem env` for more information
from /home/travis/.rvm/rubies/ruby-2.1.6/lib/ruby/site_ruby/2.1.0/rubygems/dependency.rb:324:in `to_spec'
from /home/travis/.rvm/rubies/ruby-2.1.6/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_gem.rb:64:in `gem'
from /home/travis/.rvm/gems/ruby-2.1.6/bin/bundle:22:in `<main>'
from /home/travis/.rvm/gems/ruby-2.1.6/bin/ruby_executable_hooks:15:in `eval'
from /home/travis/.rvm/gems/ruby-2.1.6/bin/ruby_executable_hooks:15:in `<main>'
After quite a lot of googling, I got the following workaround from http://stackoverflow.com/questions/26481650/travis-could-not-find-bundler-1-7-4:
install:
- gem uninstall bundler
- gem install bundler
But I have no idea of why it is necessary :(
I'm getting this error when trying to run bundler inside a script (see https://travis-ci.org/coletivoEITA/noosfero-ecosol/jobs/72158294):
After quite a lot of googling, I got the following workaround from http://stackoverflow.com/questions/26481650/travis-could-not-find-bundler-1-7-4:
But I have no idea of why it is necessary :(