Skip to content

Commit 5df5a0d

Browse files
committed
Conditionally add base64 gem requirement
Ruby 2.1 and 2.2 are unable to use the `base64` gem due to version constraints on the gem. Ruby 3.4 requires that gem as `Base64` has been removed from the standard library. This adds a condition around the dependency so only Ruby 3.4 requires the gem to restore the standard library behaviour.
1 parent 1a14376 commit 5df5a0d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fog-brightbox.gemspec

+4-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ Gem::Specification.new do |spec|
2222

2323
spec.required_ruby_version = ">= 2.0"
2424

25-
spec.add_dependency "base64"
25+
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.4")
26+
spec.add_dependency "base64"
27+
end
28+
2629
spec.add_dependency "fog-core", ">= 1.45", "< 3.0"
2730
spec.add_dependency "fog-json"
2831
spec.add_dependency "dry-inflector"

0 commit comments

Comments
 (0)