Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bump bundler dependency to 1.0.0.beta.2 or later

  • Loading branch information...
commit d7c1057652cfc971bb35ef09b0b1560fcd28ed70 1 parent 53b34e8
@jeremy jeremy authored
View
1  .gitignore
@@ -1,6 +1,7 @@
*.gem
pkg
.bundle
+Gemfile.lock
debug.log
doc/rdoc
activemodel/doc
View
2  rails.gemspec
@@ -25,5 +25,5 @@ Gem::Specification.new do |s|
s.add_dependency('activeresource', version)
s.add_dependency('actionmailer', version)
s.add_dependency('railties', version)
- s.add_dependency('bundler', '>= 0.9.26')
+ s.add_dependency('bundler', '>= 1.0.0.beta.2')
end
View
2  railties/guides/source/initialization.textile
@@ -141,7 +141,7 @@ Here the only two gems we need are +rails+ and +sqlite3-ruby+, so it seems. This
* activesupport-3.0.0.beta4.gem
* arel-0.4.0.gem
* builder-2.1.2.gem
-* bundler-0.9.26.gem
+* bundler-1.0.0.beta.2.gem
* erubis-2.6.5.gem
* i18n-0.4.1.gem
* mail-2.2.4.gem

11 comments on commit d7c1057

@neerajdotname
Collaborator

I am getting this error.

No compatible versions could be found for required dependencies:
Conflict on: "bundler":
* bundler (0.9.26) activated by bundler (= 0.9.26, runtime)
* bundler (>= 1.0.0.beta.2, runtime) required by rails (>= 0, runtime)
All possible versions of origin requirements conflict.
Could not find gem 'ruby-debug (>= 0, runtime)' in the gems available on this machine.
Try running bundle install.

then I tried bundle install

$ bundle install
Updating git://github.com/rails/rails.git
Fetching source index from http://rubygems.org/
Updating git://github.com/rails/rails.git
No compatible versions could be found for required dependencies:
Conflict on: "bundler":
* bundler (0.9.26) activated by bundler (= 0.9.26, runtime)
* bundler (>= 1.0.0.beta.2, runtime) required by rails (>= 0, runtime)
All possible versions of origin requirements conflict.

this is my Gemfile

$ cat Gemfile

source 'http://rubygems.org'
gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3-ruby', :require => 'sqlite3'
gem 'ruby-debug'

$ gem list bundler

*** LOCAL GEMS ***

bundler (0.9.26)

$ gem update bundler --pre
Updating installed gems
Nothing to update

What am I missing?

thanks

@albus522

Try
$ gem install bundler --pre

instead of update

@stid

same problem. Installed bundler --pre and I have this error when I use bundle install under my app:

    /usr/local/lib/ruby/1.9.1/fileutils.rb:243:in `mkdir': Permission denied - /usr/local/lib/ruby/gems/1.9.1/cache/bundler (Errno::EACCES)
from /usr/local/lib/ruby/1.9.1/fileutils.rb:243:in `fu_mkdir'
from /usr/local/lib/ruby/1.9.1/fileutils.rb:217:in `block (2 levels) in mkdir_p'
from /usr/local/lib/ruby/1.9.1/fileutils.rb:215:in `reverse_each'
from /usr/local/lib/ruby/1.9.1/fileutils.rb:215:in `block in mkdir_p'
from /usr/local/lib/ruby/1.9.1/fileutils.rb:201:in `each'
from /usr/local/lib/ruby/1.9.1/fileutils.rb:201:in `mkdir_p'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.0.beta.2/lib/bundler/source.rb:570:in `cache'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.0.beta.2/lib/bundler/source.rb:501:in `specs'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.0.beta.2/lib/bundler/definition.rb:108:in `block in resolve'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.0.beta.2/lib/bundler/definition.rb:106:in `each'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.0.beta.2/lib/bundler/definition.rb:106:in `resolve'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.0.beta.2/lib/bundler/definition.rb:73:in `specs'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.0.beta.2/lib/bundler/definition.rb:69:in `resolve_remotely!'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.0.beta.2/lib/bundler/installer.rb:21:in `run'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.0.beta.2/lib/bundler/installer.rb:7:in `install'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.0.beta.2/lib/bundler/cli.rb:108:in `install'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.0.beta.2/lib/bundler/vendor/thor/task.rb:33:in `run'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.0.beta.2/lib/bundler/vendor/thor/invocation.rb:109:in `block in invoke'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.0.beta.2/lib/bundler/vendor/thor/invocation.rb:116:in `call'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.0.beta.2/lib/bundler/vendor/thor/invocation.rb:116:in `invoke'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.0.beta.2/lib/bundler/vendor/thor.rb:159:in `block in start'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.0.beta.2/lib/bundler/vendor/thor/base.rb:378:in `start'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.0.beta.2/lib/bundler/vendor/thor.rb:138:in `start'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.0.beta.2/bin/bundle:13:in `<top (required)>'
from /usr/local/bin/bundle:19:in `load'
from /usr/local/bin/bundle:19:in `<main>'
@stid

Thanks @jeremy!

@neerajdotname
Collaborator

@David Genord thank you. that did it.

@stid

Still have a lot of problems in managing things well with bundler.beta2. Rake fails in some configurations if you try to change budlers path via .bundle/config.

Hope to see bundler.beta3 asap.

@nragaz

Yeah, it was way too early to require Bundler beta2 for those of us actually trying to deploy and run apps using Rails 3. It seems like a new issue pops up every time I deploy.

@stid

:) we are using Master release... that's part of the game. BTW - I was able to solve all my problems by using bundle exec, that as far as I understand is the right way to get things working as they should when you depend on Gem with binaries. This included specific script, tests, capistrano post deploy scripts and everything else that use non standard rails boot procedure. Bundler beta2 has in any case some bugs. That's a fact.

@nragaz

OK - in fairness, my issues were completely resolved by using "bundle install /not/a/sudo/path" instead of letting Bundler try to install to GEM_HOME, which seemed to make my cron scripts and rake tasks cranky.

@jeremy
Owner

nragaz, are you deploying with Capistrano? Then you can use something like:

after "deploy:update_code" do
  deploy.bundle
end

namespace :deploy do
  task :bundle do
    run "cd #{release_path} && RAILS_ENV=#{rails_env} bundle install #{shared_path}/bundle"
  end
end
Please sign in to comment.
Something went wrong with that request. Please try again.