Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Error when using numeric_set_attr

已关闭 适合新手
#162 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
74/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
aws, ruby
领域
database

调研方向

检查 lib/aws-record/record/attributes.rb 第 437 行附近,找到 numeric_set_attr 使用的 NumericSetMarshaler 初始化器。确认该初始化器接受在那里传入的参数,并验证创建 numeric_set_attr 不再引发所报告的 ArgumentError;payload 未指定要运行的测试文件。

由索引模型根据 Issue 内容生成。

描述

bug p2
Describe the feature

When creating an attribute with numeric_set_attr, I get the following error:

/usr/local/bundle/gems/aws-record-2.14.0/lib/aws-record/record/attributes.rb:437:in 'BasicObject#initialize': wrong number of arguments (given 1, expected 0) (ArgumentError)
attr(name, Marshalers::NumericSetMarshaler.new(opts), opts)

It looks like the initializer for Marshalers::NumericSetMarshaler is not properly defined. I'll submit a pull request.

Use Case

n/a

Proposed Solution

I will submit a PR

Other Information

No response

Acknowledgements
  • I may be able to implement this feature request
  • This feature might incur a breaking change
aws-sdk-ruby-record version used

2.15.2

Environment details (OS name and version, etc.)

Linux

主要语言
Ruby
星标
318
派生
44
平均合并
3 天 15 小时
30 天内合并 PR
4

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

aws/aws-record-ruby 的其他 Issue

查看 aws/aws-record-ruby 的全部 Issue

相似的 Issue

更多 Ruby Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。