Skip to content

Instantly share code, notes, and snippets.

@remomueller
Created December 10, 2012 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save remomueller/4250968 to your computer and use it in GitHub Desktop.
Save remomueller/4250968 to your computer and use it in GitHub Desktop.
Bundler Error on attempting to Install a Prerelease Gem (Contour 1.1.2.pre)

Bundler Error installing Contour 1.1.2.pre

Summary

I'm the owner of the Contour gem, and pushed a new prerelease version 1.1.2.pre to RubyGems. I've done prerelease versions in the past, and have always been able to specify the version then in the Gemfile, for example: gem 'contour', '~> 1.1.2.pre'. Then followed by a bundle update, the gem would install correctly.

For some unknown reason, bundler is unable to find this gem, although it is available on RubyGems: rubygems.org/gems/contour/versions/1.1.2.pre

I've also opened an issue on RubyGems Help in case it is actually a RubyGems error.

Link back to issue on carlhuda/bundler: github.com/carlhuda/bundler/issues/2209

TL;DR Pushed a prerelease gem and Bundler has no knowledge of it.

Command that was run

bundle update -V

Exception backtrace

Fetching gem metadata from https://rubygems.org/
Query List: ["rails", "mysql2", "thin", "eventmachine", "contour", "kaminari", "ri_cal", "naturalsort", "sass-rails", "coffee-rails", "uglifier", "jquery-rails", "win32console", "turn", "simplecov"]
Query Gemcutter Dependency Endpoint API: rails mysql2 thin eventmachine contour kaminari ri_cal naturalsort sass-rails coffee-rails uglifier jquery-rails win32console turn simplecov
Fetching from: https://rubygems.org/api/v1/dependencies?gems=rails,mysql2,thin,eventmachine,contour,kaminari,ri_cal,naturalsort,sass-rails,coffee-rails,uglifier,jquery-rails,win32console,turn,simplecov
HTTP Success
Query List: ["coffee-script", "railties", "actionpack", "sprockets", "omniauth-twitter", "omniauth-openid", "omniauth-linkedin", "omniauth-ldap", "omniauth-facebook", "omniauth-cas", "omniauth", "devise", "twitter-bootstrap-rails", "thor", "activesupport", "hoe", "bundler", "actionmailer", "activeresource", "activerecord", "rake", "actionwebservice", "newgem", "ruby-prof", "sass", "tilt", "multi_json", "simplecov-html", "rack", "daemons", "eventmachine-le", "http_parser.rb", "preforker", "bones", "ansi", "minitest", "facets", "therubyracer", "execjs", "json"]
Query Gemcutter Dependency Endpoint API: coffee-script railties actionpack sprockets omniauth-twitter omniauth-openid omniauth-linkedin omniauth-ldap omniauth-facebook omniauth-cas omniauth devise twitter-bootstrap-rails thor activesupport hoe bundler actionmailer activeresource activerecord rake actionwebservice newgem ruby-prof sass tilt multi_json simplecov-html rack daemons eventmachine-le http_parser.rb preforker bones ansi minitest facets therubyracer execjs json
Fetching from: https://rubygems.org/api/v1/dependencies?gems=coffee-script,railties,actionpack,sprockets,omniauth-twitter,omniauth-openid,omniauth-linkedin,omniauth-ldap,omniauth-facebook,omniauth-cas,omniauth,devise,twitter-bootstrap-rails,thor,activesupport,hoe,bundler,actionmailer,activeresource,activerecord,rake,actionwebservice,newgem,ruby-prof,sass,tilt,multi_json,simplecov-html,rack,daemons,eventmachine-le,http_parser.rb,preforker,bones,ansi,minitest,facets,therubyracer,execjs,json
HTTP Success
Query List: ["mail", "text-format", "erubis", "journey", "rack-test", "builder", "rack-cache", "activemodel", "i18n", "rack-mount", "tzinfo", "arel", "memcache-client", "little-plugger", "loquacious", "rspec", "bones-git", "bones-extras", "coffee-script-source", "warden", "orm_adapter", "bcrypt-ruby", "RubyInline", "rubyforge", "gemcutter", "RedCloth", "syntax", "rubigen", "cucumber", "hashie", "oa-core", "oa-oauth", "oa-basic", "oa-openid", "oa-enterprise", "oa-more", "addressable", "nokogiri", "omniauth-oauth2", "net-ldap", "pyu-ruby-sasl", "rubyntlm", "omniauth-oauth", "rack-openid", "test-spec", "camping", "fcgi", "mongrel", "ruby-openid", "rdoc", "rack-ssl", "hike", "ref", "libv8", "less-rails", "less"]
Query Gemcutter Dependency Endpoint API: mail text-format erubis journey rack-test builder rack-cache activemodel i18n rack-mount tzinfo arel memcache-client little-plugger loquacious rspec bones-git bones-extras coffee-script-source warden orm_adapter bcrypt-ruby RubyInline rubyforge gemcutter RedCloth syntax rubigen cucumber hashie oa-core oa-oauth oa-basic oa-openid oa-enterprise oa-more addressable nokogiri omniauth-oauth2 net-ldap pyu-ruby-sasl rubyntlm omniauth-oauth rack-openid test-spec camping fcgi mongrel ruby-openid rdoc rack-ssl hike ref libv8 less-rails less
Fetching from: https://rubygems.org/api/v1/dependencies?gems=mail,text-format,erubis,journey,rack-test,builder,rack-cache,activemodel,i18n,rack-mount,tzinfo,arel,memcache-client,little-plugger,loquacious,rspec,bones-git,bones-extras,coffee-script-source,warden,orm_adapter,bcrypt-ruby,RubyInline,rubyforge,gemcutter,RedCloth,syntax,rubigen,cucumber,hashie,oa-core,oa-oauth,oa-basic,oa-openid,oa-enterprise,oa-more,addressable,nokogiri,omniauth-oauth2,net-ldap,pyu-ruby-sasl,rubyntlm,omniauth-oauth,rack-openid,test-spec,camping,fcgi,mongrel,ruby-openid,rdoc,rack-ssl,hike,ref,libv8,less-rails,less
HTTP Success
Query List: ["launchy", "bones-rcov", "bones-rubyforge", "bones-rspec", "bones-zentest", "git", "markaby", "metaid", "mab", "term-ansicolor", "treetop", "polyglot", "diff-lcs", "gherkin", "json_pure", "abstract", "net-scp", "mutter", "commonjs", "mime-types", "tlsmail", "ZenTest", "fastthread", "gem_plugin", "cgi_multipart_eof_fix", "racc", "tenderlove-frex", "rake-compiler", "rexical", "weakling", "rest-client", "restclient", "uuid", "XMLCanonicalizer", "oauth", "oauth2", "faraday", "multi_xml", "ruby-openid-apps-discovery", "multimap", "echoe", "rspec-mocks", "rspec-expectations", "rspec-core", "spicycode-rcov", "mocha", "thoughtbot-shoulda", "ruby-yadis", "flexmock", "text-hyphen"]
Query Gemcutter Dependency Endpoint API: launchy bones-rcov bones-rubyforge bones-rspec bones-zentest git markaby metaid mab term-ansicolor treetop polyglot diff-lcs gherkin json_pure abstract net-scp mutter commonjs mime-types tlsmail ZenTest fastthread gem_plugin cgi_multipart_eof_fix racc tenderlove-frex rake-compiler rexical weakling rest-client restclient uuid XMLCanonicalizer oauth oauth2 faraday multi_xml ruby-openid-apps-discovery multimap echoe rspec-mocks rspec-expectations rspec-core spicycode-rcov mocha thoughtbot-shoulda ruby-yadis flexmock text-hyphen
Fetching from: https://rubygems.org/api/v1/dependencies?gems=launchy,bones-rcov,bones-rubyforge,bones-rspec,bones-zentest,git,markaby,metaid,mab,term-ansicolor,treetop,polyglot,diff-lcs,gherkin,json_pure,abstract,net-scp,mutter,commonjs,mime-types,tlsmail,ZenTest,fastthread,gem_plugin,cgi_multipart_eof_fix,racc,tenderlove-frex,rake-compiler,rexical,weakling,rest-client,restclient,uuid,XMLCanonicalizer,oauth,oauth2,faraday,multi_xml,ruby-openid-apps-discovery,multimap,echoe,rspec-mocks,rspec-expectations,rspec-core,spicycode-rcov,mocha,thoughtbot-shoulda,ruby-yadis,flexmock,text-hyphen
HTTP Success
Query List: ["rcov", "highline", "allison", "multipart-post", "trollop", "spruz", "spoon", "configuration", "ffi", "archive-tar-minitar", "metaclass", "net-ssh", "ruby-hmac", "httpauth", "jwt", "faraday-middleware", "macaddr", "log4r"]
Query Gemcutter Dependency Endpoint API: rcov highline allison multipart-post trollop spruz spoon configuration ffi archive-tar-minitar metaclass net-ssh ruby-hmac httpauth jwt faraday-middleware macaddr log4r
Fetching from: https://rubygems.org/api/v1/dependencies?gems=rcov,highline,allison,multipart-post,trollop,spruz,spoon,configuration,ffi,archive-tar-minitar,metaclass,net-ssh,ruby-hmac,httpauth,jwt,faraday-middleware,macaddr,log4r
HTTP Success
Query List: ["termios", "systemu", "needle", "jruby-pageant"]
Query Gemcutter Dependency Endpoint API: termios systemu needle jruby-pageant
Fetching from: https://rubygems.org/api/v1/dependencies?gems=termios,systemu,needle,jruby-pageant
HTTP Success
Query List: []
Unmet Dependencies: ["faraday-middleware", "tenderlove-frex", "restclient", "spicycode-rcov"]
Fetching gem metadata from https://rubygems.org/
Query List: ["faraday-middleware", "tenderlove-frex", "restclient", "spicycode-rcov"]
Query Gemcutter Dependency Endpoint API: faraday-middleware tenderlove-frex restclient spicycode-rcov
Fetching from: https://rubygems.org/api/v1/dependencies?gems=faraday-middleware,tenderlove-frex,restclient,spicycode-rcov
HTTP Success
Query List: []
Could not find gem 'contour (~> 1.1.2.pre) ruby' in the gems available on this machine.
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/bundler-1.2.1/lib/bundler/resolver.rb:287:in `resolve'
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/bundler-1.2.1/lib/bundler/resolver.rb:161:in `start'
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/bundler-1.2.1/lib/bundler/resolver.rb:128:in `block in resolve'
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/bundler-1.2.1/lib/bundler/resolver.rb:127:in `catch'
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/bundler-1.2.1/lib/bundler/resolver.rb:127:in `resolve'
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/bundler-1.2.1/lib/bundler/definition.rb:178:in `resolve'
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/bundler-1.2.1/lib/bundler/definition.rb:113:in `specs'
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/bundler-1.2.1/lib/bundler/definition.rb:108:in `resolve_remotely!'
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/bundler-1.2.1/lib/bundler/installer.rb:81:in `run'
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/bundler-1.2.1/lib/bundler/installer.rb:14:in `install'
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/bundler-1.2.1/lib/bundler/cli.rb:230:in `install'
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/bundler-1.2.1/lib/bundler/vendor/thor/task.rb:27:in `run'
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/bundler-1.2.1/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_task'
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/bundler-1.2.1/lib/bundler/vendor/thor.rb:275:in `dispatch'
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/bundler-1.2.1/lib/bundler/vendor/thor/base.rb:408:in `start'
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/bundler-1.2.1/bin/bundle:14:in `block in <top (required)>'
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/bundler-1.2.1/lib/bundler/friendly_errors.rb:4:in `with_friendly_errors'
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/bundler-1.2.1/bin/bundle:14:in `<top (required)>'
/usr/local/rvm/gems/ruby-1.9.3-p327/bin/bundle:19:in `load'
/usr/local/rvm/gems/ruby-1.9.3-p327/bin/bundle:19:in `<main>'
/usr/local/rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in `eval'
/usr/local/rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in `<main>'

Gemfile

source 'https://rubygems.org'

gem 'rails',                '3.2.9'

# Database Adapter
# Install instructions for Windows: http://blog.mmediasys.com/2011/07/07/installing-mysql-on-windows-7-x64-and-using-ruby-with-it/
gem 'mysql2',               '0.3.11'
gem 'thin',                 '~> 1.4.1',           :platforms => [ :mswin, :mingw ]
gem 'eventmachine',         '~> 1.0.0',           :platforms => [ :mswin, :mingw ]

# Gems used by project
gem 'contour',              '~> 1.1.2.pre'
gem 'kaminari',             '~> 0.14.1'
gem 'ri_cal',               '~> 0.8.8'
gem 'naturalsort',          '~> 1.1.1'

# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',         '~> 3.2.5'
  gem 'coffee-rails',       '~> 3.2.2'
  gem 'uglifier',           '>= 1.0.3'
end

gem 'jquery-rails'

# Testing
group :test do
  # Pretty printed test output
  gem 'win32console',                             :platforms => [ :mswin, :mingw ]
  gem 'turn',               '~> 0.9.6'
  gem 'simplecov',          '~> 0.7.1',           :require => false
end

Gemfile.lock

Unable to be created since Could not find gem 'contour (~> 1.1.2.pre) ruby' in the gems available on this machine.

Bundler Configuration

remo$ bundle config
Settings are listed in order of priority. The top value will be used.

remo$

Version of Bundler

Bundler version 1.2.1

Version of Ruby

ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-darwin12.2.0]

Version of RubyGems

1.8.24

Version of RVM

rvm 1.16.20 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]

RubyGems Bundler (yes)

gem list rubygems-bundler

*** LOCAL GEMS ***

rubygems-bundler (1.1.0)

OpenGem (no)

gem list open_gem

*** LOCAL GEMS ***


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment