From 5458ae03153e3a84dc4ac886680444cb06f06578 Mon Sep 17 00:00:00 2001 From: mmenanno <1358708+mmenanno@users.noreply.github.com> Date: Sat, 24 Aug 2024 21:02:51 -0400 Subject: [PATCH] add base64 dependancy when using ruby 3.3 or greater --- safe_yaml.gemspec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/safe_yaml.gemspec b/safe_yaml.gemspec index 4f4432a..ffc65f0 100644 --- a/safe_yaml.gemspec +++ b/safe_yaml.gemspec @@ -16,4 +16,8 @@ Gem::Specification.new do |gem| gem.executables = ["safe_yaml"] gem.required_ruby_version = ">= 1.8.7" + + if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.3') + s.add_dependency("base64", ">= 0.1.0") + end end