From c5ae54d7d4c11438dfbf90d757b9c9f003d30887 Mon Sep 17 00:00:00 2001 From: Matthew Kent Date: Mon, 8 Jan 2024 11:02:16 -0800 Subject: [PATCH] Add a missing base64 require. Also, prepare for the moving of base64 from default to a bundled gem in ruby 3.4. --- Gemfile.lock | 1 + kamal.gemspec | 1 + lib/kamal/commands/lock.rb | 1 + 3 files changed, 3 insertions(+) diff --git a/Gemfile.lock b/Gemfile.lock index 31068493..575a9021 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -3,6 +3,7 @@ PATH specs: kamal (1.3.0) activesupport (>= 7.0) + base64 (~> 0.2) bcrypt_pbkdf (~> 1.0) concurrent-ruby (~> 1.2) dotenv (~> 2.8) diff --git a/kamal.gemspec b/kamal.gemspec index 8dcaa6ea..55f18ce9 100644 --- a/kamal.gemspec +++ b/kamal.gemspec @@ -20,6 +20,7 @@ Gem::Specification.new do |spec| spec.add_dependency "ed25519", "~> 1.2" spec.add_dependency "bcrypt_pbkdf", "~> 1.0" spec.add_dependency "concurrent-ruby", "~> 1.2" + spec.add_dependency "base64", "~> 0.2" spec.add_development_dependency "debug" spec.add_development_dependency "mocha" diff --git a/lib/kamal/commands/lock.rb b/lib/kamal/commands/lock.rb index 82340714..607bd79d 100644 --- a/lib/kamal/commands/lock.rb +++ b/lib/kamal/commands/lock.rb @@ -1,5 +1,6 @@ require "active_support/duration" require "time" +require "base64" class Kamal::Commands::Lock < Kamal::Commands::Base def acquire(message, version)