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

Getting a failure in the tests: #1702

Closed
wants to merge 1 commit into from

Conversation

schneems
Copy link
Contributor

@schneems schneems commented Jan 4, 2019

2.93s$ gem update --system
Updating rubygems-update
Fetching: rubygems-update-3.0.2.gem (100%)
ERROR:  Error installing rubygems-update:
	rubygems-update requires Ruby version >= 2.3.0.
ERROR:  While executing gem ... (NoMethodError)
    undefined method `version' for nil:NilClass
The command "gem update --system" failed and exited with 1 during .

```
2.93s$ gem update --system
Updating rubygems-update
Fetching: rubygems-update-3.0.2.gem (100%)
ERROR:  Error installing rubygems-update:
	rubygems-update requires Ruby version >= 2.3.0.
ERROR:  While executing gem ... (NoMethodError)
    undefined method `version' for nil:NilClass
The command "gem update --system" failed and exited with 1 during .
```
@MSP-Greg
Copy link
Member

MSP-Greg commented Jan 4, 2019

See PR #1682. I didn't catch the white-space, I can force a merge. Travis ruby-head is kind of broken as to RubyGems. Hopefully it will be fixed soon...

Uses:

before_install:
  # rubygems 2.7.8 and greater include bundler
  - |
    rv="$(ruby -e 'STDOUT.write RUBY_VERSION')";
    if   [ "$rv" \< "2.3" ]; then gem update --system 2.7.8 --no-document
    elif [ "$rv" \< "2.6" ]; then gem update --system --no-document --conservative
    fi
  - ruby -v && gem --version && bundle version

JFYI, Appveyor is building with 2.6. Didn't add it to Travis, as I suspect it will fail like ruby-head...

@schneems schneems closed this Jan 4, 2019
@schneems
Copy link
Contributor Author

schneems commented Jan 4, 2019

Thanks for your PR I totally missed it. You're pretty fast on the gun. Need this for #1700

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

Successfully merging this pull request may close these issues.

None yet

2 participants