You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Braintree library errors on Ruby 3.4 due to missing dependencies #250
Loading the braintree Ruby gem errors when loading on Ruby 3.4 due to missing dependencies:
base64
bigdecimal
❯ ruby -v
ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [x86_64-darwin23]
❯ ruby braintree_ruby_dependency_errors.rb
/Users/$HOME/.gem/ruby/3.4.1/gems/braintree-4.25.0/lib/braintree.rb:1: warning: base64 was loaded from the standard library, but is not part of the default gems starting from Ruby 3.4.0.
You can add base64 to your Gemfile or gemspec to silence this warning.
/Users/$HOME/.rubies/ruby-3.4.1/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require': cannot load such file -- base64 (LoadError)
from /Users/$HOME/.rubies/ruby-3.4.1/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require'
from /Users/$HOME/.gem/ruby/3.4.1/gems/braintree-4.25.0/lib/braintree.rb:1:in '<top (required)>'
from /Users/$HOME/.rubies/ruby-3.4.1/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require'
from /Users/$HOME/.rubies/ruby-3.4.1/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require'
from braintree_ruby_dependency_errors.rb:8:in '<main>'
You can reproduce by running the following with Ruby 3.4:
In addition to the errors above, ruby 3.4.4 also shows warnings for two gems that will be removed in Ruby 3.5. It should be a straightforward fix to just add these to the gem spec in addition to the gems mentioned above.
braintree-4.28.0/lib/braintree.rb:7: warning: logger was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
You can add logger to your Gemfile or gemspec to silence this warning.
braintree-4.28.0/lib/braintree/webhook_notification.rb:1: warning: ostruct was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
You can add ostruct to your Gemfile or gemspec to silence this warning.
Activity
Fjan commentedon Jun 10, 2025
In addition to the errors above, ruby 3.4.4 also shows warnings for two gems that will be removed in Ruby 3.5. It should be a straightforward fix to just add these to the gem spec in addition to the gems mentioned above.
Add dependencies to quiet warnings and prepare for Ruby 3.5