-
Notifications
You must be signed in to change notification settings - Fork 28
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
Run specs with redis client #65
Run specs with redis client #65
Conversation
fdef8ab
to
ef1f1ff
Compare
activejob-uniqueness.gemspec
Outdated
spec.add_development_dependency 'appraisal', '~> 2.3.0' | ||
spec.add_development_dependency 'bundler', '>= 2.0' | ||
spec.add_development_dependency 'pry-byebug', '> 3.6.0' | ||
spec.add_development_dependency 'rspec', '~> 3.0' | ||
spec.add_development_dependency 'rubocop', '~> 1.28' | ||
spec.add_development_dependency 'rubocop-rspec', '~> 2.10' |
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.
Hey @laurafeier
Thank you for the PR!
Could you explain why this change is necessary?
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.
Ah, I see Gemspec/DevelopmentDependencies: Specify development dependencies in Gemfile
https://docs.rubocop.org/rubocop/cops_gemspec.html#gemspecdevelopmentdependencies
TBH I do not see any value in this change. I'd prefer to disable the cop instead
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.
This cop is not available for older versions of rubocop which are installed with older ruby version. If you disable it, the rule is not recognized by older rubocop and it fails. I think this is the only way to have it working with older & newer ruby versions.
Error output for following:
ruby 2.5
rubocop 1.28.2
Error: unrecognized cop or department Gemspec/DevelopmentDependencies found in .rubocop.yml
Did you mean `Gemspec/OrderedDependencies`?
Even if you disable the rule in robocop.yml, it will still give the same error. I will update the PR by excluding the .gemspec file entirely.
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.
Brilliant! Thank you
5f18eb2
to
5140210
Compare
5140210
to
e7db43b
Compare
No description provided.