Travis CI に Ruby のコードを push したところ、以下のようなエラーが発生して bundle install
がうまく完了しない。
NoMethodError: undefined method `spec' for nil:NilClass
ざっと調べた感じ、rubygems の修正が影響している模様。
https://github.com/rubygems/rubygems/commit/620910aa75c7446e8f8d5af1df5f981e4da86197
Bundler 側では 1.10.0 以降で修正されている。
https://github.com/bundler/bundler/commit/f4481a7e3dbaf7f563e32afbe2cbbb84e3091f16
Travis CI で Bundler が古すぎたときのために、before_install
で gem update bundler
しておくと解決できる。
こんな具合に。
https://github.com/google/google-api-ruby-client/pull/322
以上。