-
Notifications
You must be signed in to change notification settings - Fork 549
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
Conversation
I've awoken a slumbering giant. |
😘 |
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 |
Looks like there are some (unrelated?) failures; segfault on REE and memory corruption weirdness in some 2.0.0 tests. |
@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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
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. |
This is the terminal version with Ruby 1.9 support.
Great, I'd be happy to prepare a PR that does that (with no urgency to merge) after this goes in. |
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? |
@jaredbeck the linter isn't being run on 1.9.3, but it is still configured to target 1.9 - see 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. |
@sodabrew thanks for the review. Is this waiting on anything? |
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". |
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. |
No description provided.