Skip to content

Commit ee69b94

Browse files
committed
Support Ruby 2.7: widen ffi requirement to ~> 1.16
ffi 1.17 dropped Ruby 2.7 (its required_ruby_version is >= 3.0). Widening the constraint from "~> 1.17.0" to "~> 1.16" lets RubyGems resolve ffi 1.16.x on Ruby 2.7, while Ruby 3.x installs continue to pick up 1.17+. Signed-off-by: Ajay Kumar Sundaramurthy <10240430+ImAjayS@users.noreply.github.com>
1 parent f1199ae commit ee69b94

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

valkey.gemspec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,7 @@ Gem::Specification.new do |spec|
2929
end + Dir.glob("lib/valkey/native/**/*").reject { |f| File.directory?(f) }
3030
spec.require_paths = ["lib"]
3131

32-
spec.add_dependency "ffi", "~> 1.17.0"
32+
# ffi 1.17 dropped Ruby 2.7 (its required_ruby_version is >= 3.0), so 2.7
33+
# installs resolve to ffi 1.16.x while 3.x installs pick up 1.17+ automatically.
34+
spec.add_dependency "ffi", "~> 1.16"
3335
end

0 commit comments

Comments
 (0)