This is an automated email from the ASF dual-hosted git repository. erickguan pushed a commit to branch chore/ruby-dependencies in repository https://gitbox.apache.org/repos/asf/opendal.git
commit 83e756c93b22e6e07b3cfd0c0b6fc43e86378303 Author: Erick Guan <[email protected]> AuthorDate: Thu Nov 19 23:59:45 2026 +0800 chore(bindings/ruby): update dependencies and Ruby version settings --- .github/workflows/test_behavior_binding_ruby.yml | 3 ++- bindings/ruby/.standard.yml | 2 +- bindings/ruby/.tool-versions | 2 +- bindings/ruby/Cargo.lock | 24 ++++++++++++------------ bindings/ruby/Cargo.toml | 6 +++--- bindings/ruby/Gemfile | 6 +++--- bindings/ruby/README.md | 2 ++ bindings/ruby/opendal.gemspec | 4 +--- website/docs/20-bindings/ruby/01-overview.md | 2 ++ 9 files changed, 27 insertions(+), 24 deletions(-) diff --git a/.github/workflows/test_behavior_binding_ruby.yml b/.github/workflows/test_behavior_binding_ruby.yml index ca4dc2802d..06d13114b5 100644 --- a/.github/workflows/test_behavior_binding_ruby.yml +++ b/.github/workflows/test_behavior_binding_ruby.yml @@ -43,7 +43,7 @@ jobs: strategy: fail-fast: false matrix: - ruby-version: ["3.2", "3.3", "3.4", "4.0"] + ruby-version: ["3.3", "3.4", "4.0"] env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps BUNDLE_GEMFILE: ${{ github.workspace }}/bindings/ruby/Gemfile @@ -61,6 +61,7 @@ jobs: - name: Setup Ruby and install dependencies uses: ruby/setup-ruby@v1 with: + ruby-version: ${{ matrix.ruby-version }} bundler-cache: true working-directory: bindings/ruby # must repeat because GitHub Actions will not use defaults.run diff --git a/bindings/ruby/.standard.yml b/bindings/ruby/.standard.yml index d09185156b..2386bdb97f 100644 --- a/bindings/ruby/.standard.yml +++ b/bindings/ruby/.standard.yml @@ -17,4 +17,4 @@ # For available configuration options, see: # https://github.com/testdouble/standard -ruby_version: 3.2 +ruby_version: 3.3 diff --git a/bindings/ruby/.tool-versions b/bindings/ruby/.tool-versions index 053cba7fcd..b77860ba9b 100644 --- a/bindings/ruby/.tool-versions +++ b/bindings/ruby/.tool-versions @@ -1 +1 @@ -ruby 3.3 +ruby 4.0 diff --git a/bindings/ruby/Cargo.lock b/bindings/ruby/Cargo.lock index b84758b2c7..120c334390 100644 --- a/bindings/ruby/Cargo.lock +++ b/bindings/ruby/Cargo.lock @@ -180,9 +180,9 @@ checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649" [[package]] name = "bytes" -version = "1.12.1" +version = "1.12.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" +checksum = "776dfebd015e2d8732c684a2c71003674ccb49457b539b9e82151ba38e96dd7c" [[package]] name = "cbc" @@ -1253,9 +1253,9 @@ checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154" [[package]] name = "magnus" -version = "0.8.2" +version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b36a5b126bbe97eb0d02d07acfeb327036c6319fd816139a49824a83b7f9012" +checksum = "3c5f2dd2017d172e2fde9969a35f10f1374a4dd79b37a17f1847f83201883de7" dependencies = [ "bytes", "magnus-macros", @@ -1266,9 +1266,9 @@ dependencies = [ [[package]] name = "magnus-macros" -version = "0.8.0" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47607461fd8e1513cb4f2076c197d8092d921a1ea75bd08af97398f593751892" +checksum = "9dafde2eeb66f090e0f326112323eb8324b12cb32b5d1210e541d3df6b0ce77e" dependencies = [ "proc-macro2", "quote", @@ -2127,18 +2127,18 @@ dependencies = [ [[package]] name = "rb-sys" -version = "0.9.128" +version = "0.9.130" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "45ca28513560e56cfb79a62b1fce363c73af170a182024ce880c77ee9429920a" +checksum = "02faf625bb10ba893e3ae620f19c9fb1b5f8fcae0fe4eb86bb3f2230fad75edb" dependencies = [ "rb-sys-build", ] [[package]] name = "rb-sys-build" -version = "0.9.128" +version = "0.9.130" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce04b2c55eff3a21aaa623fcc655d94373238e72cac6b3e1a3641ff31649f99a" +checksum = "05be6f9c86fe5482808162826f6c047d093b3670582296c770de1d94f8066694" dependencies = [ "bindgen", "lazy_static", @@ -2931,9 +2931,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.53.1" +version = "1.54.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "202caea871b69668250d242070849eb495be178ed697a3e98aebce5bc81a0bed" +checksum = "b52fd3255258d26fac7264ab5a76b53c13367136dc011d3d6ad4f8ed070396a3" dependencies = [ "bytes", "libc", diff --git a/bindings/ruby/Cargo.toml b/bindings/ruby/Cargo.toml index 0ff0f60338..3a4af56619 100644 --- a/bindings/ruby/Cargo.toml +++ b/bindings/ruby/Cargo.toml @@ -33,7 +33,7 @@ doc = false name = "opendal_ruby" [dependencies] -magnus = { version = "0.8", features = ["bytes", "io"] } +magnus = { version = "0.9", features = ["bytes", "io"] } # 1. we don't use published core but a local copy # 2. for a source release, this path must be the local "./core". # we set it via rake copy_core. Read more in: @@ -59,9 +59,9 @@ opendal = { version = ">=0", path = "../../core", features = [ "services-webhdfs", "services-azfile", ] } -rb-sys = { version = "0.9.110", default-features = false } +rb-sys = { version = "0.9.130", default-features = false } # should be in sync with opendal -bytes = "1.6" +bytes = "1.12" tokio = { version = "1", features = ["full"] } [build-dependencies] diff --git a/bindings/ruby/Gemfile b/bindings/ruby/Gemfile index 89b004a052..ed8feecec3 100644 --- a/bindings/ruby/Gemfile +++ b/bindings/ruby/Gemfile @@ -24,10 +24,10 @@ gemspec group :development, :test do gem "rake", ">= 13.2" - gem "minitest", "~> 6.0.6" # test library + gem "minitest", "~> 6.1.0" # test library gem "minitest-reporters", "~> 1.8.0" # better test output - gem "activesupport", "~> 8.1.3" # testing support - gem "standard", "~> 1.54" # linter with pre-specified rules + gem "activesupport", "~> 8.1.4" # testing support + gem "standard", "~> 1.57" # linter with pre-specified rules gem "redcarpet", "~> 3.6" # for documentation markdown parsing gem "yard-rustdoc", "~> 0.4.2" # to generate YARD documentation from Ruby and Rust source end diff --git a/bindings/ruby/README.md b/bindings/ruby/README.md index 47de8aec2a..c82b2346c1 100644 --- a/bindings/ruby/README.md +++ b/bindings/ruby/README.md @@ -21,6 +21,8 @@ version. ## Installation +The Ruby binding requires Ruby 3.3 or later. + ```shell gem install opendal ``` diff --git a/bindings/ruby/opendal.gemspec b/bindings/ruby/opendal.gemspec index c5a043a895..cd48aa3a49 100644 --- a/bindings/ruby/opendal.gemspec +++ b/bindings/ruby/opendal.gemspec @@ -101,9 +101,7 @@ Gem::Specification.new do |spec| # use a Ruby version which: # - supports Rubygems with the ability of compilation of Rust gem # - not end of life - # - # keep in sync with `Rakefile`. - spec.required_ruby_version = ">= 3.2" + spec.required_ruby_version = ">= 3.3" # intentionally skipping rb_sys gem because newer Rubygems will be present end diff --git a/website/docs/20-bindings/ruby/01-overview.md b/website/docs/20-bindings/ruby/01-overview.md index ed258777ec..904593e746 100644 --- a/website/docs/20-bindings/ruby/01-overview.md +++ b/website/docs/20-bindings/ruby/01-overview.md @@ -37,6 +37,8 @@ Released and published to [RubyGems](https://rubygems.org/gems/opendal). ## Installation +The Ruby binding requires Ruby 3.3 or later. + ```shell gem install opendal ```
