new feature: expose operation options in the Ruby binding

Open
#9,325 0 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Active
Tech stack
ruby, rust

Research direction

Read the Ruby binding entry points in bindings/ruby/src/operator.rs and bindings/ruby/src/io.rs, then inspect dev/src/generate/ruby.rs to understand the current generated API. The issue explicitly requires agreeing on the API shape first, including keyword arguments versus option objects and Ruby representations for timestamps, durations, user metadata, and Metadata. Done means the API design is agreed and the generator produces the agreed core operation options while preserving the existing list keywords.

Written by the indexing model from the issue text.

Description

bindings/ruby enhancement

Drafted with AI assistance (Claude Code, Claude Opus 5.5); the author is accountable for it.

Feature Description

Expose core's operation options in the Ruby binding and generate them from core. Part of #9320.

API shape to be agreed first; not planned immediately.

Problem and Solution

Once the shape is agreed, follow the two steps and rules in #9320. dev/src/generate/ruby.rs already generates Capability and Metadata.

Open design questions

  • Keyword arguments on the existing methods (as list does, additive in Ruby) versus option objects.
  • How Ruby passes timestamps, durations, user_metadata, and a Metadata for if_not_changed.
  • Whether list keeps its keywords exactly when the generator takes over.
Additional Context

#9319 is resolved for write-side and compose version conditions (#9234, #9329).

Are you willing to contribute to the development of this feature?
  • Yes, I am willing to contribute to the development of this feature.
Dominant language
Rust
Stars
5.5k
Forks
869
Avg merge
8h 2m
Merged PRs (30d)
862

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/opendal

All issues in apache/opendal

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.