Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
还没有人认领这个 Issue。
评估
调研方向
从 lib/forwardable.rb 第 238 行附近开始,并将其中的调用与 ferrum 的 lib/ferrum/page/screenshot.rb 中 pdf(**opts) 的定义进行比较。阅读所报告执行路径中的 Ruby 2.7 关键字参数警告。完成的标准是确定需要调整的调用位置,并确认该警告不再出现。
由索引模型根据 Issue 内容生成。
描述
Hello.
I see ruby2_keywords usage, but I'm getting such warnings for some reason in my project:
/home/alex/Projects/ruby/forwardable/lib/forwardable.rb:238: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/home/alex/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/ferrum-0.9/lib/ferrum/page/screenshot.rb:35: warning: The called method `pdf' is defined here
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-linux]
I see this referenced source: https://github.com/rubycdp/ferrum/blob/6906d98/lib/ferrum/page/screenshot.rb#L35
def pdf(**opts)
What changes are expected and where?
- 主要语言
- Ruby
- 星标
- 46
- 派生
- 16
- 平均合并
- 3 分钟
- 30 天内合并 PR
- 1
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ruby/forwardable 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 55/100
ruby/forwardable#61 ·
-
Broken link 未关闭bug
难度 1/5 1 小时以内 新手友好度 55/100
ruby/forwardable#42 ·
-
Broken link 未关闭bug
难度 1/5 1 小时以内 新手友好度 55/100
ruby/forwardable#41 ·
-
难度 2/5 1-3 小时 新手友好度 35/100
ruby/forwardable#12 · 4 条评论 ·
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
-
bug
难度 1/5 1 小时以内 新手友好度 90/100
riscv/riscv-unified-db#2626 ·
-
Component: GLib
难度 2/5 1-3 小时 新手友好度 70/100
-
ds-drift
难度 2/5 1-3 小时 新手友好度 70/100
we-promise/sure#3693 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
simp/pupmod-simp-simp#395 ·