Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Ruby 3系のキーワード引数非互換に備える #90

Merged
merged 1 commit into from
Jul 29, 2022

Conversation

motsat
Copy link
Member

@motsat motsat commented Jul 29, 2022

以下のPRでrspecが失敗しており、失敗しないための事前の修正です。
#88

失敗の原因はRuby 3.0でHashからキーワード引数への変換が非互換になったのが原因のようでした。
https://www.ruby-lang.org/ja/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/
そのため、double splat演算子(**)での対応をしました。

この修正を行っておけば、失敗していたPR(#88)もRuby2.7/3.0/3.1でrspecが通ることも事前に確認しました。

@motsat motsat requested a review from a team as a code owner July 29, 2022 00:38
@motsat motsat requested review from AtsushiM, marumarism, f440 and meganemura and removed request for a team and marumarism July 29, 2022 00:38
Copy link
Member

@f440 f440 left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Member

@meganemura meganemura left a comment

Choose a reason for hiding this comment

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

LGTM

@meganemura meganemura merged commit 4f40c8e into kufu:master Jul 29, 2022
@motsat motsat deleted the preparation_update_tzinfo_2 branch July 29, 2022 00:47
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants