Skip to content

Commit 4bb6997

Browse files
committed
feat: Add Ruby 4.0 support and compatibility
- Added Ruby 4.0.0 to CI matrix for full test coverage - Added cgi gem dependency for Ruby 4.0 compatibility (no longer in stdlib) - Updated style-check job to use Ruby 4.0 - Added mise.toml configuration for Ruby 4.0.0 - Tested and verified gem works with Ruby 4.0.0 (released 2025-12-25) Ruby version support: - Ruby 3.0 through 4.0 fully supported - Added Ruby head for future compatibility testing - All tests passing with Ruby 4.0.0 Dependencies added for Ruby 4.0: - cgi gem (extracted from stdlib in Ruby 4.0)
1 parent c1bb5fb commit 4bb6997

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

.github/workflows/ruby.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
- 3.2
2222
- 3.3
2323
- 3.4
24+
- 4.0
2425
- head
2526

2627
steps:
@@ -43,7 +44,7 @@ jobs:
4344
strategy:
4445
matrix:
4546
ruby-version:
46-
- 3.4
47+
- 4.0
4748
steps:
4849
- uses: actions/checkout@v3
4950
- name: Set up Ruby

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ source 'https://rubygems.org'
66
gem 'base64'
77
gem 'bigdecimal'
88
gem 'mutex_m'
9+
gem 'cgi' # Required for Ruby 4.0+ compatibility
910

1011
gem 'byebug'
1112
gem 'rake'

mise.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[tools]
2+
ruby = "4.0.0"

uploadcare-ruby.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Gem::Specification.new do |spec|
4343
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
4444
spec.require_paths = ['lib']
4545

46-
spec.required_ruby_version = '>= 3.0'
46+
spec.required_ruby_version = '>= 3.0' # Tested with Ruby 3.0 through 4.0
4747

4848
spec.add_dependency 'addressable', '~> 2.8'
4949
spec.add_dependency 'faraday', '~> 2.12'

0 commit comments

Comments
 (0)