Skip to content

Commit c6779ec

Browse files
committed
Adds base64 dependency
base64 was added to the gemspec, since starting in Ruby 3.4.0, base64 will no longer be part of the default gems and will no longer be in the standard library. base64 is used forAPI key and Cloud ID. The dependency used to be declared in transport, but it's not needed there since the implementation using it is in this codebase.
1 parent 6acc5ac commit c6779ec

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

elasticsearch/elasticsearch.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ Gem::Specification.new do |s|
4646
s.required_ruby_version = '>= 2.5'
4747

4848
s.add_dependency 'elastic-transport', '~> 8.3'
49-
5049
s.add_dependency 'elasticsearch-api', '8.13.0'
50+
s.add_dependency 'base64'
5151

5252
s.add_development_dependency 'bundler'
5353
s.add_development_dependency 'byebug' unless defined?(JRUBY_VERSION) || defined?(Rubinius)

elasticsearch/lib/elasticsearch.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
require 'elasticsearch/version'
1919
require 'elastic/transport'
2020
require 'elasticsearch/api'
21+
require 'base64'
2122

2223
module Elasticsearch
2324
NOT_ELASTICSEARCH_WARNING = 'The client noticed that the server is not Elasticsearch and we do not support this unknown product.'.freeze

0 commit comments

Comments
 (0)