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

Update RuboCop to 0.50.x #752

Merged
merged 22 commits into from
Nov 27, 2017
Merged

Update RuboCop to 0.50.x #752

merged 22 commits into from
Nov 27, 2017

Conversation

tamird
Copy link
Contributor

@tamird tamird commented May 7, 2016

No description provided.

@sodabrew
Copy link
Collaborator

sodabrew commented May 7, 2016

I've awoken a slumbering giant.

@tamird
Copy link
Contributor Author

tamird commented May 7, 2016

😘

@tamird
Copy link
Contributor Author

tamird commented May 7, 2016

I've cherry picked the rspec matcher change from #747 since the alternative (replacing parallel assignment with serial assignment) was causing failures on 1.8.7 and segfaults on REE o.O

@tamird
Copy link
Contributor Author

tamird commented May 8, 2016

Looks like there are some (unrelated?) failures; segfault on REE and memory corruption weirdness in some 2.0.0 tests.

@tamird
Copy link
Contributor Author

tamird commented May 21, 2016

@sodabrew can i bribe you to take a look at this?

@@ -6,7 +6,7 @@

# Should never exceed worst case 3.5 secs across all 20 threads
Timeout.timeout(3.5) do
20.times.map do
Array.new(20) do
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a style against Integer#times now?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, this is apparently more performant

@sodabrew sodabrew modified the milestone: 0.5.0 Oct 22, 2016
@jaredbeck
Copy link
Contributor

Oh, I didn't realize you were working on this, Tamir.

I opened #909, which upgrades rubocop to 0.41.2. But, it looks like you've done a lot of work here, and I don't want to cause a conflict, so maybe we should close mine.

@tamird tamird changed the title Update RuboCop to 0.39.x Update RuboCop to 0.50.x Nov 26, 2017
@tamird
Copy link
Contributor Author

tamird commented Nov 26, 2017

Great, I'd be happy to prepare a PR that does that (with no urgency to merge) after this goes in.

@jaredbeck
Copy link
Contributor

gem 'rubocop', '~> 0.50.0' unless RUBY_VERSION =~ /1.9/

This is an interesting way to get us to a modern rubocop version! Works for me. I can't think of any downside to skip linting on 1.9.3. There aren't any 1.9.3-specific linter offenses ("cops"), are there?

@tamird
Copy link
Contributor Author

tamird commented Nov 26, 2017

@jaredbeck the linter isn't being run on 1.9.3, but it is still configured to target 1.9 - see .rubocop.yml.

0.51 removed the ability to target 1.9, which is why this is the terminal version until 1.9 support is dropped from mysql2.

@tamird
Copy link
Contributor Author

tamird commented Nov 27, 2017

@sodabrew thanks for the review. Is this waiting on anything?

@sodabrew
Copy link
Collaborator

Right - that's what I mean - for the next mysql2 rev, I'm considering whether to drop 1.9 as well, and make Ruby 2.0 the lowest supported version. Given that each version branch has multi year lifespan, that 0.4.x supports all the way back to 1.8.7 gives a lot of breathing room to make 0.5.x more aggressively "modern".

@tamird
Copy link
Contributor Author

tamird commented Nov 27, 2017

Understood. Still, it would be beneficial to merge this as-is and pursue (and evaluate the benefits of) dropping 1.9 in a separate PR -- if nothing else, it will make review at least somewhat palatable.

@sodabrew sodabrew merged commit 17fe755 into brianmario:master Nov 27, 2017
@tamird tamird deleted the update-rubocop branch November 27, 2017 20:00
@jaredbeck
Copy link
Contributor

@sodabrew sodabrew merged commit 17fe755 into brianmario:master 31 minutes ago

🎉 Nice work, Tamir!

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.

3 participants