Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis CI shows error "NoMethodError: undefined method `spec' for nil:NilClass" #36

Closed
hirokishirai opened this issue Apr 30, 2016 · 2 comments

Comments

@hirokishirai
Copy link
Contributor

Hi, @jackc.
I pull requested tod. (PR #35)
then, Travis CI shows errors "NoMethodError: undefined method `spec' for nil:NilClass" in ruby 1.9.3, 2.1.5 and 2.2.0.
But ruby 2.0.0 has no errors.

I think this problem caused by rubygems/rubygems - remove extra caching on spec.
Bundler corresponded for This change at v1.10.0.pre(this commit).
So, I think you need update bundler in Travis CI by add - gem update bundler to .travis.yml.

 before_install:
   - .......
 + - gem update bundler
@jackc
Copy link
Owner

jackc commented Apr 30, 2016

I updated the travis file to use the latest point releases of supported Ruby versions, and to drop unsupported Ruby versions 1.9 and 2.0. This fixed the issue.

@jackc jackc closed this as completed Apr 30, 2016
@hirokishirai
Copy link
Contributor Author

Ok, thanks.

msabramo added a commit to msabramo/1pass that referenced this issue Jul 18, 2016
1.9.3 is old and [Travis fails for
it](https://travis-ci.org/dlokesh/1pass/builds/145591056) with
`NoMethodError: undefined method `spec' for nil:NilClass`.

jackc/tod#36 says that dropping old Ruby
versions fixed this issue for them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants