Skip to content
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

feat(bindings/ruby): Add simple operators to Ruby binding #5246

Merged
merged 7 commits into from
Nov 5, 2024

Conversation

erickguan
Copy link
Contributor

Which issue does this PR close?

Part of #5227.

Rationale for this change

  • This builds a few operations for testing.
  • More features for Ruby binding and testing on GitHub.

I would suggest to review this commit by commit. I also noticed the options to initialize Operator can only be a dictionary. Keyword arguments would be better.

erickguan and others added 5 commits October 26, 2024 10:41
- Ruby 3.0 is EoL. Since OpenDAL gem is fresh new, use 3.1 and up
- Use a Ruby with rubygems that can compile Rust gem
- create_dir
- delete
- exist?
- rename
- remove_all
- copy

Also refactor tests with Ruby stdlib
Copy link
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

Most LGTM. @erickguan thanks a lot for your great work!

#[derive(Clone, Debug)]
struct Operator(ocore::BlockingOperator);

fn format_magnus_error(err: ocore::Error) -> Error {
Copy link
Member

Choose a reason for hiding this comment

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

Seems duplicated.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@erickguan erickguan requested a review from Xuanwo November 5, 2024 10:12
Copy link
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

Thank you @erickguan for this PR! The ruby binding finally got some love.

@Xuanwo Xuanwo merged commit c424374 into apache:main Nov 5, 2024
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants