Skip to content

Commit

Permalink
Updated the gemspec to hopefully make it easier for the oldest ruby v…
Browse files Browse the repository at this point in the history
…ersion to test on CI
  • Loading branch information
crimson-knight committed Oct 22, 2023
1 parent dda856f commit b1cd473
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fruit_juice.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]

spec.add_dependency "redis", ">= 4.0.0"
if RUBY_VERSION >= "2.3.0"
spec.add_dependency "redis", ">= 4.3.0"
else
spec.add_dependency "redis", "4.2.0"
end

if RUBY_VERSION >= "2.3.0"
spec.add_development_dependency "appraisal", "~> 2.5"
Expand Down

0 comments on commit b1cd473

Please sign in to comment.