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

[Ruby 2.7] Warnings for gitlab.rb #1250

Closed
Baltazardoung opened this issue Aug 16, 2020 · 3 comments · Fixed by #1254
Closed

[Ruby 2.7] Warnings for gitlab.rb #1250

Baltazardoung opened this issue Aug 16, 2020 · 3 comments · Fixed by #1254

Comments

@Baltazardoung
Copy link
Contributor

Report

What did you do?

Run danger on CI (GitLab) with Ruby 2.7.1

What did you expect to happen?

Everything should work correctly.

What happened instead?

Everything works except is throwing warnings.

Identical to #1220 but for gitlab.rb

Your Environment

  • Which CI are you running on? GitLab
  • Are you running the latest version of Danger? Yes
/usr/local/bundle/gems/danger-8.0.4/lib/danger/request_sources/gitlab.rb:226: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/usr/local/bundle/gems/danger-8.0.4/lib/danger/helpers/comments_helper.rb:94: warning: The called method `generate_comment' is defined here
@orta
Copy link
Member

orta commented Aug 16, 2020

Cool, open to PRs 👍🏻 - so long as it doesn't break backwards compat

chwo added a commit to chwo/danger that referenced this issue Aug 28, 2020
orta added a commit that referenced this issue Aug 29, 2020
@Baltazardoung
Copy link
Contributor Author

Baltazardoung commented Sep 3, 2020

I'm not sure #1254 fixes this issue.

I'm not familiar with ruby but first tested the same thing just taking inspiration from #1220. And I still had these warnings.

This has been confirmed by testing the new version 8.0.5:

test danger:
  before_script:
    - danger --version
  script:
    - danger --fail-on-errors=true

What produced the result :

$ danger --version
8.0.5
$ danger --fail-on-errors=true
...
/usr/local/bundle/gems/danger-8.0.5/lib/danger/request_sources/gitlab.rb:208: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/usr/local/bundle/gems/danger-8.0.5/lib/danger/request_sources/gitlab.rb:348: warning: The called method `submit_inline_comments!' is defined here
...
/usr/local/bundle/gems/danger-8.0.5/lib/danger/request_sources/gitlab.rb:226: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/usr/local/bundle/gems/danger-8.0.5/lib/danger/helpers/comments_helper.rb:94: warning: The called method `generate_comment' is defined here

So were you able to test these patches (#1254 && #1222) with Ruby 2.7.x ?

thanks,

ping @orta

@afaucogney
Copy link

Same for me. Warning are still there !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants