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

Run specs with redis client #65

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

laurafeier
Copy link
Contributor

No description provided.

This was referenced Oct 17, 2023
@laurafeier laurafeier force-pushed the feature/specs-for-redis-client branch 3 times, most recently from fdef8ab to ef1f1ff Compare October 17, 2023 14:56
Comment on lines 34 to 39
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'
Copy link
Member

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?

Copy link
Member

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

Copy link
Contributor Author

@laurafeier laurafeier Oct 17, 2023

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.

Copy link
Member

Choose a reason for hiding this comment

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

Brilliant! Thank you

@laurafeier laurafeier force-pushed the feature/specs-for-redis-client branch 2 times, most recently from 5f18eb2 to 5140210 Compare October 17, 2023 15:51
@laurafeier laurafeier force-pushed the feature/specs-for-redis-client branch from 5140210 to e7db43b Compare October 17, 2023 15:59
@sharshenov sharshenov merged commit d6efd3a into veeqo:main Oct 17, 2023
32 checks passed
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

2 participants