-
Notifications
You must be signed in to change notification settings - Fork 481
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
Conversation
- 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
1e6d637
to
efe2e27
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.
Most LGTM. @erickguan thanks a lot for your great work!
bindings/ruby/src/operator.rs
Outdated
#[derive(Clone, Debug)] | ||
struct Operator(ocore::BlockingOperator); | ||
|
||
fn format_magnus_error(err: ocore::Error) -> Error { |
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.
Seems duplicated.
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.
Fixed.
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.
Thank you @erickguan for this PR! The ruby binding finally got some love.
Which issue does this PR close?
Part of #5227.
Rationale for this change
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.