-
Notifications
You must be signed in to change notification settings - Fork 328
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
Psych.loadの引数filenameの追従 #2870
Psych.loadの引数filenameの追従 #2870
Conversation
refm/api/src/psych.rd
Outdated
@@ -113,7 +113,16 @@ libyaml のバージョンを返します。 | |||
@see [[m:Psych::LIBYAML_VERSION]] | |||
|
|||
#@since 2.5.0 | |||
#@since 2.6.0 | |||
#@since 3.1 |
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.
このあたりの分岐についてはより良い方法がありましたらご教示ください
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.
こんな感じですかね
#@if("2.6.0" <= version)
--- load(yaml, filename: nil, fallback: false, symbolize_names: false) -> object
#@end
#@if("2.5.0" <= version and version < "3.1")
--- load(yaml, filename = nil, fallback: false, symbolize_names: false) -> object
#@end
#@if(version < "2.5.0")
--- load(yaml, filename = nil, fallback = false) -> object
#@end
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.
ご提示ありがとうございました. 7f8b1c9 として積ませていただきました.
2cd5605
to
0acb12d
Compare
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.
ありがとうございます。
ご確認ありがとうございました. CIが通らなかった点を調べないとなどと考えていましたが, 58b73ef で修正されたと見受けました.ご対応ありがとうございました. 🙇 |
以下の対応を行いました.
動作確認
以下のようになることを確認しました.
ruby-3.1
ruby-3.0
ruby-2.6.0
ruby-2.5.0
ruby-2.4.0