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 & test 2.7 #56

Merged
merged 4 commits into from
Oct 29, 2020
Merged

Update Rubocop & test 2.7 #56

merged 4 commits into from
Oct 29, 2020

Conversation

marcandre
Copy link
Contributor

Combines #54 and #55, to see if Travis will kick in

@marcandre marcandre requested a review from a team as a code owner October 26, 2020 16:45
@ashkulz
Copy link
Member

ashkulz commented Oct 28, 2020

@marcandre this still fails on Ruby 2.3? Also, I'd be more comfortable that we used something like appraisal to ensure that we actually run tests with two different RuboCop versions, rather than assuming it works.

@ashkulz ashkulz mentioned this pull request Oct 28, 2020
@marcandre
Copy link
Contributor Author

@marcandre this still fails on Ruby 2.3?

Oh, right, I see this. Fixing now, sorry.

Also, I'd be more comfortable that we used something like appraisal to ensure that we actually run tests with two different RuboCop versions, rather than assuming it works.

Do what you want, but if you look at the log and expand the bundle install segment, you'll see that rubocop 0.81 is installed. There is no way that newer rubocop will ever be compatible with Ruby 2.3; we'll probably drop 2.4 early next year.

@marcandre
Copy link
Contributor Author

Green in 2.3

@ashkulz ashkulz merged commit 2c16f3f into prontolabs:master Oct 29, 2020
@ashkulz
Copy link
Member

ashkulz commented Oct 29, 2020

Thanks, @marcandre!

@knappe
Copy link

knappe commented Nov 3, 2020

@ashkulz Any chance we could get a release of the gem with the updated rubocop dependency changes? 😄

@ashkulz
Copy link
Member

ashkulz commented Nov 4, 2020

I think I can create a tag, but I don't have permissions to make a release to RubyGems (I was recently invited to the org). Not sure who has that, probably @mmozuras or @doomspork?

@ashkulz
Copy link
Member

ashkulz commented Jan 31, 2021

I changed the dependency to be < 1.0, see 5dfe984 -- there were failing tests and fixing them wasn't easy. I'll do a followup release sometime.

@marcandre marcandre deleted the update27 branch January 31, 2021 08:27
@marcandre
Copy link
Contributor Author

I'll have a look tomorrow

@marcandre
Copy link
Contributor Author

So there are two issues.
One is caused by a bug in RuboCop which you can temporarily bypass by changing s.required_ruby_version = '>= 2.3.0' to '>= 2.4.0' in the gemspec.

The other is that spec/pronto/rubocop/patch_cop_spec.rb no longer passes. I hope I won't offend anyone by stating that this spec file is simply horrible. It uses no less than 7 spec doubles for RuboCop's internals, and even worse patches 3 RuboCop methods unilaterally to return those doubles.

The internals have changed, the config loading code calls one of these 3 methods for another purpose and 💣 .

The solution is to send this spec file to /dev/null and do without or rewrite it properly. I'm afraid I have no inclination to help further in that regards.

@ashkulz
Copy link
Member

ashkulz commented Feb 1, 2021

Thanks, @marcandre! I became a maintainer very recently, so I'm not familiar with this part of the code.

I'll take a look at it this weekend and release 0.11.1 which is compatible with RuboCop >= 1.0 🤞

@thatguysimon
Copy link

Hey @ashkulz! Any luck with this?

@ashkulz
Copy link
Member

ashkulz commented Feb 11, 2021

@thatguysimon, @eitoball did make an attempt in #60, but I personally haven't had time to action it myself yet 🙁

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

4 participants