Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Rebased bennacer860 rubocop upgrade #2081

Merged
merged 10 commits into from
Oct 12, 2015
Merged

Conversation

soulcutter
Copy link
Member

This branch does the cleanup I suggested in #2051

@JonRowe
Copy link
Member

JonRowe commented Oct 8, 2015

This doesn't resolve the discussion in the previous PR, where the consensus was we'd revert the whitespace changes and disable the rule instead.

@soulcutter
Copy link
Member Author

Thanks for clarifying, @JonRowe - it wasn't clear to me that was what was holding it up. I was looking to get some momentum back on this to finish it up. Sounds like removing 6e2ce40 is all it will take then?

@soulcutter soulcutter force-pushed the rebased-bennacer860-rubocop branch from 1b5592e to 7ab0128 Compare October 8, 2015 04:13
@JonRowe
Copy link
Member

JonRowe commented Oct 9, 2015

And 37c6435 needs unpicking to remove the spacing changes too

bennacer860 and others added 10 commits October 9, 2015 09:19
This also updates the travis setup to use the latest bundler. Travis
currently defaults to Bundler version 1.7.4, however, this bundler
version does not support the `platform: :ruby_22` configuration setting.
So we need to tell travis to install a more recent bundler.

Also, `platform: :ruby_19` applies to **both** 1.9.2 and 1.9.3. But
Rubocop stopped supporting 1.9.2. Thus we need to check the
`RUBY_VERSION` in our `Gemfile` and not attempt to install Rubocop
specifically for 1.9.2.

Unfortunately, this bundler does not work with JRuby (2.0 mode), but
does work with JRuby 1.8 mode. So we need to update the config to ignore
JRuby 2.0. However, the current config incorrectly assumes we can do
that by checking the `JRUBY_OPTS` environment variable. Travis actually
sets this be default on _all_ systems:
http://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables

However, we can check the Ruby version we pass into the travis matrix by
using the `TRAVIS_RUBY_VERSION` and seeing if it equals "jruby".
@soulcutter soulcutter force-pushed the rebased-bennacer860-rubocop branch from 7ab0128 to 0eab115 Compare October 9, 2015 13:50
@soulcutter
Copy link
Member Author

@JonRowe That commit was tricky to pick out. Let me know if what I came up with meets your expectation.

JonRowe added a commit that referenced this pull request Oct 12, 2015
@JonRowe JonRowe merged commit 90fca7e into master Oct 12, 2015
@JonRowe
Copy link
Member

JonRowe commented Oct 12, 2015

LGTM

@JonRowe JonRowe deleted the rebased-bennacer860-rubocop branch October 12, 2015 00:34
@JonRowe JonRowe mentioned this pull request Oct 12, 2015
MatheusRich pushed a commit to MatheusRich/rspec-core that referenced this pull request Oct 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants